This directory contains an example server using our code generator which implements
the OpenAPI petstore-expanded
example.
This is the structure:
api/: Contains the OpenAPI 3.0 specification
api/petstore/: The generated code for our pet store handlers
internal/: Pet store handler implementation and unit tests
cmd/: Runnable server implementing the OpenAPI 3 spec.
To generate the handler glue, run:
go run github.com/discord-gophers/goapi-gen --package petstore examples/petstore-expanded/petstore-expanded.yaml > examples/petstore-expanded/petstore.gen.go