This document provides an overview of the API routes and endpoints for managing comments, verified comments, and rejected comments. It serves as a reference guide for developers working with the API, outlining the available routes, HTTP methods, and parameters for each route. The document is structured into sections based on the different controllers responsible for handling the requests.
- HTTP Method: The HTTP method used to interact with the route (e.g., GET, POST, PATCH, DELETE).
- Route: The URL path for accessing the route.
- Parameters: The parameters required or optional for the specific route.
- POST:
/comment
- Parameters:
productId: 1
text: something
- GET:
/comment
- GET:
/comment?productId=1
- GET:
/comment?userId=1
- GET:
/comment?productId=1&userId=1
- GET:
/comment/1
- DELETE:
/comment/1
- PATCH:
/comment/1
- POST:
/verified-comment
- Parameters:
id: 1
note: something
- GET:
/verified-comment
- GET:
/verified-comment?productId=1
- GET:
/verified-comment?userId=1
- GET:
/verified-comment?productId=1&userId=1
- GET:
/verified-comment/1
- DELETE:
/verified-comment/1
- PATCH:
/verified-comment/1
- Parameters:
note: something1
- POST:
/rejected-comment
- Parameters:
id: 1
reason: something
- GET:
/rejected-comment
- GET:
/rejected-comment?productId=1
- GET:
/rejected-comment?userId=1
- GET:
/rejected-comment?productId=1&userId=1
- GET:
/rejected-comment/1
- DELETE:
/rejected-comment/1
- PATCH:
/rejected-comment/1
- Parameters:
reason: something1