Home

Awesome

Trout Client

Automatically derived XHR clients for Trout routing types.

Usage

bower install --save purescript-trout-client

Examples

Client/Server

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

Client Only

This example demonstrates how AJAX clients can be derived from a Trout routing type that models a foreign API.

make client-example

API Documentation

This library's API documentation is published on Pursuit.

Changelog

License

Mozilla Public License Version 2.0