Runs

Render Workflow Graph

Changed on

Validates and renders a workflow manifest as SVG without creating a run. The manifest is checked as POST /validate checks it; a workflow Petri refuses is not rendered.

post/api/v1/graph/render

Request

  • The document declares no server URL.
  • Auth
    • HTTP bearer
    • or API key in cookie __fabro_session

Request body

format'svg'
direction'lr' | 'tb'

Example request

{
  "manifest": {
    "version": 1,
    "parent_id": "01HV6D7S5YF4Z4B2M7K4N0Q6T8",
    "title": "Add rate limiting to auth endpoints",
    "cwd": "/tmp/project",
    "git": {
      "origin_url": "https://github.com/acme/my-app.git",
      "branch": "feature/foo",
      "sha": "abc123def"
    },
    "target": {
      "path": ".fabro/workflows/smoke/workflow.fabro"
    }
  }
}

Response

Rendered graph image

Changes

    • info

      added the optional property // to the response with the status

    • warning

      removed the request property //

    • warning

      removed the request property //

    • warning

      removed the request property /

    • warning

      removed the request property //