Skip to content

[API] endpoints to manage user/org/repo avatars #17115

Open
@6543

Description

@6543

GET, SET, DELETE endpoints are needed

to simplify I would propose:

user

  • GET /users/{username}/avatar -> return raw image
  • PUT /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 image
  • PUT /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 image
  • PUT /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)

ref: https://codeberg.org/gitnex/GitNex/issues/552

Metadata

Metadata

Assignees

No one assigned

    Labels

    modifies/apiThis PR adds API routes or modifies themtype/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions