aphrender

package
v0.0.0-...-9ff59ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONAPI

func JSONAPI(w http.ResponseWriter, status int, data *jsonapi.Document) error

func Resource

func Resource(data interface{}, srv jsonapi.ServerInformation, w http.ResponseWriter)

Resource generates jsonapi response for resource

func ResourceCollection

func ResourceCollection(data interface{}, srv jsonapi.ServerInformation, w http.ResponseWriter, props *pagination.Props)

ResourceCollection generates jsonapi response for resource collection

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL