mirror of
https://github.com/enpaul/kodak.git
synced 2024-11-14 10:36:55 +00:00
Add digest header to api spec
This commit is contained in:
parent
ab8b53d2cf
commit
7b49146123
36
openapi.yaml
36
openapi.yaml
@ -47,11 +47,7 @@ paths:
|
|||||||
- $ref: "#/components/parameters/ImageFormat"
|
- $ref: "#/components/parameters/ImageFormat"
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Image content for provided ID
|
$ref: "#/components/responses/Image"
|
||||||
headers: *headers-default
|
|
||||||
content:
|
|
||||||
image/jpeg: {}
|
|
||||||
image/png: {}
|
|
||||||
'404':
|
'404':
|
||||||
$ref: "#/components/responses/NotFoundError"
|
$ref: "#/components/responses/NotFoundError"
|
||||||
'410':
|
'410':
|
||||||
@ -78,11 +74,7 @@ paths:
|
|||||||
- $ref: "#/components/parameters/ImageScaleValue"
|
- $ref: "#/components/parameters/ImageScaleValue"
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Scaled image thumbnail content
|
$ref: "#/components/responses/Image"
|
||||||
headers: *headers-default
|
|
||||||
content:
|
|
||||||
image/jpeg: {}
|
|
||||||
image/png: {}
|
|
||||||
'404':
|
'404':
|
||||||
$ref: "#/components/responses/NotFoundError"
|
$ref: "#/components/responses/NotFoundError"
|
||||||
'410':
|
'410':
|
||||||
@ -112,11 +104,7 @@ paths:
|
|||||||
- $ref: "#/components/parameters/ImageCropHeight"
|
- $ref: "#/components/parameters/ImageCropHeight"
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Scaled thumbnail image of specified dimentions
|
$ref: "#/components/responses/Image"
|
||||||
headers: *headers-default
|
|
||||||
content:
|
|
||||||
image/jpeg: {}
|
|
||||||
image/png: {}
|
|
||||||
'404':
|
'404':
|
||||||
$ref: "#/components/responses/NotFoundError"
|
$ref: "#/components/responses/NotFoundError"
|
||||||
'410':
|
'410':
|
||||||
@ -145,11 +133,7 @@ paths:
|
|||||||
- $ref: "#/components/parameters/ImageAlias"
|
- $ref: "#/components/parameters/ImageAlias"
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Scaled thumbnail image of specified dimentions
|
$ref: "#/components/responses/Image"
|
||||||
headers: *headers-default
|
|
||||||
content:
|
|
||||||
image/jpeg: {}
|
|
||||||
image/png: {}
|
|
||||||
'404':
|
'404':
|
||||||
$ref: "#/components/responses/NotFoundError"
|
$ref: "#/components/responses/NotFoundError"
|
||||||
'410':
|
'410':
|
||||||
@ -254,6 +238,18 @@ components:
|
|||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
responses:
|
responses:
|
||||||
|
Image:
|
||||||
|
description: Image content for provided ID
|
||||||
|
headers:
|
||||||
|
<<: *headers-default
|
||||||
|
Digest:
|
||||||
|
description: SHA256 hash of the provided image content
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: sha256
|
||||||
|
content:
|
||||||
|
image/jpeg: {}
|
||||||
|
image/png: {}
|
||||||
InternalServerError:
|
InternalServerError:
|
||||||
description: Internal server error
|
description: Internal server error
|
||||||
headers: *headers-default
|
headers: *headers-default
|
||||||
|
Loading…
Reference in New Issue
Block a user