[rest api] fix purchases documentation (#380)

Documentation in the REST OpenAPI spec were showing incorrect information about Purchasing endpoints.

Update the open api spec to reflect information about purchases, not requests.
This commit is contained in:
Eric Mastro 2023-03-30 11:02:25 +11:00 committed by GitHub
parent 1c9c22ad63
commit d756bf9dc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -171,7 +171,7 @@ components:
type: string type: string
description: Random data description: Random data
StorageRequestState: Purchase:
type: object type: object
properties: properties:
state: state:
@ -317,29 +317,29 @@ paths:
"/storage/purchases/{id}": "/storage/purchases/{id}":
get: get:
summary: "Returns information about node's Requests" summary: "Returns purchase details"
tags: [ Marketplace ] tags: [ Marketplace ]
operationId: getStorageRequestState operationId: getPurchase
parameters: parameters:
- in: path - in: path
name: id name: id
required: true required: true
schema: schema:
type: string type: string
description: Hexadecimal ID of a Request description: Hexadecimal ID of a Purchase
responses: responses:
"200": "200":
description: Information about the Request state and specification description: Purchase details
content: content:
application/json: application/json:
schema: schema:
type: array type: array
items: items:
$ref: "#/components/schemas/StorageRequestState" $ref: "#/components/schemas/Purchase"
"400": "400":
description: Invalid or missing Request ID description: Invalid or missing Purchase ID
"404": "404":
description: Request ID not found description: Purchase not found
"503": "503":
description: Purchasing is unavailable description: Purchasing is unavailable