All URIs are relative to http://localhost/api
Method | HTTP request | Description |
---|---|---|
addWidgetConfig | POST /widget-config | Create a widget configuration |
deleteWidgetConfig | DELETE /widget-config/{id} | Delete a widget configuration |
getWidgetConfig | GET /widget-config/{id} | Get a single widget configuration |
getWidgetConfigList | GET /widget-config | Get the list of widget configurations |
updateWidgetConfig | PUT /widget-config/{id} | Updates a single widget configuration |
WidgetConfig addWidgetConfig(opts)
Create a widget configuration
import ibutsu from '@ibutsu/client';
let apiInstance = new ibutsu.WidgetConfigApi();
let opts = {
'widgetConfig': new ibutsu.WidgetConfig() // WidgetConfig | Widget configuration
};
apiInstance.addWidgetConfig(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
widgetConfig | WidgetConfig | Widget configuration | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
deleteWidgetConfig(id)
Delete a widget configuration
import ibutsu from '@ibutsu/client';
let apiInstance = new ibutsu.WidgetConfigApi();
let id = "id_example"; // String | ID of widget configuration to delete
apiInstance.deleteWidgetConfig(id).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | ID of widget configuration to delete |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
WidgetConfig getWidgetConfig(id)
Get a single widget configuration
import ibutsu from '@ibutsu/client';
let apiInstance = new ibutsu.WidgetConfigApi();
let id = "id_example"; // String | ID of widget config to return
apiInstance.getWidgetConfig(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | ID of widget config to return |
No authorization required
- Content-Type: Not defined
- Accept: application/json
WidgetConfigList getWidgetConfigList(opts)
Get the list of widget configurations
A list of widget configurations
import ibutsu from '@ibutsu/client';
let apiInstance = new ibutsu.WidgetConfigApi();
let opts = {
'filter': ["null"], // [String] | Fields to filter by
'page': 56, // Number | Set the page of items to return, defaults to 1
'pageSize': 56 // Number | Set the number of items per page, defaults to 25
};
apiInstance.getWidgetConfigList(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
filter | [String] | Fields to filter by | [optional] |
page | Number | Set the page of items to return, defaults to 1 | [optional] |
pageSize | Number | Set the number of items per page, defaults to 25 | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
WidgetConfig updateWidgetConfig(id, opts)
Updates a single widget configuration
import ibutsu from '@ibutsu/client';
let apiInstance = new ibutsu.WidgetConfigApi();
let id = "id_example"; // String | ID of widget configuration to update
let opts = {
'widgetConfig': new ibutsu.WidgetConfig() // WidgetConfig | Widget configuration
};
apiInstance.updateWidgetConfig(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | ID of widget configuration to update | |
widgetConfig | WidgetConfig | Widget configuration | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json