Skip to content

Documentation: Workflow Manager

David edited this page May 21, 2023 · 1 revision

FastAPI

Version: 0.1.0

/api/v1/workflow/

GET

Summary:

Get Workflow List

Description:

Get all workflows endpoint.

Returns

List of workflow pydantic output models, might be empty
Responses
Code Description
200 Successful Response

POST

Summary:

Create Workflow

Description:

Create new workflow endpoint.

Parameters

payload Workflow pydantic base model

Returns

Workflow pydantic output model

Raises

HTTPException 404: Creation unsuccessful

Responses
Code Description
201 Successful Response
422 Validation Error

/api/v1/workflow/{workflow_id}

GET

Summary:

Get Workflow

Description:

Get workflow endpoint.

Parameters

workflow_id Id of the workflow object to be returned

Returns

Workflow pydantic output model

Raises

HTTPException 404: Not found

Parameters
Name Located in Description Required Schema
workflow_id path Yes integer
Responses
Code Description
200 Successful Response
422 Validation Error

DELETE

Summary:

Delete Workflow

Description:

Delete workflow endpoint.

Parameters

workflow_id Id of workflow to be deleted

Raises

HTTPException 404: Not found

Parameters
Name Located in Description Required Schema
workflow_id path Yes integer
Responses
Code Description
204 Successful Response
422 Validation Error

/api/v1/workflow/{workflow_id}/

PUT

Summary:

Update Workflow

Description:

Update existing workflow endpoint.

Parameters

workflow_id Id of the workflow to be updated payload Data to be updated, workflow pydantic base model

Returns

Workflow pydantic output model.

Raises

HTTPException 404: Not found

Parameters
Name Located in Description Required Schema
workflow_id path Yes integer
Responses
Code Description
200 Successful Response
422 Validation Error

/api/v1/workflow/health/readiness

GET

Summary:

Readiness

Description:

Readiness health endpoint.

Inspects sqlalchemy engine and check if workflow table exists.

Returns

Status docstring

Raises

HTTPException 500: Workflow table does not exist

Responses
Code Description
200 Successful Response
Clone this wiki locally