Commit d796d03f authored by Adam Uhlíř's avatar Adam Uhlíř Committed by GitHub

docs: debug batch api (#2389)

parent 917ed48c
...@@ -286,6 +286,15 @@ components: ...@@ -286,6 +286,15 @@ components:
items: items:
$ref: "#/components/schemas/PostageBatch" $ref: "#/components/schemas/PostageBatch"
DebugPostageBatchesResponse:
type: object
properties:
stamps:
type: array
nullable: true
items:
$ref: "#/components/schemas/DebugPostageBatch"
BatchIDResponse: BatchIDResponse:
type: object type: object
properties: properties:
...@@ -320,6 +329,7 @@ components: ...@@ -320,6 +329,7 @@ components:
utilization: utilization:
type: integer type: integer
usable: usable:
description: Indicate that the batch was discovered by the Bee node, but it awaits enough on-chain confirmations before declaring the batch as usable.
type: boolean type: boolean
label: label:
type: string type: string
...@@ -333,11 +343,18 @@ components: ...@@ -333,11 +343,18 @@ components:
type: integer type: integer
immutableFlag: immutableFlag:
type: boolean type: boolean
exists:
type: boolean DebugPostageBatch:
batchTTL: allOf:
description: The time (in seconds) remaining until the batch expires; -1 signals that the batch never expires; 0 signals that the batch has already expired. - $ref: '#/components/schemas/PostageBatch'
type: integer - type: object
properties:
exists:
description: Internal debugging property. It indicates if the batch is expired.
type: boolean
batchTTL:
description: The time (in seconds) remaining until the batch expires; -1 signals that the batch never expires; 0 signals that the batch has already expired.
type: integer
StampBucketData: StampBucketData:
type: object type: object
......
...@@ -772,7 +772,7 @@ paths: ...@@ -772,7 +772,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "SwarmCommon.yaml#/components/schemas/PostageBatchesResponse" $ref: "SwarmCommon.yaml#/components/schemas/DebugPostageBatchesResponse"
default: default:
description: Default response description: Default response
...@@ -795,7 +795,7 @@ paths: ...@@ -795,7 +795,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "SwarmCommon.yaml#/components/schemas/PostageBatch" $ref: "SwarmCommon.yaml#/components/schemas/DebugPostageBatch"
"400": "400":
$ref: "SwarmCommon.yaml#/components/responses/400" $ref: "SwarmCommon.yaml#/components/responses/400"
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment