mm_power_sdk_python.AssertionsApi
All URIs are relative to https://api.molecularmatch.com/v4
Method | HTTP request | Description |
---|---|---|
get_assertion | GET /assertion/{id} | Get an Assertion |
search_assertions | POST /assertion/search | Search for assertions |
get_assertion
Assertion get_assertion(id)
Get an Assertion
Get an evidence backed assertion
Example
from __future__ import print_function
import time
import mm_power_sdk_python
from mm_power_sdk_python.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = mm_power_sdk_python.AssertionsApi(mm_power_sdk_python.ApiClient(configuration))
id = 'id_example' # str | ID of the Assertion to return
try:
# Get an Assertion
api_response = api_instance.get_assertion(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssertionsApi->get_assertion: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
id | str | ID of the Assertion to return |
Return type
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
search_assertions
SearchResponseAssertion search_assertions(body)
Search for assertions
Search for evidence backed assertions
Example
from __future__ import print_function
import time
import mm_power_sdk_python
from mm_power_sdk_python.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = mm_power_sdk_python.AssertionsApi(mm_power_sdk_python.ApiClient(configuration))
body = mm_power_sdk_python.SearchRequest() # SearchRequest | SearchRequest object to send to MolecularMatch for processing
try:
# Search for assertions
api_response = api_instance.search_assertions(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssertionsApi->search_assertions: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
body | SearchRequest | SearchRequest object to send to MolecularMatch for processing |
Return type
HTTP request headers
- Content-Type: application/json
- Accept: application/json