chore: update swagger.yaml
This commit is contained in:
parent
e9f4b03979
commit
7cdcfe3b3e
32
swagger.yaml
32
swagger.yaml
|
@ -82,6 +82,20 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/AccountStatsResponse"
|
$ref: "#/components/schemas/AccountStatsResponse"
|
||||||
|
/s5/account/pins:
|
||||||
|
get:
|
||||||
|
summary: Retrieve account pins
|
||||||
|
tags:
|
||||||
|
- account
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: Account pins
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/AccountPinsResponse'
|
||||||
|
'401':
|
||||||
|
description: Unauthorized
|
||||||
/s5/account/pins.bin:
|
/s5/account/pins.bin:
|
||||||
get:
|
get:
|
||||||
summary: Retrieve account pins
|
summary: Retrieve account pins
|
||||||
|
@ -90,6 +104,8 @@ paths:
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Account pins
|
description: Account pins
|
||||||
|
'401':
|
||||||
|
description: Unauthorized
|
||||||
|
|
||||||
# Upload API
|
# Upload API
|
||||||
/s5/upload:
|
/s5/upload:
|
||||||
|
@ -626,6 +642,8 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
|
'415':
|
||||||
|
description: Unsupported content type
|
||||||
/s5/download/{cid}:
|
/s5/download/{cid}:
|
||||||
get:
|
get:
|
||||||
summary: Download a file
|
summary: Download a file
|
||||||
|
@ -880,6 +898,20 @@ components:
|
||||||
properties:
|
properties:
|
||||||
stats:
|
stats:
|
||||||
$ref: "#/components/schemas/AccountStats"
|
$ref: "#/components/schemas/AccountStats"
|
||||||
|
AccountPinsResponse:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
pins:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/AccountPin'
|
||||||
|
AccountPin:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
hash:
|
||||||
|
type: string
|
||||||
|
mime_type:
|
||||||
|
type: string
|
||||||
RegistryQueryResponse:
|
RegistryQueryResponse:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|
Loading…
Reference in New Issue