mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-03-14 06:06:15 +01:00
Fix OpenAPI specifications
This commit is contained in:
parent
9ef3954746
commit
3237326106
1 changed files with 5 additions and 3 deletions
|
@ -625,6 +625,7 @@ paths:
|
||||||
description: The photo to upload.
|
description: The photo to upload.
|
||||||
type: string
|
type: string
|
||||||
format: binary
|
format: binary
|
||||||
|
pattern: "(?s).*" # todo: review. Btw this means "any string"
|
||||||
responses:
|
responses:
|
||||||
'201':
|
'201':
|
||||||
description: Upload photo action successful.
|
description: Upload photo action successful.
|
||||||
|
@ -670,7 +671,8 @@ paths:
|
||||||
content:
|
content:
|
||||||
image/jpeg:
|
image/jpeg:
|
||||||
schema:
|
schema:
|
||||||
#todo it wants lenght
|
minLength: 1
|
||||||
|
maxLength: 10485760 # Image should not be bigger than 10 MiB
|
||||||
description: The requested photo in binary format.
|
description: The requested photo in binary format.
|
||||||
type: string
|
type: string
|
||||||
format: binary
|
format: binary
|
||||||
|
@ -849,7 +851,7 @@ paths:
|
||||||
example:
|
example:
|
||||||
status: "Resource not found"
|
status: "Resource not found"
|
||||||
|
|
||||||
/stream: # todo review path
|
/stream:
|
||||||
get:
|
get:
|
||||||
tags: ["stream"]
|
tags: ["stream"]
|
||||||
summary: Returns user stream
|
summary: Returns user stream
|
||||||
|
@ -946,7 +948,7 @@ components:
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
description: Upload time and date in RFC3339 format.
|
description: Upload time and date in RFC3339 format.
|
||||||
minLength: 25
|
minLength: 20
|
||||||
maxLength: 25
|
maxLength: 25
|
||||||
likes:
|
likes:
|
||||||
type: integer
|
type: integer
|
||||||
|
|
Loading…
Reference in a new issue