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:
items:
$ref: "#/components/schemas/PostageBatch"
DebugPostageBatchesResponse:
type: object
properties:
stamps:
type: array
nullable: true
items:
$ref: "#/components/schemas/DebugPostageBatch"
BatchIDResponse:
type: object
properties:
......@@ -320,6 +329,7 @@ components:
utilization:
type: integer
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
label:
type: string
......@@ -333,11 +343,18 @@ components:
type: integer
immutableFlag:
type: boolean
exists:
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
DebugPostageBatch:
allOf:
- $ref: '#/components/schemas/PostageBatch'
- 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:
type: object
......
......@@ -772,7 +772,7 @@ paths:
content:
application/json:
schema:
$ref: "SwarmCommon.yaml#/components/schemas/PostageBatchesResponse"
$ref: "SwarmCommon.yaml#/components/schemas/DebugPostageBatchesResponse"
default:
description: Default response
......@@ -795,7 +795,7 @@ paths:
content:
application/json:
schema:
$ref: "SwarmCommon.yaml#/components/schemas/PostageBatch"
$ref: "SwarmCommon.yaml#/components/schemas/DebugPostageBatch"
"400":
$ref: "SwarmCommon.yaml#/components/responses/400"
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