Categorygithub.com/ogibayashi/sample-app-golang
modulepackage
0.0.0-20240606233311-35b52b408210
Repository: https://github.com/ogibayashi/sample-app-golang.git
Documentation: pkg.go.dev

# README

Running swagger-ui

docker run -e SWAGGER_JSON=/spec/openapi3.yaml -v $(pwd):/spec -p 8091:8080 swaggerapi/swagger-ui

Handler code generation

APIを増やす場合は、 openapi3.yaml を定義した後

go generate ./...

を実行します. これにより server/server_gen.go が生成されるので、その後 StrictServerInterface を満たすように server/handler.go を実装します

# Packages

No description provided by the author
No description provided by the author
Package server provides primitives to interact with the openapi HTTP API.
No description provided by the author