Mock APIs with Map Local

Dynamic values with templates

Fresh ids and dates, and values copied from the request, in any mock.

Write {{ … }} anywhere in a response body, a response header or a text file used as the body. AegisCeptor fills it in for every request.

Values from the request

TemplateGives
{{queryParam 'page'}}the query parameter page
{{urlParam 'id'}}the route parameter from a pattern like /products/:id
{{header 'Accept-Language'}}a request header
{{cookie 'session'}}a cookie
{{body 'user.email'}}a field from the JSON or form body
{{urlPath}} · {{method}}the request path and method

Add a fallback as a second value: {{queryParam 'page' '1'}} gives 1 when there is no page.

Generated values

TemplateExample output
{{uuid}}9f03ac47-f717-4c6c-9c3d-6e72bedda42a
{{now}}2026-11-19T12:31:51Z
{{now 'sec'}} · {{now 'ms'}}Unix time in seconds or milliseconds
{{randomInt 5 50}}a whole number from 5 to 50
{{faker 'name'}}a random full name
{{faker 'email'}} · {{faker 'phone'}} · {{faker 'city'}}random dummy contact data
{{faker 'boolean'}}true or false
{{faker 'lorem'}}a placeholder sentence

Example: one rule for every product

Pattern example.com/api/products/:id, body:

{
  "id": "{{urlParam 'id'}}",
  "name": "Demo product {{urlParam 'id'}}",
  "price": {{randomInt 5 50}},
  "inStock": {{faker 'boolean'}}
}

/api/products/42 returns product 42, /api/products/7 returns product 7, each with a random price.

Tip: numbers and booleans go outside quotes ("price": {{randomInt 5 50}}) so the JSON stays valid; text goes inside quotes. Curly “smart quotes” pasted from documents are turned into normal quotes automatically.