Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Latest commit

 

History

History
42 lines (27 loc) · 570 Bytes

follow-user.md

File metadata and controls

42 lines (27 loc) · 570 Bytes

GET /api/users/:userId/follow

Description

Follow a user.

Request

Parameters

  • userId: ID of the user to follow. (required - included in path)

Body

None

Headers

  • cookie: token=... (required)

Response

{
  "success": true,
  "message": "User followed"
}

Response Codes

Code Description
200 Success
400 Bad Request
401 Unauthorized
404 Not Found
500 Internal Server Error

Cookies

None