mirror of
https://github.com/hzrd149/blossom.git
synced 2025-12-10 07:28:50 +00:00
move server implementation to bud-01
write draft bud-02
This commit is contained in:
21
buds/bud-02.md
Normal file
21
buds/bud-02.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# BUD-02
|
||||
|
||||
## Media processing endpoint
|
||||
|
||||
`draft` `optional`
|
||||
|
||||
### PUT /process
|
||||
|
||||
A server MAY expose a `/process` endpoint for the purpose of processing and/or optimizing any blob the user uploads
|
||||
|
||||
The endpoint MUST accept the `Content-Type` of `multipart/form-data` with the field `blob` containing the raw binary of the blob being upload
|
||||
|
||||
Similar to the `/upload` endpoint the server MUST respond with a [Blob Descriptor](./bud-01.md#blob-descriptor)
|
||||
|
||||
The server MUST also require authentication for the endpoint. in which case it MUST accept the same `upload` [authorization event](./bud-01#upload-authorization-required) as the `/upload` endpoint
|
||||
|
||||
### HEAD /process
|
||||
|
||||
If a server is exposing a `PUT /process` endpoint is MUST also expose a `HEAD /process` endpoint to allow clients to check if the `PUT /process` endpoint is available
|
||||
|
||||
The endpoint MUST respond with the `200` status code
|
||||
Reference in New Issue
Block a user