1
1
openapi : 3.0.3
2
2
3
3
info :
4
- version : 7.1 .0
4
+ version : 7.2 .0
5
5
title : Bee API
6
6
description : " A list of the currently provided Interfaces to interact with the swarm, implementing file operations and sending messages"
7
7
@@ -237,6 +237,7 @@ paths:
237
237
- $ref : " SwarmCommon.yaml#/components/parameters/SwarmCache"
238
238
- $ref : " SwarmCommon.yaml#/components/parameters/SwarmRedundancyStrategyParameter"
239
239
- $ref : " SwarmCommon.yaml#/components/parameters/SwarmRedundancyFallbackModeParameter"
240
+ - $ref : " SwarmCommon.yaml#/components/parameters/SwarmRedundancyLevelParameter"
240
241
- $ref : " SwarmCommon.yaml#/components/parameters/SwarmChunkRetrievalTimeoutParameter"
241
242
- $ref : " SwarmCommon.yaml#/components/parameters/SwarmActTimestamp"
242
243
- $ref : " SwarmCommon.yaml#/components/parameters/SwarmActPublisher"
@@ -269,7 +270,23 @@ paths:
269
270
- $ref : " SwarmCommon.yaml#/components/parameters/SwarmActHistoryAddress"
270
271
responses :
271
272
" 200 " :
272
- description : Chunk exists
273
+ description : The chunk exists.
274
+ headers :
275
+ Content-Type :
276
+ description : The MIME type of the resource (e.g., application/octet-stream).
277
+ schema :
278
+ type : string
279
+ example : application/octet-stream
280
+ Content-Length :
281
+ description : The size of the chunk in bytes.
282
+ schema :
283
+ type : integer
284
+ example : 1024
285
+ Access-Control-Expose-Headers :
286
+ description : Headers exposed for CORS.
287
+ schema :
288
+ type : string
289
+ example : Accept-Ranges, Content-Encoding
273
290
" 400 " :
274
291
$ref : " SwarmCommon.yaml#/components/responses/400"
275
292
" 404 " :
@@ -424,6 +441,7 @@ paths:
424
441
- $ref : " SwarmCommon.yaml#/components/parameters/SwarmCache"
425
442
- $ref : " SwarmCommon.yaml#/components/parameters/SwarmRedundancyStrategyParameter"
426
443
- $ref : " SwarmCommon.yaml#/components/parameters/SwarmRedundancyFallbackModeParameter"
444
+ - $ref : " SwarmCommon.yaml#/components/parameters/SwarmRedundancyLevelParameter"
427
445
- $ref : " SwarmCommon.yaml#/components/parameters/SwarmChunkRetrievalTimeoutParameter"
428
446
- $ref : " SwarmCommon.yaml#/components/parameters/SwarmActTimestamp"
429
447
- $ref : " SwarmCommon.yaml#/components/parameters/SwarmActPublisher"
@@ -816,6 +834,28 @@ paths:
816
834
default :
817
835
description : Default response
818
836
837
+ " /gsoc/subscribe/{address} " :
838
+ get :
839
+ summary : Subscribe to GSOC payloads
840
+ tags :
841
+ - GSOC
842
+ - Subscribe
843
+ - Websocket
844
+ parameters :
845
+ - in : path
846
+ name : reference
847
+ schema :
848
+ $ref : " SwarmCommon.yaml#/components/schemas/SwarmReference"
849
+ required : true
850
+ description : " Single Owner Chunk address (which may have multiple payloads)"
851
+ responses :
852
+ " 200 " :
853
+ description : Returns a WebSocket with a subscription for incoming message data on the requested SOC address.
854
+ " 500 " :
855
+ $ref : " SwarmCommon.yaml#/components/responses/500"
856
+ default :
857
+ description : Default response
858
+
819
859
" /soc/{owner}/{id} " :
820
860
post :
821
861
summary : Upload single owner chunk
@@ -840,12 +880,11 @@ paths:
840
880
$ref : " SwarmCommon.yaml#/components/schemas/HexString"
841
881
required : true
842
882
description : Signature
843
- - $ref : " SwarmCommon.yaml#/components/parameters/SwarmPinParameter"
844
883
- in : header
845
884
name : swarm-postage-batch-id
846
885
schema :
847
886
$ref : " SwarmCommon.yaml#/components/parameters/SwarmPostageBatchId"
848
- required : false
887
+ required : true
849
888
- $ref : " SwarmCommon.yaml#/components/parameters/SwarmPostageStamp"
850
889
- $ref : " SwarmCommon.yaml#/components/parameters/SwarmAct"
851
890
- $ref : " SwarmCommon.yaml#/components/parameters/SwarmActHistoryAddress"
@@ -877,6 +916,47 @@ paths:
877
916
$ref : " SwarmCommon.yaml#/components/responses/500"
878
917
default :
879
918
description : Default response
919
+ get :
920
+ summary : Resolve Single Owner Chunk data
921
+ tags :
922
+ - Single owner chunk
923
+ parameters :
924
+ - in : path
925
+ name : owner
926
+ schema :
927
+ $ref : " SwarmCommon.yaml#/components/schemas/EthereumAddress"
928
+ required : true
929
+ description : Ethereum address of the Owner of the SOC
930
+ - in : path
931
+ name : id
932
+ schema :
933
+ $ref : " SwarmCommon.yaml#/components/schemas/HexString"
934
+ required : true
935
+ description : Arbitrary identifier of the related data
936
+ - $ref : " SwarmCommon.yaml#/components/parameters/SwarmOnlyRootChunkParameter"
937
+ - $ref : " SwarmCommon.yaml#/components/parameters/SwarmCache"
938
+ - $ref : " SwarmCommon.yaml#/components/parameters/SwarmRedundancyStrategyParameter"
939
+ - $ref : " SwarmCommon.yaml#/components/parameters/SwarmRedundancyFallbackModeParameter"
940
+ - $ref : " SwarmCommon.yaml#/components/parameters/SwarmChunkRetrievalTimeoutParameter"
941
+ responses :
942
+ " 200 " :
943
+ description : Related Single Owner Chunk data
944
+ headers :
945
+ " swarm-soc-signature " :
946
+ $ref : " SwarmCommon.yaml#/components/headers/SwarmSocSignature"
947
+ content :
948
+ application/octet-stream :
949
+ schema :
950
+ type : string
951
+ format : binary
952
+ " 400 " :
953
+ $ref : " SwarmCommon.yaml#/components/responses/400"
954
+ " 401 " :
955
+ $ref : " SwarmCommon.yaml#/components/responses/401"
956
+ " 500 " :
957
+ $ref : " SwarmCommon.yaml#/components/responses/500"
958
+ default :
959
+ description : Default response
880
960
881
961
" /feeds/{owner}/{topic} " :
882
962
post :
@@ -961,18 +1041,26 @@ paths:
961
1041
$ref : " SwarmCommon.yaml#/components/schemas/FeedType"
962
1042
required : false
963
1043
description : " Feed indexing scheme (default: sequence)"
1044
+ - $ref : " SwarmCommon.yaml#/components/parameters/SwarmOnlyRootChunkParameter"
1045
+ - $ref : " SwarmCommon.yaml#/components/parameters/SwarmCache"
1046
+ - $ref : " SwarmCommon.yaml#/components/parameters/SwarmRedundancyStrategyParameter"
1047
+ - $ref : " SwarmCommon.yaml#/components/parameters/SwarmRedundancyFallbackModeParameter"
1048
+ - $ref : " SwarmCommon.yaml#/components/parameters/SwarmChunkRetrievalTimeoutParameter"
964
1049
responses :
965
1050
" 200 " :
966
1051
description : Latest feed update
967
1052
headers :
1053
+ " swarm-soc-signature " :
1054
+ $ref : " SwarmCommon.yaml#/components/headers/SwarmSocSignature"
968
1055
" swarm-feed-index " :
969
1056
$ref : " SwarmCommon.yaml#/components/headers/SwarmFeedIndex"
970
1057
" swarm-feed-index-next " :
971
1058
$ref : " SwarmCommon.yaml#/components/headers/SwarmFeedIndexNext"
972
1059
content :
973
- application/json :
1060
+ application/octet-stream :
974
1061
schema :
975
- $ref : " SwarmCommon.yaml#/components/schemas/ReferenceResponse"
1062
+ type : string
1063
+ format : binary
976
1064
" 400 " :
977
1065
$ref : " SwarmCommon.yaml#/components/responses/400"
978
1066
" 401 " :
@@ -2396,6 +2484,23 @@ paths:
2396
2484
default :
2397
2485
description : Default response.
2398
2486
2487
+ " /status/neighborhoods " :
2488
+ get :
2489
+ summary : Get the current neighborhoods status of this node.
2490
+ tags :
2491
+ - Node Status
2492
+ responses :
2493
+ " 200 " :
2494
+ description : Returns the neighborhoods status of this node
2495
+ content :
2496
+ application/json :
2497
+ schema :
2498
+ $ref : " SwarmCommon.yaml#/components/schemas/StatusNeighborhoodsResponse"
2499
+ " 400 " :
2500
+ $ref : " SwarmCommon.yaml#/components/responses/400"
2501
+ default :
2502
+ description : Default response.
2503
+
2399
2504
components :
2400
2505
securitySchemes :
2401
2506
basicAuth :
@@ -2405,4 +2510,4 @@ components:
2405
2510
bearerAuth :
2406
2511
type : http
2407
2512
scheme : bearer
2408
- bearerFormat : SecurityToken
2513
+ bearerFormat : SecurityToken
0 commit comments