0.5.2 • Published 10 years ago

theseus v0.5.2

Weekly downloads
221
License
Apache-2
Repository
-
Last release
10 years ago

Theseus Build Status

A JavaScript client library for argo Hypermedia APIs.

Under development.

See NOTES file for underlying ideas.

Usage

Sample usage:

import {Client} from 'theseus';
import {Http} from 'any-http-reqwest';
import {Promise} from 'any-promise-es6';

var client = new Client({http: new Http, promise: Promise});

var resource = client.resource('http://api.example.com'); // an API supporting argo
resource.get().then(resource => console.log(resource), err => console.error(err.stack));
resource.follow('search', {query: '42'}).getData().then(data => console.log(data));
resource.follow('items').follow('create').post({foo: 'bar'}).then(res => console.log(res));

See the theseus-examples repository for live code.

Installation

Theseus is available as an ES6 module.

Using jspm, you can install it by running:

jspm install theseus
0.5.2

10 years ago

0.5.1

10 years ago

0.5.0

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.3.0-beta.0

10 years ago

0.2.0

10 years ago

0.1.4

10 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago