Edit paths and operations
A path is an OpenAPI URL template (e.g. /pets/{petId}); each path carries operations (GET,
POST, …) with parameters, request bodies, and responses. Paths are authored on a specific version
(revision) — unlike classes, they belong to the revision you are editing.
In the UI
- In the Designer menu, choose Workspace · Paths. It opens Designer's workspace on its
Paths lens (
/ade/studio/workspace?lens=paths). - Add or select a path template, then edit its summary, tags, and description.
- Add operations and wire their parameters, request bodies, and responses to your classes.
Designer's separate Paths editor was removed. An older link to /ade/studio/paths opens the same
place.
With the REST API
All path routes are scoped by tenant and version id.
| Action | Method & route |
|---|---|
| List paths | GET /v1/paths/{tenant_slug}/{version_id} |
| Get one path | GET /v1/paths/{tenant_slug}/{version_id}/{path_id} |
| Create a path | POST /v1/paths/{tenant_slug}/{version_id} |
| Update a path | PUT /v1/paths/{tenant_slug}/{version_id}/{path_id} |
| Delete a path | DELETE /v1/paths/{tenant_slug}/{version_id}/{path_id} |
Operations, parameters, request bodies, and responses hang off a path under
/v1/paths/{tenant_slug}/{version_id}/{path_id}/… (e.g. …/operations).
An operation's method can be a fixed verb (GET … TRACE), QUERY or a custom method token
such as REPORT. A parameter's in_location can be querystring, and a content type can be the
itemSchema of a stream (item_schema: true). These are OpenAPI 3.2 constructs. How each is
written to 3.2 and 3.1 documents is on OpenAPI 3.2 in projects.
PUT /v1/paths/{tenant_slug}/{version_id}/{path_id}
X-API-Key: <your-api-key>
{ "summary": "Find pet by ID", "tags": ["pets"] }
With the CLI
The CLI inspects paths, operations, and Arazzo workflows for a version (read-only):
apiome paths list <project> <version>
apiome paths show <project> <version> <path>
apiome operations show <op-ref> --project <id-or-slug> --version <id-or-label>
apiome workflows list --project <id-or-slug> --version <id-or-label>
The project is a slug or UUID and the version a label (2.1.0), slug or UUID. The older
--project <p> --version <v> form still works for paths list and paths show.
List a version's paths
apiome paths list payments-api 2.1.0
┃ Path ┃ Methods ┃ Operations ┃ Tags ┃
│ /charges │ GET, POST │ listCharges, createCharge │ public │
│ /charges/{id} │ GET, DELETE │ getCharge, deleteCharge │ public │
│ /webhooks │ POST │ receiveWebhook │ internal │
There is one row per path. Filter with:
--method GETand--tag public(both repeatable), which the server applies;--search <text>(or--q), which matches the path, method, operation id, summary or tags.
--json prints the API's array of path records, keeping only the ones --search matches when you
pass it.
Show one path
apiome paths show payments-api 2.1.0 /charges/{id}
/charges/{id} — One charge
├── GET getCharge — Fetch a charge [public]
│ ├── params
│ │ ├── id (path, required) string
│ │ └── expand (query) string[]
│ └── responses
│ ├── 200 application/json → Charge
│ └── 404
└── DELETE deleteCharge [public] (deprecated)
├── params
│ └── id (path, required) string
└── responses
└── 204
The path can be:
- the template (
/charges/{id}, with or without the leading/); - its URL-encoded form (
/charges/%7Bid%7D); - its JSON Pointer token (
~1charges~1{id}, RFC 6901, as it appears after#/paths/in a$ref); - the path's UUID.
Operations are listed in OpenAPI order (GET, PUT, POST, DELETE…). Each shows its parameters, request
body and responses, with the class or inline type each one carries. --method and --tag narrow
the operations shown. --json prints the API's full path object
(GET /v1/paths/{tenant}/{version}/{path_id}/full).
Verify
- CLI:
apiome paths list <project> <version>lists the path, andapiome paths show <project> <version> <path>shows its operations. - Export: the path appears in the reconstructed OpenAPI document — see Export a spec.
Related
- OpenAPI 3.2 in projects — QUERY and custom methods, the tag hierarchy, streams and
querystring - Cut a version — paths are authored on the revision you cut
- Lint and check quality — undocumented operations show up as findings