Skip to content

Unlike a post

hman25 edited this page May 9, 2022 · 2 revisions

Unlike a post

Used to unlike a post and update the database.

URL : /api/posts/unlike-post

Method : POST

Auth required : YES

Data constraints The following data must be provided :

{
      "id" : string
}

Success Response

Code : 200 OK

Content example

{
    "success": true,
    "id": "kJBLQhVsSCb92Fcrw5f4Hgq9ptr1",
    "currentLikes": 10,
}

Error Response

Condition : If something went wrong.

Code : 500 Internal Server Error

Content : {}

Navigation

Project Documentation

Frontend

Backend

Clone this wiki locally