Implemented the GET /marketplace/fee/{price} endpoint for the Open API specification document in the library target.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user