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:
|
||||
schema:
|
||||
$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:
|
||||
get:
|
||||
summary: Retrieve account pins
|
||||
|
@ -90,6 +104,8 @@ paths:
|
|||
responses:
|
||||
'200':
|
||||
description: Account pins
|
||||
'401':
|
||||
description: Unauthorized
|
||||
|
||||
# Upload API
|
||||
/s5/upload:
|
||||
|
@ -626,6 +642,8 @@ paths:
|
|||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
'415':
|
||||
description: Unsupported content type
|
||||
/s5/download/{cid}:
|
||||
get:
|
||||
summary: Download a file
|
||||
|
@ -880,6 +898,20 @@ components:
|
|||
properties:
|
||||
stats:
|
||||
$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:
|
||||
type: object
|
||||
properties:
|
||||
|
|
Loading…
Reference in New Issue