Skip to content

Commit

Permalink
chore: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
acha-bill committed Nov 13, 2023
1 parent 587d674 commit 143eda9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions openapi/Swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ paths:
$ref: "SwarmCommon.yaml#/components/schemas/SwarmReference"
required: true
description: Swarm address reference to content
- in: header
schema:
$ref: "SwarmCommon.yaml#/components/parameters/SwarmCache"
name: swarm-cache
required: false
responses:
"200":
description: Retrieved content specified by reference
Expand Down Expand Up @@ -300,6 +305,11 @@ paths:
$ref: "SwarmCommon.yaml#/components/schemas/SwarmReference"
required: true
description: Swarm address of content
- in: header
schema:
$ref: "SwarmCommon.yaml#/components/parameters/SwarmCache"
name: swarm-cache
required: false
responses:
"200":
description: Ok
Expand Down
9 changes: 9 additions & 0 deletions openapi/SwarmCommon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,15 @@ components:
description: >
Determines if the uploaded data should be sent to the network immediately or in a deferred fashion. By default the upload will be direct.
SwarmCache:
in: header
name: swarm-cache
schema:
type: boolean
default: "true"
required: false
description: "Determines if the download data should be cached on the node. By default the download will be cached"

responses:
"204":
description: The resource was deleted successfully.
Expand Down

0 comments on commit 143eda9

Please sign in to comment.