Automatically derived XHR clients for Trout routing types.
bower install --save purescript-trout-client
This example shows the integration of client and server based on a common Trout routing type for an API. AJAX clients are generated by this package for all endpoints, and the client-side application can safely request resources without having to duplicate routing information and JSON encoding and decoding instances.
make client-server-example
This example demonstrates how AJAX clients can be derived from a Trout routing type that models a foreign API.
make client-example
This library's API documentation is published on Pursuit.
- 0.13.0
- Typed Argonaut and Affjax errors
- Base URI support
- 0.12.1
- Updates for new version of Argonaut
- 0.12.0
- Added support for
ReqBody
andHeader
combinators. - Various dependency upgrades
- Added support for
- 0.11.0
- Updates for PureScript 0.13
- Various dependency upgrades
- Conversion to Spago as primary package manager and build tool
- 0.10.0
- Added instances for
QueryParam
andQueryParams
- Added instances for
- 0.8.0
- Upgraded to Trout 0.10.0, and all clients are now derived as records, based
on the named routing types. Specific methods of a resource are accesible
under the corresponding uppercase field in the resource client record, e.g.
site.admin.logs."GET"
.
- Upgraded to Trout 0.10.0, and all clients are now derived as records, based
on the named routing types. Specific methods of a resource are accesible
under the corresponding uppercase field in the resource client record, e.g.