Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/encima/openape
Go get rid of your code monkey duties. Generate servers using only an OpenAPI spec
https://github.com/encima/openape
go golang openapi-spec openapi3 server
Last synced: 22 days ago
JSON representation
Go get rid of your code monkey duties. Generate servers using only an OpenAPI spec
- Host: GitHub
- URL: https://github.com/encima/openape
- Owner: encima
- License: gpl-3.0
- Created: 2018-07-13T12:20:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-12T08:21:31.000Z (over 5 years ago)
- Last Synced: 2025-01-18T09:58:46.580Z (26 days ago)
- Topics: go, golang, openapi-spec, openapi3, server
- Language: Go
- Homepage: https://godoc.org/github.com/encima/openape
- Size: 65.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenAPE
[![Build Status](https://travis-ci.com/encima/openape.svg?branch=master)](https://travis-ci.com/encima/openape)
[![Go Report Card](https://goreportcard.com/badge/github.com/encima/openape)](https://goreportcard.com/report/github.com/encima/openape)
[![GoDoc](https://godoc.org/github.com/encima/openape?status.svg)](https://godoc.org/github.com/encima/openape)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.
---
## Contributing
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](https://github.com/encima/openape/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).
---
## Requirements
* Postgres (remote or local)
* Go
* A config file (example can be found in the `config` folder## GET STARTED
1. `go get github.com/encima/openape`
2. ```
package mainimport (
"github.com/encima/openape"
)func main() {
openape.NewServer("PATH/TO/CONFIG")
}
```