core.task_api_client
SupportedMethod
SupportedMethod(Enum):
Describes the types of HTTP request made to the Task API.
TaskApiClient
class TaskApiClient(
base_url: Optional[str] = None,
username: Optional[str] = None,
password: Optional[str] = None,
)
Provides a client to the Task API defined in the environment.
Methods
request(
method: SupportedMethod,
url: str,
data: Optional[dict] = None,
) -> Response
post(
endpoint: Optional[str] = None,
data: dict = dict(),
) -> Response
get(
endpoint: Optional[str] = None,
) -> Response