v1

latestOpenAPI 3.0.3raw.githubusercontent.com2024-10-2916802.4 MB
📸 Social Media

Follow or unfollow user

The API endpoint allows users to follow or unfollow other users within the application.

When accessing this endpoint, users can choose to follow or unfollow a specific user, thereby establishing or severing a connection between their accounts.

post/social-media/follow/{toBeFollowedUserId}

Response

Follow or unfollow user

messagestring
statusCodenumber
successboolean

Example response

{
  "data": {
    "following": true
  },
  "message": "Followed successfully",
  "statusCode": 200,
  "success": true
}