All URIs are relative to http://api.madana.io/rest
Method | HTTP request | Description |
---|---|---|
addData | POST /requests/{uuid}/data | Is used to upload and park the data till the AnalysisRequest gets processed. |
cancelProcessing | POST /requests/{uuid}/cancel | Endpoint is called from the Analysis Processing entity to submit the result. |
createNewRequest | POST /requests | Endpoint used to create a new Analysis Request. |
getActions | GET /requests/actions | |
getAgent | GET /requests/{uuid}/agent | Is called from the APE to request all parked datasets. |
getAllRequests | GET /requests | Returns UUIDs of existing analyses. |
getData | GET /requests/{uuid}/data | Is called from the APE to request all parked datasets. |
getRequest | GET /requests/{uuid} | Returns the details for certain Request. |
getResult | GET /requests/{uuid}/result | Can be called from creator to request the AnalysisResult. |
getStatus | GET /requests/stats | |
giveConsent | POST /requests/{uuid}/consent | Used to give consent for request. |
initRequestParameters | POST /requests/{uuid} | Endpoint used initialized addition datacollection parameters for requester. |
setAgent | POST /requests/{uuid}/agent | Is called from the APE to request all parked datasets. |
setResult | POST /requests/{uuid}/result | Endpoint is called from the Analysis Processing entity to submit the result. |
File addData(uuid, opts)
Is used to upload and park the data till the AnalysisRequest gets processed.
Is used to upload and park the data till the AnalysisRequest gets processed
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.RequestServiceApi();
let uuid = "uuid_example"; // String |
let opts = {
'authorization': "authorization_example", // String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
'body': new MadanaApiclient.JsonSignedData() // JsonSignedData |
};
apiInstance.addData(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 | ||
authorization | String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c | [optional] |
body | JsonSignedData | [optional] |
File
No authorization required
- Content-Type: application/json
- Accept: application/json
File cancelProcessing(uuid, opts)
Endpoint is called from the Analysis Processing entity to submit the result.
Endpoint is called from the Analysis Processing entity to submit the result
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.RequestServiceApi();
let uuid = "uuid_example"; // String |
let opts = {
'authorization': "authorization_example", // String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
'body': new MadanaApiclient.JsonSignedData() // JsonSignedData |
};
apiInstance.cancelProcessing(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 | ||
authorization | String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c | [optional] |
body | JsonSignedData | [optional] |
File
No authorization required
- Content-Type: application/json, application/xml
- Accept: application/json
String createNewRequest(opts)
Endpoint used to create a new Analysis Request.
Endpoint used to create a new Analysis Request
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.RequestServiceApi();
let opts = {
'authorization': "authorization_example", // String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
'body': new MadanaApiclient.JsonSignedData() // JsonSignedData |
};
apiInstance.createNewRequest(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] |
body | JsonSignedData | [optional] |
String
No authorization required
- Content-Type: application/json, application/xml
- Accept: application/json
File getActions(opts)
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.RequestServiceApi();
let opts = {
'limit': "'30'", // String |
'offset': "'0'" // String |
};
apiInstance.getActions(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 getAgent(uuid, opts)
Is called from the APE to request all parked datasets.
Is called from the APE to request all parked datasets. Returns the transmitted data for certain Request. When requesting the data, the status of the request is automatically set to processing.
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.RequestServiceApi();
let uuid = "uuid_example"; // String |
let opts = {
'authorization': "authorization_example" // String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
};
apiInstance.getAgent(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 | ||
authorization | String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c | [optional] |
File
No authorization required
- Content-Type: Not defined
- Accept: application/json
File getAllRequests(opts)
Returns UUIDs of existing analyses.
Returns UUIDs of existing analyses.
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.RequestServiceApi();
let opts = {
'authorization': "authorization_example", // String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
'created': "'false'", // String | - if Queryparam \"created=true\" only the UUIDs of own Requests are shown
'history': "'false'", // String | - if queryparam \"history\" is set to true, endpoint returns all user actions. False per default.
'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
'_new': "'true'", // String | - if Queryparam \"new=true\" only the UUIDs of new Requests ( Requests the user has not participated in and still allow participation) are shown
'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
'preview': "'false'", // String |
'ready': "'false'" // String |
};
apiInstance.getAllRequests(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 'false'] |
history | String | - if queryparam "history" is set to true, endpoint returns all user actions. False per default. | [optional] [default to 'false'] |
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'] |
_new | String | - if Queryparam "new=true" only the UUIDs of new Requests ( Requests the user has not participated in and still allow participation) are shown | [optional] [default to 'true'] |
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'] |
preview | String | [optional] [default to 'false'] | |
ready | String | [optional] [default to 'false'] |
File
No authorization required
- Content-Type: Not defined
- Accept: application/json
JsonSignedData getData(uuid, opts)
Is called from the APE to request all parked datasets.
Is called from the APE to request all parked datasets. Returns the transmitted data for certain Request. When requesting the data, the status of the request is automatically set to processing.
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.RequestServiceApi();
let uuid = "uuid_example"; // String |
let opts = {
'authorization': "authorization_example" // String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
};
apiInstance.getData(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 | ||
authorization | String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
File getRequest(uuid, opts)
Returns the details for certain Request.
Returns the details for certain Request. When requesting an analysis a view of the analysis is stored in the database
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.RequestServiceApi();
let uuid = "uuid_example"; // String |
let opts = {
'authorization': "authorization_example" // String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
};
apiInstance.getRequest(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 | ||
authorization | String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c | [optional] |
File
No authorization required
- Content-Type: Not defined
- Accept: application/json
File getResult(uuid, opts)
Can be called from creator to request the AnalysisResult.
Can be called from creator to request the AnalysisResult.
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.RequestServiceApi();
let uuid = "uuid_example"; // String |
let opts = {
'authorization': "authorization_example" // String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
};
apiInstance.getResult(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 | ||
authorization | String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c | [optional] |
File
No authorization required
- Content-Type: Not defined
- Accept: application/json
File getStatus()
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.RequestServiceApi();
apiInstance.getStatus((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
This endpoint does not need any parameter.
File
No authorization required
- Content-Type: Not defined
- Accept: application/json
File giveConsent(uuid, opts)
Used to give consent for request.
Used to give consent for request. If the Endpoint is called from the creator of the Analysis, the status of the request is set to completed. If called by another is interpreted as giving consent to participate.
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.RequestServiceApi();
let uuid = "uuid_example"; // String |
let opts = {
'authorization': "authorization_example" // String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
};
apiInstance.giveConsent(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 | ||
authorization | String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c | [optional] |
File
No authorization required
- Content-Type: Not defined
- Accept: application/json
String initRequestParameters(uuid, opts)
Endpoint used initialized addition datacollection parameters for requester.
Endpoint used initialized addition datacollection parameters for requester
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.RequestServiceApi();
let uuid = "uuid_example"; // String |
let opts = {
'authorization': "authorization_example", // String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
'body': "body_example" // String |
};
apiInstance.initRequestParameters(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 | ||
authorization | String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c | [optional] |
body | String | [optional] |
String
No authorization required
- Content-Type: application/json
- Accept: application/json
File setAgent(uuid, opts)
Is called from the APE to request all parked datasets.
Is called from the APE to request all parked datasets. Returns the transmitted data for certain Request. When requesting the data, the status of the request is automatically set to processing.
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.RequestServiceApi();
let uuid = "uuid_example"; // String |
let opts = {
'authorization': "authorization_example" // String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
};
apiInstance.setAgent(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 | ||
authorization | String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c | [optional] |
File
No authorization required
- Content-Type: Not defined
- Accept: application/json
File setResult(uuid, opts)
Endpoint is called from the Analysis Processing entity to submit the result.
Endpoint is called from the Analysis Processing entity to submit the result
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.RequestServiceApi();
let uuid = "uuid_example"; // String |
let opts = {
'authorization': "authorization_example", // String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
'body': new MadanaApiclient.JsonSignedData() // JsonSignedData |
};
apiInstance.setResult(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 | ||
authorization | String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c | [optional] |
body | JsonSignedData | [optional] |
File
No authorization required
- Content-Type: application/json, application/xml
- Accept: application/json