All URIs are relative to https://api.molecularmatch.com/v4
Method | HTTP request | Description |
---|---|---|
getAssertion | GET /assertion/{id} | Get an Assertion |
searchAssertions | POST /assertion/search | Search for assertions |
Assertion getAssertion(id)
Get an Assertion
Get an evidence backed assertion
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.AssertionsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
AssertionsApi apiInstance = new AssertionsApi();
String id = "id_example"; // String | ID of the Assertion to return
try {
Assertion result = apiInstance.getAssertion(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AssertionsApi#getAssertion");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | ID of the Assertion to return |
- Content-Type: Not defined
- Accept: application/json
SearchResponseAssertion searchAssertions(body)
Search for assertions
Search for evidence backed assertions
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.AssertionsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
AssertionsApi apiInstance = new AssertionsApi();
SearchRequest body = new SearchRequest(); // SearchRequest | SearchRequest object to send to MolecularMatch for processing
try {
SearchResponseAssertion result = apiInstance.searchAssertions(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AssertionsApi#searchAssertions");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | SearchRequest | SearchRequest object to send to MolecularMatch for processing |
- Content-Type: application/json
- Accept: application/json