Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skamenetskiy/jsonapi
A tiny library for creating powerful JSON apis
https://github.com/skamenetskiy/jsonapi
Last synced: 13 days ago
JSON representation
A tiny library for creating powerful JSON apis
- Host: GitHub
- URL: https://github.com/skamenetskiy/jsonapi
- Owner: skamenetskiy
- License: mit
- Created: 2018-06-30T13:22:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-07T11:37:19.000Z (over 6 years ago)
- Last Synced: 2024-11-08T08:50:40.940Z (2 months ago)
- Language: Go
- Size: 2.39 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: License
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/skamenetskiy/jsonapi.svg?branch=master)](https://travis-ci.org/skamenetskiy/jsonapi)
[![codecov](https://codecov.io/gh/skamenetskiy/jsonapi/branch/master/graph/badge.svg)](https://codecov.io/gh/skamenetskiy/jsonapi)
[![Go Report Card](https://goreportcard.com/badge/github.com/skamenetskiy/jsonapi)](https://goreportcard.com/report/github.com/skamenetskiy/jsonapi)
[![godoc](https://godoc.org/github.com/skamenetskiy/jsonapi?status.svg)](http://godoc.org/github.com/skamenetskiy/jsonapi)# jsonapi
A small library, built on top of fasthttp, fasthttprouter and easyjson.# Quick start
```go
func main() {
err := jsonapi.
NewServer().
Get("/" func(ctx *Ctx) {
ctx.WriteJSON()
}).
Listen()
if err != nil {
log.Fatal(err)
}
}
```# Dependencies
jsonapi is not a standalone library, it has some dependencies.
- [fasthttp](https://github.com/valyala/fasthttp)
- [fasthttprouter](https://github.com/buaazp/fasthttprouter)
- [easyjson](https://github.com/mailru/easyjson)# Install
```
go get -u github.com/skamenetskiy/jsonapi
```