Implemented the User Collection endpoints #12
@@ -1064,7 +1064,7 @@ paths:
|
|||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- User Collection
|
- User Collection
|
||||||
summary: Get collection folder of a user.
|
summary: Get all the collection folders of a user.
|
||||||
description: |
|
description: |
|
||||||
Retrieves a list of folders in a collection of a user.
|
Retrieves a list of folders in a collection of a user.
|
||||||
|
|
||||||
@@ -1104,7 +1104,7 @@ paths:
|
|||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- User Collection
|
- User Collection
|
||||||
summary: Create a new collection folder.
|
summary: Create a new collection folder for a user.
|
||||||
description: |
|
description: |
|
||||||
Creates a new folder in the collection of a user.
|
Creates a new folder in the collection of a user.
|
||||||
|
|
||||||
@@ -1134,6 +1134,43 @@ paths:
|
|||||||
$ref: '#/components/schemas/Folder'
|
$ref: '#/components/schemas/Folder'
|
||||||
'403':
|
'403':
|
||||||
$ref: '#/components/responses/NotAccessable'
|
$ref: '#/components/responses/NotAccessable'
|
||||||
|
'404':
|
||||||
|
$ref: '#/components/responses/NotFound'
|
||||||
|
'500':
|
||||||
|
$ref: '#/components/responses/InternalError'
|
||||||
|
/users/{username}/collection/folders/{folder_id}:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- User Collection
|
||||||
|
summary: Get information about a collection folder of a user.
|
||||||
|
description: |
|
||||||
|
Retrieves metadata about a collection folder of a user.
|
||||||
|
|
||||||
|
In case the `folder_id` is not 0, then the endpoint requires authentication as the collection owner.
|
||||||
|
operationId: getUserCollectionFolder
|
||||||
|
parameters:
|
||||||
|
- $ref: '#/components/parameters/Username'
|
||||||
|
- $ref: '#/components/parameters/FolderId'
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: Successfully retrieved a specific 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'
|
||||||
'500':
|
'500':
|
||||||
$ref: '#/components/responses/InternalError'
|
$ref: '#/components/responses/InternalError'
|
||||||
components:
|
components:
|
||||||
@@ -1186,8 +1223,8 @@ components:
|
|||||||
required: true
|
required: true
|
||||||
parameters:
|
parameters:
|
||||||
ArtistId:
|
ArtistId:
|
||||||
name: artist_id
|
|
||||||
description: An identifier of an artist.
|
description: An identifier of an artist.
|
||||||
|
name: artist_id
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
@@ -1205,15 +1242,15 @@ components:
|
|||||||
- title
|
- title
|
||||||
- format
|
- format
|
||||||
Authorization:
|
Authorization:
|
||||||
name: Authorization
|
|
||||||
description: A string to authenticate a user with a service by carrying credentials.
|
description: A string to authenticate a user with a service by carrying credentials.
|
||||||
|
name: Authorization
|
||||||
in: header
|
in: header
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
ContentType:
|
ContentType:
|
||||||
name: Content-Type
|
|
||||||
description: A content type for a response.
|
description: A content type for a response.
|
||||||
|
name: Content-Type
|
||||||
in: header
|
in: header
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
@@ -1236,6 +1273,14 @@ components:
|
|||||||
in: query
|
in: query
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/Currency'
|
$ref: '#/components/schemas/Currency'
|
||||||
|
FolderId:
|
||||||
|
description: An identifier of a collection folder.
|
||||||
|
name: folder_id
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
example: 0
|
||||||
Format:
|
Format:
|
||||||
description: A filter by format.
|
description: A filter by format.
|
||||||
name: format
|
name: format
|
||||||
|
|||||||
Reference in New Issue
Block a user