Skip to main content

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:

  1. Deploy version 0.1 — working in production
  2. Deploy version 0.2 — set rollback_version: 0.1
  3. If 0.2 fails, Minimal falls back to 0.1 automatically

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.

ValueBehaviour
false (default)Every request executes all logic steps
trueResponse 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