toddmohney / json-api

Haskell Implementation of the JSON-API specification
http://hackage.haskell.org/package/json-api
MIT License
35 stars 14 forks source link

Support alternative Links object #14

Open toddmohney opened 8 years ago

toddmohney commented 8 years ago

Links can be specified in one of two formats

{ self: "http://somewhere.com" }

or

{ self: 
  {
    href: "http://somewhere.com",
    meta: { 
      count: 12
    }
  }
}

Add the object version to the LInks implemenation

http://jsonapi.org/format/#document-links