You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #49 from RandomProgramm3r/develop
feat: Implement comment management endpoints
Introduce a complete comment management system for promo.
This change introduces a new `PromoComment` model and a set of API endpoints for full CRUD (Create, Read, Update, Delete) functionality.
New Endpoints:
- `POST /user/promo/{id}/comments`: Create a new comment on a promo.
- `GET /user/promo/{id}/comments`: List all comments for a promo with limit/offset pagination and an `X-Total-Count` header.
- `GET /user/promo/{id}/comments/{comment_id}`: Retrieve a single comment by its ID.
- `PUT /user/promo/{id}/comments/{comment_id}`: Update an existing comment. This action is restricted to the comment's author.
- `DELETE /user/promo/{id}/comments/{comment_id}`: Delete a comment. Also restricted to the author.
Related Changes:
- To support the new functionality, the `Promo` model has been updated with a `comment_count` field.
0 commit comments