mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 13:29:05 +01:00
Update README.md
This commit is contained in:
parent
c4072ff4c7
commit
126630e01f
@ -115,7 +115,7 @@ This project integrates [swagger ui](https://swagger.io/tools/swagger-ui/) to do
|
|||||||
The swagger doc files can be found in `./api/`.
|
The swagger doc files can be found in `./api/`.
|
||||||
You can generate the configuration of swagger-ui by running `go run github.com/swaggo/swag/cmd/swag init -d ./internal/api,./pkg/schema -g rest.go -o ./api `.
|
You can generate the configuration of swagger-ui by running `go run github.com/swaggo/swag/cmd/swag init -d ./internal/api,./pkg/schema -g rest.go -o ./api `.
|
||||||
You need to move the generated `./api/doc.go` to `./internal/api/doc.go`.
|
You need to move the generated `./api/doc.go` to `./internal/api/doc.go`.
|
||||||
If you start cc-backend with flag `--dev` the Swagger UI is available at http://localhost:8080/swagger .
|
If you start cc-backend with flag `--dev` the Swagger UI is available at http://localhost:8080/swagger/ .
|
||||||
|
|
||||||
|
|
||||||
## Project Structure
|
## Project Structure
|
||||||
|
Loading…
Reference in New Issue
Block a user