noahzgordon/elm-jsonapi/1.0.1

NOTE: this package is not compatible with Elm 0.19.1

JsonApi

A library for processing and working with JSON API payloads.

Generic Data Types

type alias Document =
Document

Data type representing the entire JsonApi document.

type alias Resource =
Resource

Data type representing a single JsonApi resource.

type alias Meta =
Meta

Data type representing a JsonApi meta object. Alias for Json.Encode.Value. See: jsonapi.org/format/#document-meta

type alias ErrorObject =
{ id : Maybe String
, links : Maybe ErrorLinks
, status : Maybe String
, code : Maybe String
, title : Maybe String
, detail : Maybe String
, source : Maybe Source
, meta : Meta
}

Data type describing the types of problems that can be encountered when processing a JSON API payload.