Each mock endpoint belongs to a project and is live as soon as you save it. You can create as many mocks as your project needs — one per route, or one per scenario.Documentation Index
Fetch the complete documentation index at: https://docs.swisstools.dev/llms.txt
Use this file to discover all available pages before exploring further.
Create a new mock
Click New Mock in the top-right corner. A dialog opens with the mock configuration form.
Give it a name
Enter a Name for the mock. This is for your reference only — it appears in the mock list but is not part of the URL.You can also add an optional Description to document its purpose.
Set the method and path
Choose the HTTP method from the dropdown:
GET, POST, PUT, PATCH, or DELETE.Enter the endpoint path in the path field. The path must start with /, for example /users or /orders/123. This value becomes the last segment of your mock URL.Configure the response
- Status code — The HTTP status code to return. Defaults to
200. Use201for successful creations,404for not-found scenarios, and so on. - Response body — The body returned with every response. Accepts any text or JSON. Defaults to
{"message": "Hello World"}. - Response headers — A JSON object of headers to include. Defaults to
{"Content-Type": "application/json"}. You can add any headers your integration expects.
Example: GET /users
Here is a complete example of a mock that returns a list of users:| Field | Value |
|---|---|
| Name | List users |
| Method | GET |
| Path | /users |
| Status code | 200 |
| Response body | [{"id": 1, "name": "Alice"}, {"id": 2, "name": "Bob"}] |
| Response headers | {"Content-Type": "application/json"} |