Skip to content

Commit

Permalink
refactor(api): remove deprecated stamps endpoint (#2632)
Browse files Browse the repository at this point in the history
  • Loading branch information
acud authored Nov 4, 2021
1 parent d1a50fe commit f78ad3b
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 534 deletions.
83 changes: 0 additions & 83 deletions openapi/Swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -783,89 +783,6 @@ paths:
default:
description: Default response

"/stamps":
get:
summary: Get all available stamps for this node
deprecated: true
tags:
- Postage Stamps
responses:
"200":
description: Returns an array of all available postage batches.
content:
application/json:
schema:
$ref: "SwarmCommon.yaml#/components/schemas/PostageBatchesResponse"

default:
description: Default response

"/stamps/{id}":
parameters:
- in: path
name: id
schema:
$ref: "SwarmCommon.yaml#/components/schemas/BatchID"
required: true
description: Swarm address of the stamp
get:
summary: Get an individual postage batch status
deprecated: true
tags:
- Postage Stamps
responses:
"200":
description: Returns an individual postage batch state
content:
application/json:
schema:
$ref: "SwarmCommon.yaml#/components/schemas/PostageBatch"
"400":
$ref: "SwarmCommon.yaml#/components/responses/400"
default:
description: Default response

"/stamps/{amount}/{depth}":
post:
summary: Buy a new postage batch.
description: Be aware, this endpoint creates an on-chain transactions and transfers BZZ from the node's Ethereum account and hence directly manipulates the wallet balance!
deprecated: true
tags:
- Postage Stamps
parameters:
- in: path
name: amount
schema:
type: integer
required: true
description: Amount of BZZ added that the postage batch will have.
- in: path
name: depth
schema:
type: integer
required: true
description: Batch depth which specifies how many chunks can be signed with the batch. It is a logarithm. Must be higher than default bucket depth (16)
- in: query
name: label
schema:
type: string
required: false
description: An optional label for this batch
- $ref: "SwarmCommon.yaml#/components/parameters/GasPriceParameter"
responses:
"201":
description: Returns the newly created postage batch ID
content:
application/json:
schema:
$ref: "SwarmCommon.yaml#/components/schemas/BatchIDResponse"
"400":
$ref: "SwarmCommon.yaml#/components/responses/400"
"500":
$ref: "SwarmCommon.yaml#/components/responses/500"
default:
description: Default response

"/stewardship/{reference}":
get:
summary: "Check if content is available"
Expand Down
3 changes: 0 additions & 3 deletions pkg/api/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ type (
TagResponse = tagResponse
TagRequest = tagRequest
ListTagsResponse = listTagsResponse
PostageCreateResponse = postageCreateResponse
PostageStampResponse = postageStampResponse
PostageStampsResponse = postageStampsResponse
IsRetrievableResponse = isRetrievableResponse
)

Expand Down
168 changes: 0 additions & 168 deletions pkg/api/postage.go

This file was deleted.

Loading

0 comments on commit f78ad3b

Please sign in to comment.