-
Notifications
You must be signed in to change notification settings - Fork 0
User Profile Management API
M♢NTΛSIM edited this page Aug 17, 2024
·
1 revision
-
GET
/{username}
- Summary: Fetches the user profile based on the provided username. This endpoint respects the user's privacy settings and only returns information allowed under those settings.
-
Parameters:
-
Path Parameter:
-
Name:
username
- Description: The username of the user whose profile is being requested.
-
Schema:
{ "type": "string" }
-
Name:
-
Path Parameter:
- Security: Bearer Authentication
-
Responses:
-
200 OK:
- Description: User profile retrieved successfully.
-
Content:
-
Content-Type:
application/json
-
Schema:
{ "type": "object", "properties": { "username": { "type": "string" }, "email": { "type": "string" }, "bio": { "type": "string" } }, "example": { "username": "johndoe", "email": "johndoe@example.com", "bio": "Here is a little about me..." } }
-
Content-Type:
- 404 Not Found: User not found.
- 403 Forbidden: Access to the profile is forbidden.
-
200 OK:
-
Tags:
- User Profile Management
-
All Other Methods on
/{username}
- Summary: Handles unsupported methods for the endpoint.
-
Responses:
- 405 Method Not Allowed: Method not supported.
-
Tags:
- User Profile Management