Implemented the User Collection endpoints #12

Merged
javier merged 16 commits from library/user-collection into main 2025-10-16 14:38:51 +00:00
Showing only changes of commit 054179796a - Show all commits
+37 -1
View File
@@ -1109,7 +1109,7 @@ paths:
Creates a new folder in the collection of a user. Creates a new folder in the collection of a user.
This endpoint requires authentication for the owner. This endpoint requires authentication for the owner.
operationId: postUserCollectionFolder operationId: postUserCollectionFolders
parameters: parameters:
- $ref: '#/components/parameters/Username' - $ref: '#/components/parameters/Username'
- $ref: '#/components/parameters/Name' - $ref: '#/components/parameters/Name'
@@ -1171,6 +1171,42 @@ paths:
$ref: '#/components/responses/NotFound' $ref: '#/components/responses/NotFound'
'500': '500':
$ref: '#/components/responses/InternalError' $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': '500':
$ref: '#/components/responses/InternalError' $ref: '#/components/responses/InternalError'
components: components: