SOCSSabaragamuwa / testrepo

0 stars 0 forks source link

Implement the endpoint: /avatars #25

Open SOCSSabaragamuwa opened 6 years ago

SOCSSabaragamuwa commented 6 years ago

POST /avatars

POST /avatars HTTP/1.1
Content-Type: multipart/form-data;
Content-Disposition: form-data; name="avatar"; filename="avatar.png"
Request Parameter Description Required/Optional
user_id The id of the user. If not provided, the avatar of the authenticated user should be updated. Optional

GET /avatars?user_id={user_id}

This endpoint to retrieve a users avatar.

Request Parameter Description Required/Optional
user_id User identifier Required