fix: schema fixes

This commit is contained in:
Derrick Hammer 2024-02-07 18:25:20 -05:00
parent 192ac364c5
commit 69ae351d94
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 42 additions and 0 deletions

View File

@ -555,12 +555,24 @@ paths:
/s5/blob/{cid}: /s5/blob/{cid}:
get: get:
summary: Retrieve a blob summary: Retrieve a blob
parameters:
- name: cid
in: path
required: true
schema:
type: string
responses: responses:
'302': '302':
description: Redirecting to discovered blob url description: Redirecting to discovered blob url
/s5/metadata/{cid}: /s5/metadata/{cid}:
get: get:
summary: Retrieve file metadata summary: Retrieve file metadata
parameters:
- name: cid
in: path
required: true
schema:
type: string
description: > description: >
* Resolvers are currently not supported * Resolvers are currently not supported
@ -575,6 +587,12 @@ paths:
/s5/download/{cid}: /s5/download/{cid}:
get: get:
summary: Download a file summary: Download a file
parameters:
- name: cid
in: path
required: true
schema:
type: string
responses: responses:
'200': '200':
description: File content description: File content
@ -588,12 +606,24 @@ paths:
/s5/pin/{cid}: /s5/pin/{cid}:
post: post:
summary: Pin a file summary: Pin a file
parameters:
- name: cid
in: path
required: true
schema:
type: string
responses: responses:
'204': '204':
description: File pinned description: File pinned
/s5/delete/{cid}: /s5/delete/{cid}:
delete: delete:
summary: Delete a file. This will only unpin it from the account, and potentially delete it later if there are no more global pins. summary: Delete a file. This will only unpin it from the account, and potentially delete it later if there are no more global pins.
parameters:
- name: cid
in: path
required: true
schema:
type: string
responses: responses:
'204': '204':
description: File deleted description: File deleted
@ -603,6 +633,11 @@ paths:
get: get:
summary: Retrieve download URLs summary: Retrieve download URLs
parameters: parameters:
- name: cid
in: path
required: true
schema:
type: string
- name: hash - name: hash
in: query in: query
required: true required: true
@ -625,6 +660,13 @@ paths:
/s5/debug/storage_locations/{hash}: /s5/debug/storage_locations/{hash}:
get: get:
summary: Retrieve storage locations summary: Retrieve storage locations
parameters:
- name: hash
in: path
required: true
schema:
type: string
description: This is base64 url encoded
responses: responses:
'200': '200':
description: Storage locations description: Storage locations