Add support for Gorilla generation by jamietanna · Pull Request #585 · oapi-codegen/oapi-codegen

@jamietanna

As part of oapi-codegen#465, it'd be handy to have gorilla/mux, a commonly used HTTP
server as a generated server.

This is very similar to Chi, as it is also `net/http` compliant, and
allows us to mostly copy-paste the code, with very minor tweaks for
Gorilla-specific routing needs.

@jamietanna

As part of oapi-codegen#465, we should produce an example version of the Petstore
API using Gorilla, to validate that this works, as well as showing
sample usage to consumers.

adrianpk pushed a commit to foorester/oapi-codegen that referenced this pull request

Jan 16, 2024
* Add support for Gorilla generation

As part of oapi-codegen#465, it'd be handy to have gorilla/mux, a commonly used HTTP
server as a generated server.

This is very similar to Chi, as it is also `net/http` compliant, and
allows us to mostly copy-paste the code, with very minor tweaks for
Gorilla-specific routing needs.

* Add example project for Gorilla

As part of oapi-codegen#465, we should produce an example version of the Petstore
API using Gorilla, to validate that this works, as well as showing
sample usage to consumers.

adrianpk added a commit to foorester/oapi-codegen that referenced this pull request

May 31, 2024
* Add support for Gorilla generation

As part of oapi-codegen#465, it'd be handy to have gorilla/mux, a commonly used HTTP
server as a generated server.

This is very similar to Chi, as it is also `net/http` compliant, and
allows us to mostly copy-paste the code, with very minor tweaks for
Gorilla-specific routing needs.

* Add example project for Gorilla

As part of oapi-codegen#465, we should produce an example version of the Petstore
API using Gorilla, to validate that this works, as well as showing
sample usage to consumers.