One of parts of chat backends is file server. It's used as store for message attachments and user avatars.
Client app gets file server config on Data gathering step.
Incoming frame storage urls
(client app not requests it, just listens. This behaviour will change):
storage urls = {
"get": "http://file-server.birdex.org/file/get/id/"
,"put": "http://file-server.birdex.org/file/put/id/"
,"putRaw": "http://file-server.birdex.org/file/putRaw/id/"
,"delete": "http://file-server.birdex.org/file/delete/id/"
}
File uuid is required for all actions and must be contatinated to url as follows:
Action URL = storage url + avatar/attachment uuid.
Uuid is UUIDv4. For put
and putRaw
actions client app must generate uuid.
Get file.
- Request method: GET
- Parameters: no
Deprecated. Put file.
- Request method: POST
- Parameters:
body
— payload
Put file.
- Request method: POST
- Parameters: no
- Attachment or user avatar must be sent as request payload.
Delete file.
- Request method: GET
- Parameters: no