Files
Viktoria Polyakova 4fb101c5db Init
2026-01-25 08:57:38 +00:00

24 lines
505 B
HTTP

### Upload file
POST {{url}}/api/storage/upload
Authorization: Bearer {{token}}
Content-Type: multipart/form-data; boundary="abcd"
--abcd
Content-Disposition: form-data; name="test"; filename="test.png"
Content-Type: image/png
< ../_resources/test.png
--abcd--
### Delete file
DELETE {{url}}/api/storage/file/{{fileId}}
Content-Type: application/json
Authorization: Bearer {{token}}
### Get file
GET {{url}}/api/storage/file/{{fileId}}
Content-Type: application/json
Authorization: Bearer {{token}}