interactive_sdk.openapi.QueryServiceApi¶
All URIs are relative to {INTERACTIVE_ENDPOINT}
Method |
HTTP request |
Description |
---|---|---|
POST /v1/graph/{graph_id}/query |
run queries on graph |
proc_call¶
str proc_call(graph_id, body=body)
run queries on graph
After the procedure is created, user can use this API to run the procedure. TODO: a full example cypher->plan->json. TODO: make sure typeinfo can be passed.
Example¶
import interactive_sdk.openapi
from interactive_sdk.openapi.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to {INTERACTIVE_ENDPOINT}
# See configuration.py for a list of all supported configuration parameters.
configuration = interactive_sdk.openapi.Configuration(
host = "{INTERACTIVE_ENDPOINT}"
)
# Enter a context with an instance of the API client
with interactive_sdk.openapi.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = interactive_sdk.openapi.QueryServiceApi(api_client)
graph_id = 'graph_id_example' # str |
body = 'body_example' # str | (optional)
try:
# run queries on graph
api_response = api_instance.proc_call(graph_id, body=body)
print("The response of QueryServiceApi->proc_call:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling QueryServiceApi->proc_call: %s\n" % e)
Parameters¶
Name |
Type |
Description |
Notes |
---|---|---|---|
graph_id |
str |
||
body |
str |
[optional] |
Return type¶
str
HTTP request headers¶
Content-Type: text/plain
Accept: application/json
HTTP response details¶
Status code |
Description |
Response headers |
---|---|---|
200 |
Successfully runned. Empty if failed? |
- |
500 |
Server internal error |
- |
[Back to top] [Back to API list] [Back to Model list] [Back to README]