Skip to content

Add endpoints related to temporary file management#301

Merged
Carifio24 merged 10 commits into
cosmicds:mainfrom
Carifio24:temporary-files
Jul 15, 2026
Merged

Add endpoints related to temporary file management#301
Carifio24 merged 10 commits into
cosmicds:mainfrom
Carifio24:temporary-files

Conversation

@Carifio24

Copy link
Copy Markdown
Member

This PR adds four endpoints that allow us to manage temporary files that are stored in our database. The temporary nature of these database items is handled via a procedure on the backend.

The new endpoints are:

  • POST /temp - Accepts the file contents as multipart/form-data. Information about the file's expiration time, detected MIME type, and the URL from which its contents can be retrieved are given in both the response body and the headers
  • PATCH /temp/<uuid> - Allows modifying the content of the specified file. To keep things simple, we enforce that the MIME type stay constant
  • GET /temp/<uuid> - Returns the contents of the temporary file
  • DELETE /temp/<uuid> - If necessary, a temporary file can be manually deleted

@Carifio24
Carifio24 merged commit 2b67c2c into cosmicds:main Jul 15, 2026
1 check passed
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