Skip to main content

Published

Route/ade/dashboard/published

Published lists every locked, published version in the workspace and the three things a publication has that a draft does not: a visibility, an access URL and a hosted mock. Go to Ship → Published. The header counts them — for example 4 published versions · 2 public · 1 with a hosted mock — and “API keys” opens the workspace's API keys, which private versions need.

Published versions: each version's visibility, access URL, mock and publish datePublished versions: each version's visibility, access URL, mock and publish date
Route/ade/dashboard/published

The table loads fifty versions at a time, most recently published first. When the workspace has more, click “Load more” in the table's foot. The search box filters the rows already loaded, so load more before searching for an older version.

Nothing is authored here. Visibility is the only change the page makes — to publish, unpublish or retire a version, use Versions; see Publish a version.

The table​

ColumnWhat it shows
Project / VersionThe project, the version (v2.3.1), a Locked badge, a lifecycle pill when the version is Deprecated or later, and the revision note. Hover the pill for the sunset date. A deprecated version also says who still calls it — Still used by 2 consumers (1,240 calls, 7-day) with a Consumers link — as on the Sunset timeline.
OwnerThe project's owner team. A suggested owner shows a Suggested badge and “Confirm”; confirming updates every version of that project.
VisibilityPublic or Private. Click it to change it (below).
Access URLThe path the spec is served at, such as schema/acme/payments-api/2.3.1. Click it to copy the full URL.
MockThe hosted mock switch, its URL, Scenarios, Correlation and a 30-day request sparkline (below).
PublishedWhen, and by whom.
ActionsThe row menu, and a key button on private rows.

Search (press /) matches the project name, version, description and workspace. Owner next to it lists only the versions of projects one team owns; the choice is kept in the address as ?team=. The foot reads Showing 3 of 4 published versions and says (filtered) while a search is on.

Change visibility​

  1. Click the row's Public or Private badge (or choose Make Private / Make Public in the row menu).
  2. Apiome asks Change Visibility to PRIVATE (or PUBLIC) and says what changes: a public spec needs no API key; a private one does.
  3. Click “Change Visibility”. A toast confirms Visibility changed to private. If the change fails, a red banner names the reason — for example Failed to update visibility: 503 Service Unavailable — and the row keeps its old value.

Open a published spec​

The row menu (⋯) has:

  • View → OpenAPI, Arazzo or JSON Schema — the reconstructed document in a new tab.
  • Swagger UI — the interactive viewer; see Browse published specs.
  • Copy URL — the access URL.
  • Make Private / Make Public.

A private version needs an API key. With no live key in the workspace, the View entries are inert and say Create an API key to access private versions. With one, Apiome asks for it:

API key required: an API key field, Remember this key, and Open with keyAPI key required: an API key field, Remember this key, and Open with key
Route/ade/dashboard/published
  1. Paste the key (it starts sk_) into API key.
  2. Leave Remember this key on this browser for the current tenant ticked to skip the prompt next time on this device, or untick it.
  3. Click “Open with key”. The URL opens with the key as the api_key query parameter.

The key button beside a private row's menu always asks, which is how you replace a remembered key; Clear saved key from this browser forgets it.

The hosted mock​

The Mock cell serves the version as a mock API — the same cell is on Versions.

  1. Turn on the switch. The label changes from Mock off to Mock on and a toast says Mock enabled for v2.3.1 — the mock URL is ready to share.

  2. Click the copy button beside the mock URL (for example https://mock.apiome.dev/acme/payments-api/2.3.1) and call it:

    curl https://mock.apiome.dev/acme/payments-api/2.3.1/payments
  3. The sparkline counts the mock's requests over the last 30 days; it reads No requests yet until the first one.

Turning the switch off stops serving the mock. On an unpublished draft (on Versions) the switch reads Draft mock off and turns on a Private mock that needs an API key at runtime.

A version imported from GraphQL SDL is mocked at one URL ending in /graphql. On Published its cell shows and copies that URL, with the note GraphQL · queries and mutations. Subscriptions are not served on this deployment yet. Open it in a browser for GraphiQL, or see Query a GraphQL mock.

An AsyncAPI version's cell also says where its events go. Events · WebSocket/SSE only — no broker bound means the mock serves its channels over WebSocket and Server-Sent Events only. Events · Kafka broker bound, plus WebSocket/SSE means the version is bound to a Kafka broker, and the mock publishes each channel's events to its topic every interval while the switch is on. See Event mock brokers.

That same /graphql URL can be the target of a contract run. Register it as a verification target with protocol: graphql, and every root query and mutation field is called and checked against the schema — see Contract test a GraphQL API.

A version imported from Protobuf can be contract tested the same way. Register its deployment as a verification target with protocol: connect (JSON over HTTP) or protocol: grpc (a native gRPC channel with server reflection), and every unary method is called and checked against the .proto; streaming methods are listed as not covered — see Contract test a gRPC API.

Scenarios​

Click “Scenarios” to open Mock scenarios for v… — named situations a consumer picks per request with the X-Mock-Scenario header. Requests without the header get the default response.

Mock scenarios for v1.0.0: a quota-exceeded scenario answering GET /pets with HTTP 429, Retry-After and an error bodyMock scenarios for v1.0.0: a quota-exceeded scenario answering GET /pets with HTTP 429, Retry-After and an error body
Route/ade/dashboard/published
  1. Click “Add scenario” and name it, for example quota-exceeded, with an optional description.
  2. Click “Add operation override”, enter the operation — GET /pets — and its response: Status 429, then the Headers · JSON pane {"Retry-After": "60"} and the Body · JSON pane {"error": "quota"}; each pane's bar says what it holds and whether it is optional. Add sequence step adds another response, so successive calls get each in turn. Match rules (advanced) stay folded under the responses until an operation has some — click the caption to open the pane.
  3. Optionally set Latency & chaos — a delay (± jitter, capped at 30 s) and an error rate — for the whole version or one route, or Add scenario chaos for this scenario only.
  4. Under Try it, choose the operation and click “Render” to see what the mock would answer and which layer answered — nothing is saved or sent.
  5. Click “Save scenarios”. Validation errors are listed under Please fix the following before saving:.

Then call it: curl -H 'X-Mock-Scenario: quota-exceeded' <mock URL>/pets. The format, match rules and templates are in the Mock runtime guides.

Correlation​

Click “Correlation” to make the default response answer with the request's own values — GET /pets/42 returns "id": 42. The editor and its modes are documented in Request-correlated responses.

Response correlation: correlation modes, explicit bindings with a token picker, and a rendered previewResponse correlation: correlation modes, explicit bindings with a token picker, and a rendered preview
Route/ade/dashboard/published

To try a mock without turning one on, see Mock try-out.

With the CLI or the API​

  • REST: GET /v1/browse/tenants/{tenant}/projects/{project}/versions lists published versions; PUT /v1/versions/{tenant}/{project_id}/{version_record_id}/mock turns the mock on or off; GET / PUT …/mock/scenarios and …/mock/correlation read and save scenarios and correlation — see the API reference.
  • CLI: apiome spec export downloads a published version and apiome mock preview dry-runs a request — see the CLI quick-start.

Where next​