Like an Article
Add a like to an article. Requires authentication.Endpoint
Authentication
Requires valid access token (Bearer authentication).Path Parameters
Article ID to like
Response
Always
true for successful requestsUpdated article like information
Example Request
Example Response
Unlike an Article
Remove your like from an article. Requires authentication.Endpoint
Authentication
Requires valid access token (Bearer authentication).Path Parameters
Article ID to unlike
Response
Always
true for successful requestsUpdated article like information
Example Request
Example Response
Error Responses
401 Unauthorized
Invalid or expired access token
404 Not Found
Article ID not found
409 Conflict
When trying to like an article you’ve already liked, or unlike an article you haven’t liked
Notes
- Users can only like an article once
- Liking an article you’ve already liked returns a 409 Conflict error
- Unliking an article you haven’t liked returns a 409 Conflict error
- Like counts are updated in real-time
- Authentication is required to prevent abuse