Overview
The SampleHC API is a RESTful API that allows you to interact with workflows. It is used to start, stop, and manage workflows, as well as to retrieve workflow data.Client
Workflows created before the client was released may not have the client installed. Please refer to the latest template to see how the client is set up.
If any methods are different/missing from the SDK, you may need to update the SDK version in
requirements.txt
to the latest version.src/client_manager.py
that automatically configures the client with the correct backend URL and API key.
Here is a minimal example of how to use the client manager to initiate a client and call the API in a workflow.
Gotchas
Our API generally usescamelCase
for parameter names. However, for ease of use, the SDK also converts parameters to snake_case
when calling the API.
This means ** BOTH ** camelCase
and snake_case
are supported for parameter names when using the samplehc
library.
For example, the document metadata endpoint has a parameter called fileName
which is converted to file_name
in the SDK.