4.0.3 • Published 5 years ago

simple-vertec-api v4.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Simple Vertec Api Build Status

npm version Test Coverage Code Climate Dependency Status

Simple Vertec Api is an simple wrapper around www.vertec.com XML webservice for node.js. It features solid CRUD support for dealing with Vertec's data.

Documentation

Delimination and Responsibility

This XML wrapper will only give you a simpler way of making requests via Vertec's own XML interface. There won't be any validations done for data input (you have to do it yourself or rely on Vertec's validation as it is their responsibility on server side).

Version 3 offers additional query options for further transforming response data, included caching support, parallel request mode and many more. Take a look at the documentation.

Version 4 supports Vertec's new token based authorization.

Installation

Run this command:

$ npm install simple-vertec-api --save

Example for a simple query request

var SimpleVertecApi = require('simple-vertec-api').SimpleVertecApi;
var SimpleVertecQuery = require('simple-vertec-api').SimpleVertecQuery;

var api = new SimpleVertecApi('http://localhost', 'my-username', 'my-password', true);
SimpleVertecQuery.setApi(api);

new SimpleVertecQuery()
    .whereOcl('Projektbearbeiter')
    .whereSql('aktiv = 1')
    .orderBy('name')
    .addFields('name', 'kuerzel')
    .get()
    .then(function(response) {
        // do something with the result
        console.log(response);
    });

Example for a raw api request

var SimpleVertecApi = require('simple-vertec-api').SimpleVertecApi;
var api = new SimpleVertecApi('http://localhost', 'my-username', 'my-password', true);

// searches for some records starting from day X
var select = {
	ocl: 'Leistung',
	sqlwhere: "(text like '%?%') and (CreationDateTime >= {ts '? 00:00:00'})",
	sqlorder: 'datum'
};
var params = [
    'search text',
    '2015-08-22'
];
var fields = [
    'minutenInt',
    'minutenExt',
    'datum',
    'text'
];
api.select(select, params, fields).then(function(response) {
    // do something with the result
    console.log(response);
});

Versioning

From 2.0.0 and up Simple Vertec Api follows SEMVER.

Resources

Contributing

  1. Fork it!
  2. Create your feature branch (git checkout -b feature/my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin feature/my-new-feature)
  5. Create new Pull Request

Author

Dimitri König (@dimitrikoenig)

License

The Simple Vertec Api is open-sourced software licensed under the MIT license

4.0.3

5 years ago

4.0.2

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

4.0.0-beta4

6 years ago

4.0.0-beta3

7 years ago

4.0.0-beta2

7 years ago

4.0.0-beta1

7 years ago

3.0.0

8 years ago

3.0.0-rc.15

8 years ago

3.0.0-rc.14

8 years ago

3.0.0-rc.13

8 years ago

3.0.0-rc.12

8 years ago

3.0.0-rc.11

8 years ago

3.0.0-rc.10

8 years ago

3.0.0-rc.9

8 years ago

3.0.0-rc.8

8 years ago

3.0.0-rc.7

8 years ago

3.0.0-rc.6

8 years ago

3.0.0-rc.5

8 years ago

3.0.0-rc.4

8 years ago

3.0.0-rc.3

8 years ago

3.0.0-rc.2

8 years ago

3.0.0-rc.1

8 years ago

2.21.2

8 years ago

2.21.1

8 years ago

2.21.0

8 years ago

2.20.1

8 years ago

2.20.0

8 years ago

2.19.2

8 years ago

2.19.1

8 years ago

2.19.0

8 years ago

2.18.0

8 years ago

2.17.0

8 years ago

2.16.0

8 years ago

2.15.0

8 years ago

2.14.1

8 years ago

2.14.0

8 years ago

2.13.0

8 years ago

2.12.0

8 years ago

2.11.1

8 years ago

2.11.0

8 years ago

2.10.0

9 years ago

2.9.0

9 years ago

2.8.0

9 years ago

2.7.0

9 years ago

2.6.0

9 years ago

2.5.0

9 years ago

2.4.0

9 years ago

2.3.0

9 years ago

2.2.0

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.0

9 years ago

2.0.0-beta.1

9 years ago

1.5.0

9 years ago

1.4.1

9 years ago

1.4.0

9 years ago

1.3.0

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago

0.0.1

9 years ago