Many teams write the API contract first and generate an OpenAPI document from it. DialCatz can tie a collection to that document instead of importing it once: the collection follows its spec, tells you when the spec changed, checks every response against it, and can stand in for the API with a mock server before the real one is built. And a collection made by hand can go the other way, out as an OpenAPI 3 document.
All of it lives in a collection’s right-click menu, under Spec:
| Item | When | What it does |
|---|---|---|
| the spec’s name | The collection follows a spec | The file name, the URL, or DevCatz routes / DoCatz routes |
| Check for changes… | The collection follows a spec | Opens the review below |
| Follow a spec file… / Follow another file… | Always | Pick an OpenAPI or Swagger file for this collection to follow |
| Follow a spec URL… / Follow another URL… | Always | Type the address of an OpenAPI document (https://…) |
| Stop following | The collection follows a file or URL | Its requests stay as they are |
| Mock server… | Always | Opens the Mock server panel |
A collection that follows its spec
A collection follows a spec when it came from one, or when you told it to:
- Import → File or paste with one OpenAPI or Swagger file: the collection follows that file.
- Import → File or paste with only an
http://orhttps://address pasted in the box: DialCatz fetches the document there, and the collection follows that address. - Import → OpenAPI in a project: every file you tick becomes a collection that follows it — see OpenAPI in a project.
- Spec → Follow a spec file… or Follow a spec URL… on any collection, also one you made by hand.
- A collection imported from a DevCatz site or a DoCatz project checks its routes the same way.
When the spec changes
When a followed file or URL changes, the collection gets a small spec mark in the tree, and Spec in its menu says changed. Files are checked when DialCatz comes to the front and when you switch workspaces; a URL is fetched at most once a minute. Click the mark to review what is new.
DevCatz and DoCatz routes are never checked on their own, because reading them runs code (php artisan route:list, or
a command inside a container). Use Spec → Check for changes… when you want to know.
The review
Check for changes… opens Update “<collection>” from its spec. It names the spec and how many requests are up to date, then lists the differences in up to three cards:
| Card | Ticked at first | What ticking does |
|---|---|---|
| New in the spec | Yes | Ticked requests are added to the collection. |
| Changed in the spec | Yes | Ticked requests take the spec’s new version. Anything you edited yourself stays yours. |
| Removed from the spec | No | Ticked requests are deleted. Unticked ones stay as your own requests. |
Each changed request shows which parts changed — Name, Method, Path, Query, Headers, Body or Description — and a part you edited yourself says · yours stays. Params and headers are merged row by row, so a value you typed into a query row survives an update that adds another row. All ticks or unticks a whole card.
The footer says what Update collection will do: add 2, update 1. Auth, scripts and folders are never touched. Changes you leave unticked are marked as seen and are not offered again; nothing is ever deleted unless you tick it. When nothing differs, the dialog says Everything in the spec is in the collection already and the button is Done.
A collection imported before DialCatz kept track of the spec shows a note on its changed requests: ticking takes the spec’s version, while your values for the same query and header names stay.
Responses checked against the spec
A request that came from an OpenAPI document remembers the responses the spec describes for it. After you send it, the response gets a Spec tab next to Tests:
- ✓ and The response matches the spec, or
- the number of differences, each with the JSON path where it is: a status the spec does not list, a content type it does not allow, a missing required field, a string where the spec says number, and so on.
The tab says which of the spec’s responses it used: the exact status first, then its class (2XX), then default.
What is checked:
| Checked | Not checked |
|---|---|
The status code, the content type, and a JSON body’s shape: types (and nullable), required, properties, additionalProperties, items, enum / const, allOf / anyOf / oneOf, with every $ref followed |
Formats, lengths and patterns |
In the collection runner, Check against the spec (on when any picked request came from a spec) adds one more test per request, Response matches the spec, so a run tells you where the API and its contract part ways.
Collections imported before this existed have no responses to check against yet: Spec → Check for changes…, then Update collection or Done, brings them in.
Mock server
Spec → Mock server… runs the collection’s spec as a small API on your computer, so a frontend can be built before
the real API exists — on 127.0.0.1, ports 4010–4099, with Send requests here to point the collection at it, and a
domain of its own when DevCatz or DoCatz asked for it. Everything about it is on its own page:
Mock servers.
OpenAPI in a project
Import → OpenAPI in a project finds the specs in a project folder for you, with no DevCatz needed:
- Press Choose a project folder….
- DialCatz looks through it for OpenAPI 3 and Swagger 2 files, JSON or YAML, leaving out dependencies and build
output (
node_modules,vendor,dist,build,target, virtual environments, hidden folders and the like). - Each file it finds shows its title and version, its path in the folder, its format and how many requests it holds. One a collection in this workspace already follows says already followed by “<collection>” and starts unticked; the others start ticked.
- Press Import. Each ticked file becomes a collection that follows its file.
No file found? If the API serves its document (for example /openapi.json), paste that address under File or paste.
Export a collection as OpenAPI
Export… in a collection’s menu has a third format, OpenAPI: <name>.openapi.yaml, an OpenAPI 3.0 document made
from the requests — the start of a contract for an API you have only been calling so far.
| From the collection | Becomes |
|---|---|
| Each request | An operation on its path. The first request for a method and path wins. |
:id, {id} and {{id}} in a path |
Path parameters |
A leading {{baseUrl}} (any variable) |
servers, from the collection’s environment |
| Query rows and switched-on headers | Parameters (not the headers DialCatz or the auth adds) |
| Bodies | A JSON body as its example, with a schema read from it; form and multipart fields; XML, text, GraphQL, JSON-RPC and binary bodies |
| Auth | A security scheme of its kind (bearer, basic, API key, or OAuth 2.0 as an oauth2 scheme with its flow, addresses and scopes), never its values |
| Folders | Tags |
| A request that came from a spec | The spec’s responses |
Values written as {{variables}} stay out of the examples. Review the file before you share it.
In a team or a folder workspace
- A team workspace on DialCatz Den syncs which spec a collection follows and the spec’s responses, so teammates get the Spec tab and the mock too.
- A folder workspace keeps which spec a collection follows in its files, but not the spec’s responses or what the spec last made of each request, to keep the files short. There, an update takes the spec’s version only for the requests you tick, and Spec → Check for changes… brings the responses in on another computer.
- A followed file is a path on your computer. A teammate whose copy of the project sits elsewhere uses Follow another file… once.
MCatzP
An AI assistant can do all of this through MCatzP: check_collection_spec,
apply_spec_changes, follow_spec, unfollow_spec, start_mock, stop_mock, list_mocks, use_mock_environment,
export_collection with format: openapi, and run_collection with check_spec. Each change asks in DialCatz first;
stop_mock only stops, so it runs at once.
Last updated 2026-11-23