Structured API assertions
182-structured-api-assertions.yaml
Example
What this example does
Demonstrates structured api assertions with explicit YAML configuration.
Checks and behavior
- Run --validate --strict before deployment.
- Requires an accessible endpoint to execute.
See ASSERTIONS-EVIDENCE.md for evidence boundaries, schema and baseline usage.
YAML configuration
# ipsonic-probe 1.5.0 example
name: API structured assertions
url: https://example.org/api/health
timeouts:
connect: 3
response: 8
total: 12
tests:
structured:
- id: api.http_ok
type: status
expected: 200
- id: api.content_type
type: header
header: Content-Type
expected: application/json
- id: api.healthy
type: json_value
path: status
expected: healthy
monitoring:
output: nagios