1.3.0 • Published 4 years ago

@vinka/engine-client v1.3.0

Weekly downloads
37
License
MIT
Repository
github
Last release
4 years ago

HTTP Engine Client

Installation

npm install @vinka/engine-client

Example usage:

const EngineHttpClient = require('@vinka/engine-client');

const HOST = process.env.ES_URL || 'http://localhost:7878';
const USER = process.env.ES_USER || 'xxxx';
const PASS = process.env.ES_PASS || 'xxxx';

class EngineClient {
    constructor(host, user, pass) {
        this.http = new EngineHttpClient(host, user, pass, log);
    }

    async getRoute(id) {
        return this.http.get(`route/${id}`);
    }

    async addTrip(trip) {
        return this.http.post('trip', trip);
    }
}
1.3.0

4 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago