Skip to content

Commit

Permalink
add swagger script, update
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerLamTd committed Mar 19, 2024
1 parent 3415685 commit dd26e7f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/blobstorage/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const docTemplate = `{
"produces": [
"application/json"
],
"summary": "Get blob and KZG commitment",
"summary": "Get blob(s) and KZG commitment(s)",
"operationId": "get-blob",
"parameters": [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/blobstorage/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"get": {
"consumes": ["application/json"],
"produces": ["application/json"],
"summary": "Get blob and KZG commitment",
"summary": "Get blob(s) and KZG commitment(s)",
"operationId": "get-blob",
"parameters": [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/blobstorage/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ paths:
description: OK
schema:
$ref: "#/definitions/http.getBlobResponse"
summary: Get blob and KZG commitment
summary: Get blob(s) and KZG commitment(s)
swagger: "2.0"
3 changes: 3 additions & 0 deletions packages/blobstorage/scripts/swagger.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#/bin/sh

swag init -g server.go -d pkg/http --parseDependency

0 comments on commit dd26e7f

Please sign in to comment.