Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger refactor to isolate v1 & v2 APIs #1016

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions disperser/cmd/dataapi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"github.com/Layr-Labs/eigenda/disperser/common/blobstore"
blobstorev2 "github.com/Layr-Labs/eigenda/disperser/common/v2/blobstore"
"github.com/Layr-Labs/eigenda/disperser/dataapi"

"github.com/Layr-Labs/eigenda/disperser/dataapi/prometheus"
"github.com/Layr-Labs/eigenda/disperser/dataapi/subgraph"
"github.com/Layr-Labs/eigensdk-go/logging"
Expand All @@ -33,10 +34,6 @@ var (
gitDate string
)

// @title EigenDA Data Access API
// @description This is the EigenDA Data Access API server.
// @version 1
// @Schemes https http
func main() {
app := cli.NewApp()
app.Flags = flags.Flags
Expand Down
17 changes: 12 additions & 5 deletions disperser/dataapi/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
build:
build:
cd .. && go build -o ./bin/dataapi ./cmd/dataapi

test:
go test -v .

generate-swagger:
@echo " > Generating swagger..."
swag init -g ../cmd/dataapi/main.go --parseDependency
swag fmt
generate-swagger-v1:
@echo " > Generating v1 swagger..."
swag init -g swagger.go --parseDependency --parseInternal --output docs/v1 --instanceName V1 --packageName v1 --dir ./v1 --parseDepth 1
swag fmt --dir ./v1

generate-swagger-v2:
@echo " > Generating v2 swagger..."
swag init -g swagger.go --parseDependency --parseInternal --output docs/v2 --instanceName V2 --packageName v2 --dir ./v2 --parseDepth 1
swag fmt --dir ./v2

generate-swagger: generate-swagger-v1 generate-swagger-v2
Loading
Loading