feat: add /files/{file} GET and DELETE methods

This commit is contained in:
cătălin 2022-06-28 14:11:37 +02:00
commit 4a4a0a2149
No known key found for this signature in database
GPG key ID: C378F1E869F05A95
7 changed files with 252 additions and 60 deletions

View file

@ -7,7 +7,7 @@ servers:
- url: http://localhost:8080/api/v1/
description: local server
paths:
/:
/files:
get:
summary: "list all uploaded files"
description: "list all uploaded files"
@ -18,11 +18,9 @@ paths:
content:
text/plain:
schema:
type: array
items:
type: string
format: uri
type: string
format: html
500:
description: "internal server error"
content:
@ -74,8 +72,9 @@ paths:
text/plain:
schema:
type: string
default: "internal server error"
/{file_name}:
/files/{file_name}:
get:
summary: "get file"
description: "get file"
@ -135,6 +134,26 @@ paths:
schema:
type: string
default: "file not found"
500:
description: "internal server error"
content:
text/plain:
schema:
type: string
default: "internal server error"
/health:
get:
summary: "health check"
description: "health check"
operationId: "health_check"
responses:
200:
description: "health check successful"
content:
text/plain:
schema:
type: string
default: "health check successful"
500:
description: "internal server error"
content: