Execute a series of policies conditioned on API path and/or verb
Table 1. Supported parameters
| Parameter |
Required |
Data type |
Details |
| cases |
Yes |
array |
List of operation switch cases. Must contain a minimum of 1 items |
| otherwise |
No |
array or null |
List of actions to execute if no condition is satisfied |
Table 2. Nested properties inside
cases
| Parameter |
Required |
Data type |
Details |
| conditions |
Yes |
array |
List of conditions for an operation switch case. Must contain a minimum of 1
items |
| execute |
Yes |
array |
List of actions to execute for an operation switch case upon a condition match. Must contain
a minimum of 1 items |
Table 3. Options for
conditions
| Parameter |
Required |
Data type |
Details |
| verbPath |
Yes |
object |
Used to form case statement with both verb and api path |
| path |
Yes |
object |
Used to form case statement with api path only |
| verb |
Yes |
object |
Used to form case statement with verb only |
| operationId |
Yes |
object |
Used to form case statement with operation id |
Table 4. Nested properties inside
verbPath
| Parameter |
Required |
Data type |
Details |
| path |
Yes |
string |
Specifies the URL path or endpoint to which the request should be sent |
| verb |
Yes |
string |
Defines the HTTP method (such as GET, POST, PUT, DELETE) used for the request |
Table 5. Nested properties inside
operationId
| Parameter |
Required |
Data type |
Details |
| id |
Yes |
object |
Specifies a unique identifier for the operational element or configuration item |