Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ubogdan/http-swagger-example
https://github.com/ubogdan/http-swagger-example
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/ubogdan/http-swagger-example
- Owner: ubogdan
- Created: 2022-02-04T18:58:37.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-01-04T16:14:22.000Z (about 1 year ago)
- Last Synced: 2024-11-18T06:55:14.473Z (2 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# http-swagger (1.2.0)
with swag 1.7.8
----------
```shell
go install github.com/swaggo/swag/cmd/[email protected]
swag init
2022/02/04 XX:XX:XX Generate swagger docs....
2022/02/04 XX:XX:XX Generate general API Info, search dir:./
2022/02/04 XX:XX:XX Generating api.Response
2022/02/04 XX:XX:XX create docs.go at docs/docs.go
2022/02/04 XX:XX:XX create swagger.json at docs/swagger.json
2022/02/04 XX:XX:XX create swagger.yaml at docs/swagger.yamlgo build
```with swag 1.7.9
----------
```shell
go install github.com/swaggo/swag/cmd/[email protected]
swag init
2022/02/04 XX:XX:XX Generate swagger docs....
2022/02/04 XX:XX:XX Generate general API Info, search dir:./
2022/02/04 XX:XX:XX Generating api.Response
2022/02/04 XX:XX:XX create docs.go at docs/docs.go
2022/02/04 XX:XX:XX create swagger.json at docs/swagger.json
2022/02/04 XX:XX:XX create swagger.yaml at docs/swagger.yaml
go build
# github.com/ubogdan/http-swagger-example/docs
docs/docs.go:61:28: undefined: "github.com/swaggo/swag".Spec
```# http-swagger (1.2.1)
see [http-swagger-upgrade](https://github.com/ubogdan/http-swagger-example/tree/http-swagger-upgrade) branch