@dadi/api-wrapper
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@dadi/api-wrapper", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A high-level library for interacting with DADI API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,3 +7,3 @@ # DADI API wrapper | ||
[DADI API](https://github.com/dadi/api) is a high performance RESTful API layer designed in support of API-first development and the principle of COPE. | ||
[DADI API](https://github.com/dadi/api) is a high performance RESTful API layer designed in support of API-first development and the principle of COPE. | ||
@@ -25,3 +25,3 @@ This library provides a high-level abstraction of the REST architecture style, exposing a set of chainable methods that allow developers to compose complex read and write operations using a simplistic and natural syntax. | ||
var api = new DadiAPI({ | ||
uri: 'http://api.eb.dev.dadi.technology', | ||
uri: 'http://api.example.com', | ||
port: 80, | ||
@@ -352,3 +352,3 @@ credentials: { | ||
// Example | ||
api.withComposition(); | ||
api.withComposition(); | ||
api.withComposition(true); // same as above | ||
@@ -394,3 +394,3 @@ api.withComposition(false); | ||
var api = new DadiAPI({ | ||
uri: 'http://api.eb.dev.dadi.technology', | ||
uri: 'http://api.example.com', | ||
port: 80, | ||
@@ -408,3 +408,3 @@ credentials: { | ||
``` | ||
[@dadi/api-wrapper] Querying URI: http://api.eb.dev.dadi.technology:80/vjoin/testdb/articles?count=0 | ||
[@dadi/api-wrapper] Querying URI: http://api.example.com:80/vjoin/testdb/articles?count=0 | ||
``` |
25853