-
Notifications
You must be signed in to change notification settings - Fork 0
Comment related endpoints
Requires Authorization Bearer header with a valid JWT token corresponding to the userid.
POST /api/v1/users/{userid}/comments
Expected Parameters:
- Content
Returns:
- ID
GET /api/v1/comments/{commentid}
Returns:
- ID
- PostID
- UserID
- Content
- Likes
GET /api/v1/users/{userid}/comments
Returns an array of:
- ID
- PostID
- UserID
- Content
- Likes
GET /api/v1/posts/{postid}/comments
Returns an array of:
- ID
- PostID
- UserID
- Content
- Likes
Requires Authorization Bearer header with a valid JWT token corresponding to the userid.
PUT /api/v1/users/{userid}/comments/{commentid}
Expects parameters:
- Content
Requires Authorization Bearer header with a valid JWT token corresponding to the userid.
DELETE /api/v1/users/{userid}/comments/{commentid}
Requires Authorization Bearer header with a valid JWT token corresponding to the userid.
POST /api/v1/users/{userid}/comments/{commentid}/likes
Requires Authorization Bearer header with a valid JWT token corresponding to the userid.
DELETE /api/v1/users/{userid}/comments/{commentid}/likes