Skip to content

Commit

Permalink
Update swagger
Browse files Browse the repository at this point in the history
Fix batch feed group
  • Loading branch information
pschork committed Jan 28, 2025
1 parent 89b42a2 commit dd7b722
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 4 deletions.
35 changes: 34 additions & 1 deletion disperser/dataapi/docs/v2/V2_docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const docTemplateV2 = `{
"application/json"
],
"tags": [
"Blob"
"Batch"
],
"summary": "Fetch batch feed",
"parameters": [
Expand Down Expand Up @@ -663,6 +663,12 @@ const docTemplateV2 = `{
"items": {
"type": "integer"
}
},
"y": {
"type": "array",
"items": {
"type": "integer"
}
}
}
},
Expand All @@ -671,6 +677,9 @@ const docTemplateV2 = `{
"properties": {
"x": {
"$ref": "#/definitions/github_com_consensys_gnark-crypto_ecc_bn254_internal_fptower.E2"
},
"y": {
"$ref": "#/definitions/github_com_consensys_gnark-crypto_ecc_bn254_internal_fptower.E2"
}
}
},
Expand Down Expand Up @@ -703,6 +712,12 @@ const docTemplateV2 = `{
"items": {
"type": "integer"
}
},
"y": {
"type": "array",
"items": {
"type": "integer"
}
}
}
},
Expand Down Expand Up @@ -731,6 +746,12 @@ const docTemplateV2 = `{
"items": {
"type": "integer"
}
},
"y": {
"type": "array",
"items": {
"type": "integer"
}
}
}
},
Expand All @@ -739,6 +760,9 @@ const docTemplateV2 = `{
"properties": {
"x": {
"$ref": "#/definitions/github_com_consensys_gnark-crypto_ecc_bn254_internal_fptower.E2"
},
"y": {
"$ref": "#/definitions/github_com_consensys_gnark-crypto_ecc_bn254_internal_fptower.E2"
}
}
},
Expand All @@ -747,6 +771,9 @@ const docTemplateV2 = `{
"properties": {
"x": {
"$ref": "#/definitions/github_com_consensys_gnark-crypto_ecc_bn254_internal_fptower.E2"
},
"y": {
"$ref": "#/definitions/github_com_consensys_gnark-crypto_ecc_bn254_internal_fptower.E2"
}
}
},
Expand Down Expand Up @@ -949,6 +976,12 @@ const docTemplateV2 = `{
"items": {
"type": "integer"
}
},
"a1": {
"type": "array",
"items": {
"type": "integer"
}
}
}
},
Expand Down
35 changes: 34 additions & 1 deletion disperser/dataapi/docs/v2/V2_swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"application/json"
],
"tags": [
"Blob"
"Batch"
],
"summary": "Fetch batch feed",
"parameters": [
Expand Down Expand Up @@ -660,6 +660,12 @@
"items": {
"type": "integer"
}
},
"y": {
"type": "array",
"items": {
"type": "integer"
}
}
}
},
Expand All @@ -668,6 +674,9 @@
"properties": {
"x": {
"$ref": "#/definitions/github_com_consensys_gnark-crypto_ecc_bn254_internal_fptower.E2"
},
"y": {
"$ref": "#/definitions/github_com_consensys_gnark-crypto_ecc_bn254_internal_fptower.E2"
}
}
},
Expand Down Expand Up @@ -700,6 +709,12 @@
"items": {
"type": "integer"
}
},
"y": {
"type": "array",
"items": {
"type": "integer"
}
}
}
},
Expand Down Expand Up @@ -728,6 +743,12 @@
"items": {
"type": "integer"
}
},
"y": {
"type": "array",
"items": {
"type": "integer"
}
}
}
},
Expand All @@ -736,6 +757,9 @@
"properties": {
"x": {
"$ref": "#/definitions/github_com_consensys_gnark-crypto_ecc_bn254_internal_fptower.E2"
},
"y": {
"$ref": "#/definitions/github_com_consensys_gnark-crypto_ecc_bn254_internal_fptower.E2"
}
}
},
Expand All @@ -744,6 +768,9 @@
"properties": {
"x": {
"$ref": "#/definitions/github_com_consensys_gnark-crypto_ecc_bn254_internal_fptower.E2"
},
"y": {
"$ref": "#/definitions/github_com_consensys_gnark-crypto_ecc_bn254_internal_fptower.E2"
}
}
},
Expand Down Expand Up @@ -946,6 +973,12 @@
"items": {
"type": "integer"
}
},
"a1": {
"type": "array",
"items": {
"type": "integer"
}
}
}
},
Expand Down
24 changes: 23 additions & 1 deletion disperser/dataapi/docs/v2/V2_swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,17 @@ definitions:
items:
type: integer
type: array
"y":
items:
type: integer
type: array
type: object
core.G2Point:
properties:
x:
$ref: '#/definitions/github_com_consensys_gnark-crypto_ecc_bn254_internal_fptower.E2'
"y":
$ref: '#/definitions/github_com_consensys_gnark-crypto_ecc_bn254_internal_fptower.E2'
type: object
core.PaymentMetadata:
properties:
Expand All @@ -78,6 +84,10 @@ definitions:
items:
type: integer
type: array
"y":
items:
type: integer
type: array
type: object
encoding.BlobCommitments:
properties:
Expand All @@ -96,16 +106,24 @@ definitions:
items:
type: integer
type: array
"y":
items:
type: integer
type: array
type: object
encoding.G2Commitment:
properties:
x:
$ref: '#/definitions/github_com_consensys_gnark-crypto_ecc_bn254_internal_fptower.E2'
"y":
$ref: '#/definitions/github_com_consensys_gnark-crypto_ecc_bn254_internal_fptower.E2'
type: object
encoding.LengthProof:
properties:
x:
$ref: '#/definitions/github_com_consensys_gnark-crypto_ecc_bn254_internal_fptower.E2'
"y":
$ref: '#/definitions/github_com_consensys_gnark-crypto_ecc_bn254_internal_fptower.E2'
type: object
github_com_Layr-Labs_eigenda_core_v2.Attestation:
properties:
Expand Down Expand Up @@ -253,6 +271,10 @@ definitions:
items:
type: integer
type: array
a1:
items:
type: integer
type: array
type: object
semver.SemverMetrics:
properties:
Expand Down Expand Up @@ -578,7 +600,7 @@ paths:
$ref: '#/definitions/v2.ErrorResponse'
summary: Fetch batch feed
tags:
- Blob
- Batch
/blobs/{blob_key}:
get:
parameters:
Expand Down
2 changes: 1 addition & 1 deletion disperser/dataapi/v2/server_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ func (s *ServerV2) FetchBlobInclusionInfoHandler(c *gin.Context) {
// FetchBatchFeedHandler godoc
//
// @Summary Fetch batch feed
// @Tags Blob
// @Tags Batch
// @Produce json
// @Param end query string false "Fetch batches up to the end time (ISO 8601 format: 2006-01-02T15:04:05Z) [default: now]"
// @Param interval query int false "Fetch batches starting from an interval (in seconds) before the end time [default: 3600]"
Expand Down

0 comments on commit dd7b722

Please sign in to comment.