- HTTP Method: POST
- URL:
/users/
- HTTP Method: GET
- URL:
/users/{user_id}/
- HTTP Method: PUT
- URL:
/users/{user_id}/
- HTTP Method: DELETE
- URL:
/users/{user_id}/
- HTTP Method: GET
- URL:
/users/find_user/?username={username}
- HTTP Method: GET
- URL:
/posts/
- HTTP Method: POST
- URL:
/posts/
- HTTP Method: GET
- URL:
/posts/{post_id}/
- HTTP Method: PUT
- URL:
/posts/{post_id}/
- HTTP Method: PATCH
- URL:
/posts/{post_id}/
- HTTP Method: DELETE
- URL:
/posts/{post_id}/
- HTTP Method: POST
- URL:
/comments/
- Action Method: create
- HTTP Method: GET
- URL (by Comment ID):
/comments/{comment_id}/
- URL (by Author's Username):
/comments/{author_username}/
- Action Method: retrieve
- HTTP Method: PUT or PATCH
- URL:
/comments/{comment_id}/
- Action Method: update
- HTTP Method: DELETE
- URL:
/comments/{comment_id}/
- Action Method: destroy
- HTTP Method: GET
- URL:
/comments/
Here are the API endpoints for managing friend requests:
-
List all friend requests:
- HTTP Method:
GET
- Endpoint:
/api/friend-requests/
- HTTP Method:
-
Create a new friend request:
- HTTP Method:
POST
- Endpoint:
/api/friend-requests/
- HTTP Method:
-
Retrieve a specific friend request:
- HTTP Method:
GET
- Endpoint:
/api/friend-requests/{request_id}/
- Replace
{request_id}
with the actual request ID to retrieve a specific friend request.
- HTTP Method:
-
Update a specific friend request:
- HTTP Method:
PUT
- Endpoint:
/api/friend-requests/{request_id}/
- Replace
{request_id}
with the actual request ID to update a specific friend request.
- HTTP Method:
-
Partial update of a specific friend request:
- HTTP Method:
PATCH
- Endpoint:
/api/friend-requests/{request_id}/
- Replace
{request_id}
with the actual request ID to partially update a specific friend request.
- HTTP Method:
-
Delete a specific friend request:
- HTTP Method:
DELETE
- Endpoint:
/api/friend-requests/{request_id}/
- Replace
{request_id}
with the actual request ID to delete a specific friend request.
- HTTP Method:
- HTTP Method: GET
- URL:
/comments/comments_on_post/{post_id}/
- Action Method: comments_on_post