For type: server mock server files opened in VS Code, the right panel has two pages:
Markdown (no JavaScript)
# Edit Mock For `type: server` mock server files opened in VS Code, the right panel has two pages: 1. **Run view** — start/stop the mock and inspect endpoints 2. **Edit Mock** — structured editor for the YAML definition Click {{btn:edit:Edit Mock}} in the top bar to switch to edit mode. Use the back control to return to the run view. > This documents the editor panel for `type: server` files. The separate **Mock server panel** in the VS Code sidebar is a lightweight prototyping tool — see [Mock server panel](./panel.md). ## Run view | Control | What it does | |---|---| | {{btn:play:Run mock}} / **Stop mock** | Start or stop the local mock server from this editor | | **More** (chevron next to Run) | **Run in mock server panel** — start via the sidebar panel without binding the editor tab | | **Configuration chips** | Base URL, protocol, CORS, connection mode, delay | | **Endpoint list** | Method, path, status, format, and tags for each endpoint | The server icon turns green while the mock is running. UI-started mocks stop when you close the tab; panel-started mocks do not — see [Mock Server overview](./index.md#run-bar). ## Tabs | Tab | What you edit | |---|---| | {{btn:search:Overview}} | Title, description, tags, and data `import` map | | {{btn:server-environment:Server}} | Protocol, port, base path, CORS, delay, TLS/mTLS, proxy, fallback | | {{btn:list-tree:Endpoints}} | Endpoint list — method, path, match rules, status, body, reflect mode | ### Overview Edit metadata and top-level `import` entries for JSON/YAML/CSV data used in endpoint bodies and match rules. See [Data imports](../../features/data-imports.md). ### Server Configure server-wide settings — see [Endpoints — Server settings](./endpoints.md#server-settings) and [TLS](./tls.md). ### Endpoints Add, edit, and remove endpoint blocks — see [Endpoints](./endpoints.md). --- See also: [Mock Server overview](./index.md) · [In tests](./in-tests.md) · [In suites](./in-suites.md)
For AI agents · llms.txt · Home