Config Reference
The config section controls runtime behaviour for your Custom API endpoint.
config:
rollback_version: 0.1
cache_result: true
rollback_version
config:
rollback_version: 0.1
Specifies which previous version to revert to if the current definition fails at runtime. The value must match a version you previously deployed in the http section.
Workflow:
- Deploy version
0.1— working in production - Deploy version
0.2— setrollback_version: 0.1 - If
0.2fails, Minimal falls back to0.1automatically
Always increment http.version when updating a definition, and set rollback_version to the last known good version:
# Safe update pattern
http:
version: 0.2
config:
rollback_version: 0.1
cache_result
config:
cache_result: true
When true, Minimal caches the response for repeated identical requests.
| Value | Behaviour |
|---|---|
false (default) | Every request executes all logic steps |
true | Response is cached — repeated requests skip execution |
When to enable:
- Read-only endpoints with stable data
- Expensive queries that don't need to run on every request
When to disable:
- Endpoints that write data
- Endpoints returning user-specific or real-time data