✓creates an order201
✓validates the items schema201
✓rejects missing auth401
✓rejects negative quantity422
✓edge: empty items array422
✓edge: duplicate idempotency key409
✓GET /orders/:id returns the order200
✓GET /orders/:id with unknown id404
Test one endpoint.
Name an endpoint and get its functional tests and the edge cases around it: missing auth, bad input, unknown ids. They are YAML files in your repo, and they run on every pull request.
How API testing works





