-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Open
Labels
modifies/apiThis PR adds API routes or modifies themThis PR adds API routes or modifies themtype/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.
Description
GET, SET, DELETE endpoints are needed
to simplify I would propose:
user
GET /users/{username}/avatar
-> return raw imagePUT /users/{username}/avatar
-> return status 204 (add img within request body)DELETE /users/{username}/avatar
-> return status 204 (rm and use default avatar)
org
GET /orgs/{org}/avatar
-> return raw imagePUT /orgs/{org}/avatar
-> return status 204 (add img within request body)DELETE /orgs/{org}/avatar
-> return status 204 (rm and use default avatar)
repo
GET /repos/{owner}/{repo}/avatar
-> return raw imagePUT /repos/{owner}/{repo}/avatar
-> return status 204 (add img within request body)DELETE /repos/{owner}/{repo}/avatar
-> return status 204 (rm and use default avatar)
delvh, harmathy, mmarif4u, beanaroo, Eekle and 3 more
Metadata
Metadata
Assignees
Labels
modifies/apiThis PR adds API routes or modifies themThis PR adds API routes or modifies themtype/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.