All notable changes to the servant-hateoas library will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to PVP versioning.
- Added class
HasTemplateLink
for fully templated links to endpoints - Added combinator
data Title (sym :: Symbol)
for human-readable titles of resources
- Class
HasRelationLink
now returns complete links instead of partially templated ones - Replaced all usages of
Link
withRelationLink
, allowing more flexibility when gathering information about the resource the link refers to - Extended the rendering of
HALResource
by propstype
(Content-Type) andtitle
- Added function
fromURI
for creatingRelationLink
from anURI
- Replaced fully templated links with partially templated links for layers whose endpoints take arguments
- Rendering prop
templated: true
hypermedia relations for HAL+JSON-Responses when the relationshref
is templated
- Added support for layers indicating usage of queries
- Fixed bug where instances for
BuildLayerLinks
only worked for layers whose endpoints do not take any arguments
- Added functionality to derive a HATEOAS Layer-Api and rewritten HATEOAS API from your API and their respective server-implementations.
- Removed argument
api
from classToResource
- Temporarily removed support for content-type
application/vnd.collection+json
- Removed
SomeToJSON
and replaced it withSomeF f ToJSON
fromconstrained-some
- Export
CollectionItem
- Improved documentation
- Support for Content-Type
application/collection+json
- Classes
EmbeddingResource res
&CollectingResource res
for resource-modification
- (breaking change) Renamed class
HasResource
toResource
, removed associated type and Content-Type param
- Improved documentation
- Released