All URIs are relative to https://localhost/
Method | HTTP request | Description |
---|---|---|
createService | POST /api/Services | |
deleteService | DELETE /api/Services/{id} | |
getService | GET /api/Services/{id} | |
getServices | GET /api/Services | |
updateService | PUT /api/Services/{id} |
createService(opts)
var SlambySdk = require('slamby-sdk');
var apiInstance = new SlambySdk.ServiceApi();
var opts = {
'service': new SlambySdk.Service() // Service |
};
apiInstance.createService(opts).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
service | Service | [optional] |
null (empty response body)
No authorization required
- Content-Type: application/json, text/json, application/json-patch+json
- Accept: Not defined
deleteService(id)
var SlambySdk = require('slamby-sdk');
var apiInstance = new SlambySdk.ServiceApi();
var id = "id_example"; // String |
apiInstance.deleteService(id).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Service getService(id)
var SlambySdk = require('slamby-sdk');
var apiInstance = new SlambySdk.ServiceApi();
var id = "id_example"; // String |
apiInstance.getService(id).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Service] getServices()
var SlambySdk = require('slamby-sdk');
var apiInstance = new SlambySdk.ServiceApi();
apiInstance.getServices().then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Service updateService(id, opts)
var SlambySdk = require('slamby-sdk');
var apiInstance = new SlambySdk.ServiceApi();
var id = "id_example"; // String |
var opts = {
'service': new SlambySdk.Service() // Service |
};
apiInstance.updateService(id, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
service | Service | [optional] |
No authorization required
- Content-Type: application/json, text/json, application/json-patch+json
- Accept: Not defined