All URIs are relative to https://localhost/api
Method | HTTP request | Description |
---|---|---|
getAssociationObject | GET /evidence/graph/{id} | Returns evidence graph object for a given association |
getAssociationObject_0 | GET /evidence/graph/{id}/image | Returns evidence graph as a png |
List<Graph> getAssociationObject(id)
Returns evidence graph object for a given association
Note that every association is assumed to have a unique ID
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvidencegraphApi;
EvidencegraphApi apiInstance = new EvidencegraphApi();
String id = "id_example"; // String | association id, e.g. cfef92b7-bfa3-44c2-a537-579078d2de37
try {
List<Graph> result = apiInstance.getAssociationObject(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EvidencegraphApi#getAssociationObject");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | association id, e.g. cfef92b7-bfa3-44c2-a537-579078d2de37 |
No authorization required
- Content-Type: application/json
- Accept: application/json
getAssociationObject_0(id)
Returns evidence graph as a png
TODO - requires matplotlib which is hard to install
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.EvidencegraphApi;
EvidencegraphApi apiInstance = new EvidencegraphApi();
String id = "id_example"; // String | association id, e.g. cfef92b7-bfa3-44c2-a537-579078d2de37
try {
apiInstance.getAssociationObject_0(id);
} catch (ApiException e) {
System.err.println("Exception when calling EvidencegraphApi#getAssociationObject_0");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | association id, e.g. cfef92b7-bfa3-44c2-a537-579078d2de37 |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json