Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image api rework #5260

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Image api rework #5260

wants to merge 7 commits into from

Conversation

Nutomic
Copy link
Member

@Nutomic Nutomic commented Dec 13, 2024

  • Move all image related endpoints under /api/v4/image/
  • Image parameters and responses are now in crates/api_common/src/image.rs, no more exposing of pictrs data structures
  • Reorganize code in crates/routes/images
  • Only use adapt_request() for image upload, not for simple things like delete or health check
  • New endpoint POST /api/v4/account/avatar which directly takes image upload, instead of setting avatar url via /api/v4/account/settings/save

Have a look at the current changes. If its good I will do the same for user banner, community icon/banner and site icon/banner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant