forked from deepmap/oapi-codegen
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Gorilla generation (deepmap#585)
* Add support for Gorilla generation As part of deepmap#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 deepmap#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.
- Loading branch information
Jamie Tanna
committed
May 26, 2022
1 parent
415a22f
commit fcdb08f
Showing
17 changed files
with
1,157 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package: api | ||
generate: | ||
gorilla-server: true | ||
models: true | ||
embedded-spec: true | ||
output: petstore.gen.go |
Oops, something went wrong.