Skip to content

Latest commit

 

History

History
71 lines (44 loc) · 1.65 KB

restapi.md

File metadata and controls

71 lines (44 loc) · 1.65 KB

REST API Docs

Dagu server provides simple APIs to query and control workflows.

Endpoint : localhost:8080 (default)

Contents

Show Workflows GET dags/

URL : /api/user/

Method : GET

Header : Accept: application/json

Query Parameters :

  • group=[string] where group is the sub directory name that the workflow is in.

Success Response

Code : 200 OK Content : TBU

Show Workflow Detail GET dags/:name

URL : /dags/:workflow

URL Parameters :

  • name=[string] where name is the Name of the workflow.

Query Parameters :

  • group=[string] where group is the sub directory name that the workflow is in.

Method : GET

Header : Accept: application/json

Success Response

Code : 200 OK Content : TBU

Submit Workflow Action POST dags/:name

URL : /dags/:workflow

URL Parameters :

  • name=[string] where name is the Name of the workflow.

Query Parameters :

  • group=[string] where group is the sub directory name that the workflow is in.

Form Parameters :

  • action=[string] where action is start or stop or retry
  • request-id=[string] where request-id to retry action

Method : POST

Success Response

Code : 200 OK