OpenAPE is designed to be a server extension of the OpenAPI
specification, reading in a Swagger
file and a config and OpenAPE will do all the code monkey
stuff for you: building the routes, adding the models to a database, validation etc.
Much of web development consists of creating and maintaining an API that is marginally different from the last one? Swagger
and OpenAPI
has made this much easier with code generation tools and frameworks such as Loopback
. Almost all models created require the basic HTTP verbs and supported actions (PUT
, DELETE
etc) but most existing tools only generate method stubs still requiring addition code from developers this aims to solve that.
PRs are welcome, this is a super early version and is far from perfect.
If you are a beginner, check out the labelled open issues.
- Postgres (remote or local)
- Go
- A config file (example can be found in the
config
folder
go get github.com/encima/openape
-
package main import ( "github.com/encima/openape" ) func main() { openape.NewServer("PATH/TO/CONFIG") }