Enterprise testing
HTTP contract example
Specify request and response cases. Source-reviewed example or artifact, NOT RUN.
Formal Syntax & Structure
java syntaxjava
GET /items/penWorking Example
Example Snippetjava
{"method":"GET","path":"/items/pen","header":"X-Lab-Tenant","examples":[{"tenant":"alpha","status":200,"body":{"sku":"pen","quantity":4}},{"tenant":"beta","status":404}]}