github.com/inconshreveable/olive
olive is a a tiny framework built on top of martini for rapid development of robust REST APIs. olive handles content type negotation, serialization, deserialization, unique request-id logging and panic recovery leaving you free to write just your application's business logic. Simple example: The above API will appropriately deserialize a POST body of XML, JSON, or x-www-form-urlencoded depending on the Content-Type header. Based on the client's Accept header, the result will be serialized in either XML or JSON. Appropriate failures are returned for invalid client requests. The logger assigns a unique id to each request for easy tracing purposes: A more advanced example explaining features in detail:
proxy.golang.org
v0.0.0-20221207212301-9542b1665553
almost 4 years ago
2
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/inconshreveable/olive
spec |
| License | Apache-2.0, MIT |
| Namespace | github.com/inconshreveable |
| First Release | over 7 years ago |
| Last Synced | about 2 months ago |