Documentation Index (72)

Live Multi-Protocol Interactive Playground

// Click 'Execute Query' to fetch mock GraphQL payload
Overview & Runtime#overview#headers#pipeline#561#tiers

Template Engine Overview & Priority Pipeline

Mockbit includes a Handlebars-compatible dynamic response generator. Mockbit evaluates mock rules using a 5-Tier Priority Pipeline and attaches diagnostic tracing headers (X-Mockbit-Execution-Tier). Template syntax errors return HTTP Status 561.

Template Syntax & Usage
// Priority Tier Header Attached to Responses:
X-Mockbit-Execution-Tier: conditional_rule | weighted_split | chaos_fault | stateful_store

// Invalid syntax return header & status:
HTTP/1.1 561 Template Syntax Error
X-Mockbit-Error: Template Evaluation Error
Expected Generated Response
{
  "status": "active",
  "tier": "conditional_rule"
}
Ready to build dynamic stateful APIs?

Test these templates instantly inside the Mockbit Studio or deploy your own endpoints.

Open Studio