256dpi / jsonapi

A fundamental and extendable JSON API library for Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jsonapi

Test GoDoc Release

A fundamental and extendable JSON API library for Go.

Package jsonapi provides structures and functions to implement JSON API compatible APIs. The library can be used with any framework and is built on top of the standard Go http library.

Extensions

Custom Actions

The package supports the non-standard but widely adopted "custom actions" extension to support the following patterns:

GET /posts/highlighted
DELETE /posts/cache
POST /posts/1/publish
DELETE /posts/1/history

Cursor Pagination

The package supports the non-standard but documented "cursor pagination" profile.

Examples

The testing server implements a basic API server using the standard HTTP package.

Installation

Get the package using the go tool:

$ go get -u github.com/256dpi/jsonapi/v2

License

The MIT License (MIT)

Copyright (c) 2016 Joël Gähwiler

About

A fundamental and extendable JSON API library for Go.

License:MIT License


Languages

Language:Go 99.9%Language:Makefile 0.1%