Implemented the GET /marketplace/orders/{order_id} endpoint for the Open API specification document in the library target.
This commit is contained in:
@@ -2064,6 +2064,42 @@ paths:
|
|||||||
- pagination
|
- pagination
|
||||||
'500':
|
'500':
|
||||||
$ref: '#/components/responses/InternalError'
|
$ref: '#/components/responses/InternalError'
|
||||||
|
/marketplace/orders/{order_id}:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- Marketplace
|
||||||
|
summary: Get an order for a seller in a marketplace.
|
||||||
|
description: |
|
||||||
|
Views the data associated with an order.
|
||||||
|
|
||||||
|
This endpoints requires authentication as a seller.
|
||||||
|
operationId: getOrder
|
||||||
|
parameters:
|
||||||
|
- $ref: '#/components/parameters/OrderId'
|
||||||
|
security:
|
||||||
|
- ConsumerKeySecret: []
|
||||||
|
- UserToken: []
|
||||||
|
- OAuth: []
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: Successfully retrieved an order for a seller from 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:
|
||||||
|
$ref: '#/components/schemas/Order'
|
||||||
|
'401':
|
||||||
|
$ref: '#/components/responses/Unauthorized'
|
||||||
|
'403':
|
||||||
|
$ref: '#/components/responses/NotAccessable'
|
||||||
|
'500':
|
||||||
|
$ref: '#/components/responses/InternalError'
|
||||||
components:
|
components:
|
||||||
headers:
|
headers:
|
||||||
Link:
|
Link:
|
||||||
@@ -2317,6 +2353,14 @@ components:
|
|||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
|
OrderId:
|
||||||
|
description: An identifier of an order.
|
||||||
|
name: order_id
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
minimum: 0
|
||||||
OrderStatus:
|
OrderStatus:
|
||||||
description: An indication to show order with a given status only.
|
description: An indication to show order with a given status only.
|
||||||
name: status
|
name: status
|
||||||
|
|||||||
Reference in New Issue
Block a user