Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matrixik/swag-perf
https://github.com/matrixik/swag-perf
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/matrixik/swag-perf
- Owner: matrixik
- Created: 2021-10-21T12:31:53.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-21T13:58:30.000Z (about 3 years ago)
- Last Synced: 2024-10-15T22:49:39.011Z (2 months ago)
- Language: Go
- Size: 3.16 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Swag perf problems
## Clone this repository
`git clone https://github.com/matrixik/swag-perf.git`
## Clone and fix swag
`git clone https://github.com/swaggo/swag.git && cd swag`
`git checkout v1.7.3`
`git apply ../swag-perf/swag_annotation_error.patch`
`go build -o swag_fix ./cmd/swag`
## Build swagger spec
`cd ../swag-perf`
Generate Swagger spec file:
With https://github.com/swaggo/swag
`time ../swag/swag_fix init -o swagger/docs --md swagger/markdown --parseDependency true`
With https://github.com/go-swagger/go-swagger
`time swagger generate spec -o ./swagger-ui/swagger.json --scan-models`
Start app:
`go run main.go`
Open swagger:
For swag output: http://localhost:8080/swagger/index.html
For go-swagger output: http://localhost:8080/swagger-ui/