- Comments
- Ratings
How comments work
Comments allow attendees and visitors to discuss an event. Each comment is tied to a specific event and can optionally be a reply to another comment, enabling threaded conversations.TheCommentDto includes a parentId field. When parentId is null, the comment is a top-level post. When parentId references another comment’s ID, it is a reply. The replies list on each CommentDto contains all direct child comments.Comment fields
| Field | Type | Description |
|---|---|---|
id | Guid | Unique comment identifier. |
userId | string | ID of the user who posted the comment. |
userName | string | Display name of the commenter. |
userMembership | MembershipDto | Active membership of the commenter, if any. |
eventId | Guid | ID of the event this comment belongs to. |
eventTitle | string | Title of the event. |
content | string | Text body of the comment. |
publicationDate | DateTime | When the comment was posted. |
parentId | Guid? | ID of the parent comment, or null for top-level posts. |
replies | CommentDto[] | Direct replies to this comment. |
Posting a comment
parentId to the id of the comment you are replying to.Editing a comment
Deleting a comment
User, Organizer, or Admin roles can create, edit, or delete comments. Reading comments is public via GET /api/comments and GET /api/comments/{id}.