{% extends "base.html" %} {% block title %}{{ action }} Endpoint - Mock API Admin{% endblock %} {% block content %}
Configure a mock API endpoint.
Use {param} in the route to capture path parameters. Example: /api/users/{id} will make id available as {{ '{{ id }}' }} or {{ '{{ path_id }}' }}.
path_* – path parametersquery_* – query parametersheader_* – request headersbody_* – request body fields (if JSON)timestamp – Unix timestampdatetime – formatted date/timerequest_id – unique request ID{
"id": {{ '{{ path_id }}' }},
"name": "User {{ '{{ path_id }}' }}",
"timestamp": {{ '{{ timestamp }}' }},
"query": {{ '{{ query_search }}' | default('null') }}
}