Skip to content

Commit

Permalink
feat: generate swagger api (dragonflyoss#557)
Browse files Browse the repository at this point in the history
* feat: generate swagger api

Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Aug 17, 2021
1 parent 4ca37e7 commit 5478d8e
Show file tree
Hide file tree
Showing 17 changed files with 5,710 additions and 125 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ generate:
@go generate ${PKG_LIST}
.PHONY: generate

swag:
@swag init --parseDependency --parseInternal --parseDepth 10 -g cmd/manager/main.go -o api/manager

# Generate changelog
changelog:
@git-chglog -o CHANGELOG.md
Expand Down Expand Up @@ -306,6 +309,7 @@ help:
@echo "make kind-load-scheduler kind load scheduler docker image"
@echo "make kind-load-dfdaemon kind load dfdaemon docker image"
@echo "make kind-load-manager kind load manager docker image"
@echo "make swag generate swagger api docs"
@echo "make changelog generate CHANGELOG.md"
@echo "make generate run go generate"
@echo "make clean clean"
Loading

0 comments on commit 5478d8e

Please sign in to comment.