diff --git a/openapi.yaml b/openapi.yaml index a4dbb17a..15e87c79 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -152,10 +152,7 @@ components: default: 0 collateral: type: string - description: Number as decimal string that represents how much collateral is asked from hosts that wants to fill a slots - expiry: - type: string - description: Number as decimal string that represents expiry time of the request (in unix timestamp) + description: Hexadecimal encoded number that represents how much collateral is asked from hosts that wants to fill a slots StorageAsk: type: object @@ -415,50 +412,6 @@ paths: "503": description: Sales are unavailable - "/storage/request/{cid}": - post: - summary: "Creates a new Request for storage" - tags: [ Marketplace ] - operationId: createStorageRequest - parameters: - - in: path - name: cid - required: true - schema: - $ref: "#/components/schemas/Cid" - description: CID of the uploaded data that should be stored - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/StorageRequestCreation" - responses: - "200": - description: Returns the Request ID as decimal string - "400": - description: Invalid or missing Request ID - "404": - description: Request ID not found - "503": - description: Purchasing is unavailable - - "/storage/purchases": - get: - summary: "Returns list of purchase IDs" - tags: [ Marketplace ] - operationId: getPurchases - responses: - "200": - description: Gets all purchase IDs stored in node - content: - application/json: - schema: - type: array - items: - type: string - "503": - description: Purchasing is unavailable - "/storage/purchases/{id}": get: summary: "Returns purchase details" @@ -487,6 +440,33 @@ paths: "503": description: Purchasing is unavailable + "/storage/request/{cid}": + post: + summary: "Creates a new Request for storage" + tags: [ Marketplace ] + operationId: createStorageRequest + parameters: + - in: path + name: cid + required: true + schema: + $ref: "#/components/schemas/Cid" + description: CID of the uploaded data that should be stored + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/StorageRequestCreation" + responses: + "200": + description: Returns the Request ID as decimal string + "400": + description: Invalid or missing Request ID + "404": + description: Request ID not found + "503": + description: Purchasing is unavailable + "/debug/chronicles/loglevel": post: summary: "Set log level at run time"