-
Notifications
You must be signed in to change notification settings - Fork 0
Unlike a post
hman25 edited this page May 9, 2022
·
2 revisions
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
}
Code : 200 OK
Content example
{
"success": true,
"id": "kJBLQhVsSCb92Fcrw5f4Hgq9ptr1",
"currentLikes": 10,
}
Condition : If something went wrong.
Code : 500 Internal Server Error
Content : {}
- Home
- Requirements
- Technologies
- Project management strategy
- Tasks breakdown
- Member contributions
- Meeting minutes
- API endpoints summary
- Users
-
Create a new user :
POST /api/users/
-
Get a single user :
GET /api/users/:id
-
Get a single user (firebase ID) :
GET /api/users/firebase/:id
-
Update a user:
PUT /api/users/:id
-
Create a new user :
- Posts
-
Get a single post
GET /api/posts/:id
-
Get a list of posts :
GET /api/posts/
-
Search for a post :
GET /api/posts/search
-
Create a new post :
POST /api/posts/
-
Like a post :
POST /api/posts/like-post
-
Unlike a post :
POST /api/posts/unlike-post
-
Upload an image for a post :
POST /api/posts/image
-
Get a single post
- Restaurant
-
Get restaurant :
GET /api/restaurants/
-
Get restaurant :