SmartGare
API referenceEndpoints

List a rule's test cases

Every test case written for the rule, oldest first. **Required permission:** `referential.rule:read`

GET/referential/v1/rules/{ruleId}/tests

Every test case written for the rule, oldest first.

Required permission: referential.rule:read

AuthorizationBearer <token>

In: header

Response Body

*/*

curl -X GET "https://example.com/referential/v1/rules/{ruleId}/tests"
[  {    "created_at": "2019-08-24T14:15:22Z",    "created_by": "string",    "expected": {},    "id": "string",    "label": "string",    "rule_id": "string",    "situation": {      "property1": "string",      "property2": "string"    },    "updated_at": "2019-08-24T14:15:22Z",    "updated_by": "string"  }]