Skip to main content

Projects

Route/ade/dashboard/projects

A project is one API: its classes, paths and every version of it. Go to Build → Projects to see them all. The header sums them up — for example 2 projects · avg quality 83 · 2 active.

The Projects page in Cards view: two project cards with quality, lint and debt scores, a New project card and the portfolio quality trendThe Projects page in Cards view: two project cards with quality, lint and debt scores, a New project card and the portfolio quality trend
Route/ade/dashboard/projects

Find a project​

  • Search with the filter box (/ focuses it).
  • Filter with All, Active, Needs attention and Deleted. Deleted works once Show deleted is on.
  • Sort with Sorted by name ↑.
  • Switch views with Cards (the default) and Table.
The Projects page in Table view: columns for project, description, quality trend, versions, owner, status and creator, with the Owner filter in the toolbarThe Projects page in Table view: columns for project, description, quality trend, versions, owner, status and creator, with the Owner filter in the toolbar
Route/ade/dashboard/projects

The table shows Project, Description, Quality trend, Versions, Status, Created by and Updated. Portfolio quality trend under the list plots average quality across projects after each import.

Click a project to open its versions.

Create a project​

  1. Click “New project” (or press N). A Viewer doesn't see New project or Import, and sees no Edit or Delete on a project — see Roles.
  2. On Create manually, choose a Starting template — Blank starts empty.
  3. Enter a Project name (for example Payments API); the Slug (payments-api) is suggested from it. Description and Domain category are optional.
  4. Fill in API metadata (OpenAPI info) if you know it — API summary, contact and licence. It becomes the spec's info block, and you can change it later.
  5. Click “Create project”.
The New project dialog: starting template, project name, slug, description and API metadata fieldsThe New project dialog: starting template, project name, slug, description and API metadata fields
Route/ade/dashboard/projects

Design with AI (marked Beta) drafts a project from a description instead. To start from a file you already have, click “Import” — see Import your first project.

Edit, delete and restore​

Open a project's menu (⋯ on a card or row). Open versions and Undelete project are in the table's row menu; on a deleted card, use the Undelete and Permanently delete buttons at the bottom of the card instead:

ItemDoes
Open versionsOpens the project's Versions (table view)
ConsumersWho depends on this API — see below
Edit projectChanges the name, description and API metadata; “Save changes”
Pin to Home / Unpin from HomeKeeps the project in Pinned projects on Home, up to 8
Delete projectMoves it to Deleted. Turn on Show deleted to find it again
Undelete projectBrings a deleted project back
Permanently deleteRemoves it for good — type the slug, then “Delete everything”

In the table, tick rows to Delete or Undelete several at once.

Consumers​

Route/ade/dashboard/projects/[projectId]/consumers

Consumers lists the teams and services that depend on the API, and which operations and fields each one uses. “Register consumer” adds one by hand; “Import Pact file” adds one from a consumer contract. The import can also publish the pact to the Pact Broker.

Bindings and traffic​

