Implemented the POST /users/{username}/collection/folders/{folder_id} endpoints for the Open API specification document in the library target.
This commit is contained in:
@@ -1109,7 +1109,7 @@ paths:
|
||||
Creates a new folder in the collection of a user.
|
||||
|
||||
This endpoint requires authentication for the owner.
|
||||
operationId: postUserCollectionFolder
|
||||
operationId: postUserCollectionFolders
|
||||
parameters:
|
||||
- $ref: '#/components/parameters/Username'
|
||||
- $ref: '#/components/parameters/Name'
|
||||
@@ -1171,6 +1171,42 @@ paths:
|
||||
$ref: '#/components/responses/NotFound'
|
||||
'500':
|
||||
$ref: '#/components/responses/InternalError'
|
||||
post:
|
||||
tags:
|
||||
- User Collection
|
||||
summary: Update information about a collection folder of a user.
|
||||
description: |
|
||||
Edits the metadata for a collection folder of a user. Please bear in mind that the folders with identifier `0` and `1` cannot be renamed.
|
||||
|
||||
Authentication as the collection owner is required.
|
||||
operationId: postUserCollectionFolder
|
||||
parameters:
|
||||
- $ref: '#/components/parameters/Username'
|
||||
- $ref: '#/components/parameters/FolderId'
|
||||
- $ref: '#/components/parameters/Name'
|
||||
description: A new name for a collection folder of a user.
|
||||
security:
|
||||
- ConsumerKeySecret: []
|
||||
- UserToken: []
|
||||
- OAuth: []
|
||||
responses:
|
||||
'200':
|
||||
description: Successfully retrieved an updated collection folder of 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'
|
||||
'404':
|
||||
$ref: '#/components/responses/NotFound'
|
||||
'500':
|
||||
$ref: '#/components/responses/InternalError'
|
||||
components:
|
||||
|
||||
Reference in New Issue
Block a user