API
Pre-requisite
- Go Version 1.17.x
How to use
How to install package
go get -u github.com/swaggo/swag/cmd/swag
go get -u github.com/swaggo/gin-swagger
go get -u github.com/swaggo/files
go install ./coco
How to generate-api-docs
swag init --pd --parseDepth 1 -g ./coco/launch.go
How to generate-ts
npx swagger-typescript-api -p ./docs/swagger.json -o <ui destination> --axios
How to serve
go run ./coco