REST API#
Static data#
Give a mock endpoint a JSON array on its Static Data tab and it serves that collection instead of its response body.

/m/{ws}/{resource}/m/{ws}/{resource}/:idThe single-record route needs its own mock, with a path ending in /:id and the same static data. The item is found by its id field.
Filtering#
Each query parameter keeps only the items whose field equals the value exactly. Several parameters must all match.
GET /m/abc-xyz/api/users?role=admin&status=activeThere are no comparison operators, full-text search, sorting or pagination. For those, write the response yourself with the template engine or conditional response rules.
CRUD endpoints from a YAML model#
Importing a YAML model (see Importing) creates one mock per route. Each response is generated on every call and nothing is stored, so a record you POST will not appear in the next GET.
/m/{ws}/{model}/m/{ws}/{model}/:id/m/{ws}/{model}/m/{ws}/{model}/:id/m/{ws}/{model}/:idA model with has_many relations includes five generated child records inside its single-record response. A belongs_to relation adds a parent id field, for example user_id.
MockLane © 2026 · Built for developers
Go to Dashboard