Skip to content

REST API

The Ordine server exposes a REST API on port 9433 by default. All endpoints are prefixed with /api/.

Base URL

http://localhost:9433/api

Resources

Pipelines

MethodPathDescription
GET/pipelinesList all pipelines
POST/pipelinesCreate a pipeline
PUT/pipelinesUpsert a pipeline
GET/pipelines/:idGet a pipeline by ID
PATCH/pipelines/:idUpdate a pipeline
DELETE/pipelines/:idDelete a pipeline
POST/pipelines/:id/runRun a pipeline

Run Pipeline

sh
curl -X POST http://localhost:9433/api/pipelines/my-pipeline/run \
  -H 'Content-Type: application/json' \
  -d '{"inputPath": "/path/to/project"}'

Response:

json
{ "jobId": "d1612c1b-cd83-4936-b3db-8777847b1871" }

Operations

MethodPathDescription
GET/operationsList all operations
POST/operationsCreate an operation
PUT/operationsUpsert an operation
GET/operations/:idGet an operation by ID
PATCH/operations/:idUpdate an operation
DELETE/operations/:idDelete an operation

Skills

MethodPathDescription
GET/skillsList all skills
POST/skillsCreate a skill
GET/skills/:idGet a skill by ID
PATCH/skills/:idUpdate a skill
DELETE/skills/:idDelete a skill

Best Practices

MethodPathDescription
GET/best-practicesList all best practices
PUT/best-practicesUpsert a best practice
DELETE/best-practices/:idDelete a best practice

Rules

MethodPathDescription
GET/rulesList all rules
PUT/rulesUpsert a rule
DELETE/rules/:idDelete a rule

Recipes

MethodPathDescription
GET/recipesList all recipes
POST/recipesCreate a recipe
PUT/recipesUpsert a recipe
DELETE/recipes/:idDelete a recipe

Jobs

MethodPathDescription
GET/jobsList all jobs
GET/jobs/:idGet a job by ID
GET/jobs/:id/tracesGet traces for a job
DELETE/jobs/:idDelete a job

Filesystem

MethodPathDescription
GET/filesystemBrowse filesystem

Code Snippets

MethodPathDescription
GET/code-snippetsList code snippets
PUT/code-snippetsUpsert a code snippet
DELETE/code-snippetsDelete a code snippet

Checklist Items

MethodPathDescription
GET/checklist-itemsList checklist items
PUT/checklist-itemsUpsert a checklist item
DELETE/checklist-itemsDelete a checklist item

Common Patterns

Upsert

Most resources support PUT for upsert — the request body includes the id field. If the ID exists, the record is updated; otherwise, it's created.

List Filtering

List endpoints support query parameters for filtering:

sh
# Filter by Refine conventions
GET /api/pipelines?_sort=updatedAt&_order=desc&_start=0&_end=10

Error Responses

Errors are returned as JSON:

json
{
  "error": "Pipeline not found",
  "statusCode": 404
}

Released under the MIT License.