-
Notifications
You must be signed in to change notification settings - Fork 0
Profile related endpoints
Requires Authorization Bearer header with a valid JWT token corresponding to the userid.
POST /api/v1/users/{userid}/profiles
Expected Parameters:
- DisplayName
- TagName
Returns:
- UserID
GET /api/v1/profiles/{userid}
Returns:
- UserID
- DisplayName
- TagName
- PicturePath
- BackgroundPath
- Followers
- Follows
GET /api/v1/profiles/{tagname}
Returns:
- UserID
- DisplayName
- TagName
- PicturePath
- BackgroundPath
- Followers
- Follows
GET /api/v1/profiles/{userid}/followers
Returns an array of:
- UserID
- DisplayName
- TagName
- PicturePath
- BackgroundPath
- Followers
- Follows
GET /api/v1/profiles/{tagname}/followers
Returns an array of:
- UserID
- DisplayName
- TagName
- PicturePath
- BackgroundPath
- Followers
- Follows
GET /api/v1/profiles/{userid}/follows
Returns an array of:
- UserID
- DisplayName
- TagName
- PicturePath
- BackgroundPath
- Followers
- Follows
GET /api/v1/profiles/{tagname}/follows
Returns an array of:
- UserID
- DisplayName
- TagName
- PicturePath
- BackgroundPath
- Followers
- Follows
PUT /api/v1/profiles/{userid}/tagname
Requires Authorization Bearer header with a valid JWT token corresponding to the userid.
Expected parameters:
- TagName
PUT /api/v1/profiles/{userid}/displayname
Requires Authorization Bearer header with a valid JWT token corresponding to the userid.
Expected parameters:
- DisplayName
PUT /api/v1/profiles/{userid}/picturepath
Requires Authorization Bearer header with a valid JWT token corresponding to the userid.
Expected parameters:
- PicturePath
PUT /api/v1/profiles/{userid}/backgroundpath
Requires Authorization Bearer header with a valid JWT token corresponding to the userid.
Expected parameters:
- BackgroundPath
DELETE /api/v1/profiles{userid}
Requires Authorization Bearer header with a valid JWT token corresponding to the userid.
POST /api/v1/profiles/{userid}/follows/{followedid}
Requires Authorization Bearer header with a valid JWT token corresponding to the userid.
DELETE /api/v1/profiles/{userid}/follows/{followedid}