From 2bcb1426e348a43199a4365ea069bac526e4bffe Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Mon, 10 Nov 2025 00:19:27 +0100 Subject: [PATCH] Implemented the GET /marketplace/fee/{price} endpoint for the Open API specification document in the library target. --- Sources/DiscogsService/openapi.yaml | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/Sources/DiscogsService/openapi.yaml b/Sources/DiscogsService/openapi.yaml index b49721ae8..7fe5e300a 100644 --- a/Sources/DiscogsService/openapi.yaml +++ b/Sources/DiscogsService/openapi.yaml @@ -2204,6 +2204,41 @@ paths: $ref: '#/components/responses/NotFound' '500': $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: headers: Link: @@ -2488,6 +2523,15 @@ components: type: integer minimum: 1 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: description: A biographical information about a user. name: profile