1.0.16 • Published 5 years ago

rtc-client v1.0.16

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

rtc-client Build Status Coverage Status

Nodejs client for the RTC(Rational Team Concert) Reportable REST API.

Install

$ npm install --save rtc-client

Usage

Init RTC Client

const RTCClient = require('rtc-client');

const rtc = new RTCClient({
    server: 'localhost',
    username: 'username',
    password: 'password'
});
await rtc.login();

Get workitems using filters

const workItens = await rtc.getWorkItems({
    filters: {
        'type/id': 'task',
        'id': 123
    }
})

Get workitems specifying fields

const workItens = rtc.getWorkItems({
    fields: ['id', 'summary'],
    filters: {
        'type/id': 'task',
        'id': 123
    }
})

Get Contributors using filters

const contributors = await rtc.getContributors({
    filters: {
        'itemId': '123'
    }
})

Constructor options

server: RTC server address. Default value is 'localhost'.

username: user name for login.

password: password for login.

protocol: default value is 'https'.

acceptUntrustedCertificates: accept auto-assigned certificates: INSECURE. Default value is false.

explicitArray: on xml2json conversion, always put child nodes in an array if true; otherwise an array is created only if there is more than one. Default is true.

License

MIT © Danilo Sampaio

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago