Implemented the Marketplace endpoints #15

Merged
javier merged 16 commits from library/marketplace into main 2025-11-10 00:34:40 +00:00
Showing only changes of commit 2bcb1426e3 - Show all commits
+44
View File
@@ -2204,6 +2204,41 @@ paths:
$ref: '#/components/responses/NotFound' $ref: '#/components/responses/NotFound'
'500': '500':
$ref: '#/components/responses/InternalError' $ref: '#/components/responses/InternalError'
/marketplace/fee/{price}:
get:
tags:
- Marketplace
summary: Get an estimated fee for selling an item in a marketplace.
description: |
Calculates an estimated fee for selling an item in a marketplace.
This endpoints requires authentication.
operationId: getFee
parameters:
- $ref: '#/components/parameters/Price'
security:
- ConsumerKeySecret: []
- UserToken: []
- OAuth: []
responses:
'200':
description: Successfully retrieves an estimated fee for selling an item in a marketplace.
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:
description: An estimated fee in a default currency.
$ref: '#/components/schemas/Price'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalError'
components: components:
headers: headers:
Link: Link:
@@ -2488,6 +2523,15 @@ components:
type: integer type: integer
minimum: 1 minimum: 1
maximum: 100 maximum: 100
Price:
description: A number for a price of a release.
name: price
in: path
required: true
schema:
type: number
format: float
minimum: 0
Profile: Profile:
description: A biographical information about a user. description: A biographical information about a user.
name: profile name: profile