Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Rule Set Configuration File Structure

Your apimock-rule-set.toml file is structured into two main parts: prefix and rules.

  • The [prefix] table allows you to define global behaviors or conditions that apply to all rules within that specific rule set file.

  • The [[rules]] array is where you define your individual mock rules. Each [[rules]] block represents one rule.