Comments
Comment management
Retrieves all comments for a specific product.
Authorizations
accessTokenstringRequired
Path parameters
productIdstringRequired
The ID of the product.
Responses
200
A list of comments.
application/json
401
Unauthorized.
404
Not found.
get
/comments/product/{productId}Creates a new comment for a product.
Authorizations
accessTokenstringRequired
Path parameters
productIdstringRequired
The ID of the product to comment on.
Body
contentstringRequired
The content of the comment.
Responses
201
Comment created successfully.
application/json
400
Bad request (e.g., invalid input).
401
Unauthorized.
404
Not found.
post
/comments/product/{productId}Deletes a comment by its ID.
Authorizations
accessTokenstringRequired
Path parameters
commentIdstringRequired
The ID of the comment to delete.
Responses
204
Comment deleted successfully.
401
Unauthorized.
403
Forbidden.
404
Not found.
delete
/comments/{commentId}No content
