Skip to content

Commit 310dd00

Browse files
author
Alan Shaw
authored
fix: remove ucan-upload route from schema (#2168)
1 parent 8a4f732 commit 310dd00

1 file changed

Lines changed: 0 additions & 49 deletions

File tree

packages/website/public/schema.yml

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -192,55 +192,6 @@ paths:
192192
$ref: '#/components/responses/forbidden'
193193
'500':
194194
$ref: '#/components/responses/internalServerError'
195-
/ucan-upload:
196-
post:
197-
tags:
198-
- NFT Storage
199-
summary: Store a file
200-
description: |
201-
Just like `/upload` endpoint but [using UCAN authorization tokens](https://nft.storage/docs/how-to/ucan/#using-ucans-with-nftstorage).
202-
You must set `x-agent-did` header to a DID that signed the token.
203-
204-
operationId: ucan-upload
205-
requestBody:
206-
required: true
207-
content:
208-
image/*:
209-
schema:
210-
type: string
211-
format: binary
212-
application/car:
213-
schema:
214-
type: string
215-
format: binary
216-
multipart/form-data:
217-
schema:
218-
type: object
219-
properties:
220-
file:
221-
type: array
222-
items:
223-
type: string
224-
format: binary
225-
'*/*':
226-
schema:
227-
type: string
228-
format: binary
229-
responses:
230-
'200':
231-
description: OK
232-
content:
233-
'application/json':
234-
schema:
235-
$ref: '#/components/schemas/UploadResponse'
236-
'400':
237-
$ref: '#/components/responses/badRequest'
238-
'401':
239-
$ref: '#/components/responses/unauthorized'
240-
'403':
241-
$ref: '#/components/responses/forbidden'
242-
'500':
243-
$ref: '#/components/responses/internalServerError'
244195
/:
245196
get:
246197
tags:

0 commit comments

Comments
 (0)