This is a partner service for Cabsolutely API2.0
1.7K
Partner service for Cabsolutely API 2.0 - created with Odin
make start
This starts your application on port 9000.
To use this service, you will need Befrost. Here is an example:
var Befrost = require('befrost');
var config = {
serviceName: 'partner-service',
hostPortList: ['127.0.0.1:21300'],
timeout: 5000,
secretKey: 'secret_key',
};
var client = Befrost(config, onConnected);
function onConnected(err, service) {
if (err) {
// Handle error
return;
}
var serviceType = {
name: 'TestServiceType',
iconUrl: 'TestUrl',
description: 'Test service type'
};
service.postServiceType({
serviceType: serviceType
}, function onResult(error, res) {
if (error) {
// Handle error
return;
}
console.log(res);
});
}
All response has an "ok" boolean property, which shows if the request has succeeded, and a "body" property, which contains the actual data.
npm test This will run the tests.npm run view-cover This will show code coverage in a browserContent type
Image
Digest
Size
281.6 MB
Last updated
almost 10 years ago
docker pull cabsolutely/api2-partnerservice