-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*: Add go-swagger as dependency, generate spec from server files
This change adds a dependency on `go-swagger/go-swagger`, and uses it as part of `make generate` to regenerate the swagger spec in `docs/generated/swagger/spec.json`, whenever one of the APIv2 files in `pkg/server/` are changed. The spec, once generated, can be served as docs using the command: bin/swagger serve -p 8080 ./docs/generated/swagger/spec.json Release note (build change): Adds go-swagger dependency, updates Makefile to call it to rebuild spec in docs/generated/swagger/ which will eventually be used for API docs.
- Loading branch information
Showing
13 changed files
with
2,018 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,6 +128,7 @@ define VALID_VARS | |
STYLINT | ||
SUBTESTS | ||
SUFFIX | ||
SWAGGER_TARGETS | ||
TAGS | ||
TAR | ||
TARGET | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This folder contains spec files generated by go-swagger. |
Oops, something went wrong.