A consumer's contract says what it declares it uses. Its bindings let the usage index recognise its live calls, so you can see what it really calls next to what it declares.

  1. On Consumers, open a consumer's row menu (⋯) and choose Bindings and traffic.
  2. Under Bindings, pick the Kind: Header, API key, JWT claim or User agent.
  3. Enter the name: the header (x-client-id), the header carrying the key (x-api-key), the claim (azp), or a user-agent pattern such as billing-service/*.
  4. For every kind except User agent, enter the Value this consumer sends. It is hashed before it is stored and is never shown again.
  5. Click “Add binding”. Calls ingested from now on are attributed to the consumer.
The Bindings and traffic drawer for Billing Service: an API key and a user-agent binding with when each last matched, the add-binding form, and the declared-vs-observed lists with an Add to contract buttonThe Bindings and traffic drawer for Billing Service: an API key and a user-agent binding with when each last matched, the add-binding form, and the declared-vs-observed lists with an Add to contract button
Route/ade/dashboard/projects/pets/consumers

Each binding shows its name and when it last matched, never its value. The trash button deletes one: it stops matching from the next batch, and calls it already attributed stay with the consumer. Until a consumer has a binding that matches, its calls are counted as anonymous.

Declared vs observed covers the last 30 days:

  • Used, undeclared lists operations the consumer calls but does not declare. Click “Add to contract” to store a new contract revision with that operation added to what is already declared.
  • Declared and used lists declared operations with calls, with the count and the last day seen.
  • Declared, unused lists declared operations with no calls in the window.

Adding and deleting bindings needs the same permissions as registering and retiring consumers.

A client that calls the API but isn't registered yet is a suggested consumer; the REST API registers it together with its binding. See Suggested consumers.

Owner​

A project can have an owner team. CODEOWNERS rules for the spec's path and the document's own x-apiome-owner extension suggest one, and a suggestion becomes the owner only when someone confirms it.

In a list, the Owner column (on cards, a line under the summary) names the team. A suggested owner carries a Suggested badge saying where it came from — Gateway tag, CODEOWNERS, Spec — and a “Confirm” button: click “Confirm” to make it the owner; the row updates in place. The team's name opens its team page.

Owner in the toolbar shows one team's projects (kept in the address as ?team=). In Table view, tick projects and use Assign owner in the bar at the bottom of the page to give them all the same owner.

On a project's Consumers, the Owner column is the consumer's owner team and Contact is the free-text owner it was registered with; Owner in the toolbar filters by team there too. See Teams → Ownership.

With the CLI or the API​

  • CLI: apiome projects list, apiome projects get <id>, apiome projects update <slug-or-id> to change a project's name, slug (--rename), description or domain, and apiome projects delete <slug-or-id> to delete one, and apiome projects export <slug-or-id> to back the whole project up as one document (format) — see the projects command reference and the CLI quick-start.
  • REST: GET / POST /v1/projects/{tenant}, GET / PUT / DELETE /v1/projects/{tenant}/{project}, POST /v1/projects/{tenant}/{project}/restore — see the API reference. DELETE is a soft delete (undone with restore); DELETE …?permanent=true removes the project and everything under it for good, and GET …/{project}/deletion-impact counts what that would remove. A PUT may carry expectedUpdatedAt (the project's updated_at as you last read it); if the project has changed since, nothing is written and the response is 409 with code update_conflict.

Update a project from the CLI​

  1. Preview the change: apiome projects update payments-api --description 'Charges, refunds, payouts.' --domain finance --dry-run prints each changed field as a - / + pair and sends nothing.
  2. Apply it by running the same command without --dry-run.
  3. To change the slug, add --rename payments-v2. The CLI asks you to confirm (pass --yes in scripts): links, scripts and commands that use the old slug stop working, because there is no redirect.
  4. To edit several fields at once, dump the project with apiome --json projects get <id> > project.json, edit name, slug, description, enabled or metadata, and apply it with apiome projects update <id> --from-file project.json. If someone changed the project after your dump, nothing is written and the command exits 6 — dump it again and re-apply.

Where next​

Delete a project from the CLI​

apiome projects delete <slug-or-id> first shows what will be removed — the project's versions (and how many are published), classes, properties and paths.

  1. Archive — a soft delete you can undo on the Projects page (turn on Show deleted, then Undelete project): apiome projects delete payments-api --archive, then answer y.
  2. Delete permanently — apiome projects delete payments-api, then type the project slug (payments-api, exactly — it is case-sensitive). In a script, pass --yes instead; the argument must then be the exact slug, not the project's id.
  3. A project with published versions is refused — the command exits 6 — because consumers can still fetch those specs. Unpublish them first, or add --force. This applies to --archive too.
  4. A permanent delete is refused if the project's versions have audit history, which Apiome never deletes; archive the project instead.

With --json, a successful delete prints {"deleted": true, "slug": "payments-api", "permanent": true}.