Implemented the POST /users/{username}/collection/folders endpoints for the Open API specification document in the library target.
This commit is contained in:
@@ -1101,6 +1101,41 @@ paths:
|
||||
$ref: '#/components/responses/NotFound'
|
||||
'500':
|
||||
$ref: '#/components/responses/InternalError'
|
||||
post:
|
||||
tags:
|
||||
- User Collection
|
||||
summary: Create a new collection folder.
|
||||
description: |
|
||||
Creates a new folder in the collection of a user.
|
||||
|
||||
This endpoint requires authentication for the owner.
|
||||
operationId: postUserCollectionFolder
|
||||
parameters:
|
||||
- $ref: '#/components/parameters/Username'
|
||||
- $ref: '#/components/parameters/Name'
|
||||
description: A name for a new folder.
|
||||
security:
|
||||
- ConsumerKeySecret: []
|
||||
- UserToken: []
|
||||
- OAuth: []
|
||||
responses:
|
||||
'201':
|
||||
description: Successfully create a new collection folder for a user.
|
||||
headers:
|
||||
X-Discogs-RateLimit:
|
||||
$ref: '#/components/headers/RateLimit'
|
||||
X-Discogs-RateLimit-Used:
|
||||
$ref: '#/components/headers/RateLimitUsed'
|
||||
X-Discogs-RateLimit-Remaining:
|
||||
$ref: '#/components/headers/RateLimitRemaining'
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Folder'
|
||||
'403':
|
||||
$ref: '#/components/responses/NotAccessable'
|
||||
'500':
|
||||
$ref: '#/components/responses/InternalError'
|
||||
components:
|
||||
headers:
|
||||
Link:
|
||||
@@ -1263,7 +1298,6 @@ components:
|
||||
in: query
|
||||
schema:
|
||||
type: string
|
||||
example: Some real name
|
||||
Page:
|
||||
description: A number of page of results to return.
|
||||
name: page
|
||||
|
||||
Reference in New Issue
Block a user