feat: add /files/{file} GET and DELETE methods
This commit is contained in:
parent
7ca416e43e
commit
4a4a0a2149
7 changed files with 252 additions and 60 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue