rtc-client
v1.0.16
Published
Nodejs client for the RTC(Rational Team Concert) Reportable REST API.
Downloads
10
Maintainers
Readme
rtc-client
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