chore: update swagger.yaml

This commit is contained in:
Derrick Hammer 2024-03-16 11:21:17 -04:00
parent e9f4b03979
commit 7cdcfe3b3e
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 49 additions and 17 deletions

View File

@ -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: