Skip to content

FileData

Finn Lippok edited this page Mar 27, 2023 · 2 revisions

REST API /api/v1/file/

⚠️ Authorization Header: All requests must contain a Authorization Header.

Authorization Bearer {JWT-Token}

Upload Profile Picture

Request

Endpoint: POST /api/v1/file/profile

Upload Picture as a Multipart File

Download Profile Picture

Request

Endpoint: GET /api/v1/file/profile/ {id}

Response

File as ByteArrayResource

Add File to Post

⚠️ Own Post: The Author of the post must match the Owner of the Authorization Token. You can Only add a file to your own Post

Request

Endpoint: POST /api/v1/file/post/ {id}

Upload Picture as a Multipart File

Download File of Post

Request

Endpoint: GET /api/v1/file/post/ {id}

Response

File as ByteArrayResource

Clone this wiki locally