From 71bd8ba6b04148307c0b12048090e42d88e4b136 Mon Sep 17 00:00:00 2001 From: notanatol Date: Fri, 23 Feb 2024 08:25:36 -0600 Subject: [PATCH] fix: openapi --- openapi/Swarm.yaml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/openapi/Swarm.yaml b/openapi/Swarm.yaml index 61b446d1095..56e1f8b3070 100644 --- a/openapi/Swarm.yaml +++ b/openapi/Swarm.yaml @@ -179,6 +179,26 @@ paths: $ref: "SwarmCommon.yaml#/components/responses/400" default: description: Default response + head: + summary: Requests the headers containing the content type and length for the reference + tags: + - Bytes + parameters: + - in: path + name: address + schema: + $ref: "SwarmCommon.yaml#/components/schemas/SwarmAddress" + required: true + description: Swarm address of chunk + responses: + "200": + description: Chunk exists + "400": + $ref: "SwarmCommon.yaml#/components/responses/400" + "404": + $ref: "SwarmCommon.yaml#/components/responses/404" + default: + description: Default response "/chunks": post: @@ -332,6 +352,26 @@ paths: $ref: "SwarmCommon.yaml#/components/responses/500" default: description: Default response + head: + summary: Get the headers containing the content type and length for the reference + tags: + - BZZ + parameters: + - in: path + name: address + schema: + $ref: "SwarmCommon.yaml#/components/schemas/SwarmAddress" + required: true + description: Swarm address of chunk + responses: + "200": + description: Chunk exists + "400": + $ref: "SwarmCommon.yaml#/components/responses/400" + "404": + $ref: "SwarmCommon.yaml#/components/responses/404" + default: + description: Default response "/bzz/{reference}/{path}": get: