package
0.0.0-20230117114015-e1bdae72f636
Repository: https://github.com/sumup-go/lessons.git
Documentation: pkg.go.dev
# README
Lesson 11
- OpenAPI specification
- Code generation
OpenAPI specification
The OpenAPI Specification, previously known as the Swagger Specification, is a specification for machine-readable interface files for describing, producing, consuming, and visualizing RESTful web services
Code Generation
https://github.com/deepmap/oapi-codegen
go get github.com/deepmap/oapi-codegen/cmd/oapi-codegen
Tutorial
https://dev.to/ayzu/go-code-generation-from-openapi-spec-2eem