package
0.0.0-20220413235630-9dc73ad4b97e
Repository: https://github.com/unknowntpo/sandbox.git
Documentation: pkg.go.dev
# README
An experiment of using go-swagger and swagger UI docker container
-
Follow the documentation[1], and write the spec.
-
run following command:
swagger generate spec -o ./swagger.json
to generate swagger.json.
- Run swagger UI container to serve the spec.
$ docker-compose up -d
- Open up http://localhost:8080/swagger/ to read the documentation, the port and endpoint can be changed inside docker-compose.yml.
Ref: - 1