Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ubogdan/http-swagger-example


https://github.com/ubogdan/http-swagger-example

Last synced: 1 day ago
JSON representation

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.yaml

go 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