All URIs are relative to http://api.madana.io/rest
Method | HTTP request | Description |
---|---|---|
deleteEnvironment | DELETE /environments/{uuid} | |
deleteEnvironmentSubscription | DELETE /environments/{uuid}/subscribe | |
getEnvironment | GET /environments/{uuid} | |
getEnvironments | GET /environments | Returns UUIDs of existing analyses. |
getPublishedEnvironments | GET /environments/published | |
getSubscribedEnvironments | GET /environments/subscriptions | |
publishEnvironment | POST /environments | |
subscribeEnvironment | POST /environments/{uuid}/subscribe | |
updateEnvironment | PUT /environments/{uuid} |
File deleteEnvironment(uuid)
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.EnvironmentServiceApi();
let uuid = "uuid_example"; // String |
apiInstance.deleteEnvironment(uuid, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
uuid | String |
File
No authorization required
- Content-Type: Not defined
- Accept: application/json
File deleteEnvironmentSubscription(uuid)
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.EnvironmentServiceApi();
let uuid = "uuid_example"; // String |
apiInstance.deleteEnvironmentSubscription(uuid, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
uuid | String |
File
No authorization required
- Content-Type: Not defined
- Accept: application/json
File getEnvironment(uuid)
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.EnvironmentServiceApi();
let uuid = "uuid_example"; // String |
apiInstance.getEnvironment(uuid, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
uuid | String |
File
No authorization required
- Content-Type: Not defined
- Accept: application/json
File getEnvironments(opts)
Returns UUIDs of existing analyses.
Returns UUIDs of existing analyses.
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.EnvironmentServiceApi();
let opts = {
'authorization': "authorization_example", // String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
'created': "'true'", // String | - if Queryparam \"created=true\" only the UUIDs of own Requests are shown
'limit': "'30'", // String | Used for offset pagination. Limit/Offset Paging would look like GET /request?limit=20&offset=100. This query would return the 20 rows starting with the 100th row
'name': "name_example", // String |
'offset': "'0'" // String | Used for offset pagination. Limit/Offset Paging would look like GET /request?limit=20&offset=100. This query would return the 20 rows starting with the 100th row
};
apiInstance.getEnvironments(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c | [optional] |
created | String | - if Queryparam "created=true" only the UUIDs of own Requests are shown | [optional] [default to 'true'] |
limit | String | Used for offset pagination. Limit/Offset Paging would look like GET /request?limit=20&offset=100. This query would return the 20 rows starting with the 100th row | [optional] [default to '30'] |
name | String | [optional] | |
offset | String | Used for offset pagination. Limit/Offset Paging would look like GET /request?limit=20&offset=100. This query would return the 20 rows starting with the 100th row | [optional] [default to '0'] |
File
No authorization required
- Content-Type: Not defined
- Accept: application/json
File getPublishedEnvironments(opts)
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.EnvironmentServiceApi();
let opts = {
'limit': "'30'", // String |
'name': "name_example", // String |
'offset': "'0'" // String |
};
apiInstance.getPublishedEnvironments(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
limit | String | [optional] [default to '30'] | |
name | String | [optional] | |
offset | String | [optional] [default to '0'] |
File
No authorization required
- Content-Type: Not defined
- Accept: application/json
File getSubscribedEnvironments(opts)
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.EnvironmentServiceApi();
let opts = {
'limit': "'30'", // String |
'offset': "'0'" // String |
};
apiInstance.getSubscribedEnvironments(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
limit | String | [optional] [default to '30'] | |
offset | String | [optional] [default to '0'] |
File
No authorization required
- Content-Type: Not defined
- Accept: application/json
File publishEnvironment(opts)
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.EnvironmentServiceApi();
let opts = {
'body': new MadanaApiclient.JsonEnvironmentPublishingRequest() // JsonEnvironmentPublishingRequest |
};
apiInstance.publishEnvironment(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
body | JsonEnvironmentPublishingRequest | [optional] |
File
No authorization required
- Content-Type: application/json
- Accept: application/json, application/xml
File subscribeEnvironment(uuid)
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.EnvironmentServiceApi();
let uuid = "uuid_example"; // String |
apiInstance.subscribeEnvironment(uuid, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
uuid | String |
File
No authorization required
- Content-Type: Not defined
- Accept: application/json
File updateEnvironment(uuid, opts)
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.EnvironmentServiceApi();
let uuid = "uuid_example"; // String |
let opts = {
'body': new MadanaApiclient.JsonEnvironment() // JsonEnvironment |
};
apiInstance.updateEnvironment(uuid, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
uuid | String | ||
body | JsonEnvironment | [optional] |
File
No authorization required
- Content-Type: application/json, application/xml
- Accept: application/json