api:
port: 2000
flow:
- choose:
- case:
test: headers['X-Foo'] != null
flow:
- return:
status: 200
- case:
test: headers['X-Bar'] != null
flow:
- return:
status: 300
- otherwise:
- return:
status: 400
| Elements | Description | Cardinality |
|---|---|---|
| case | Sets the list of choices. The choices can include "case" and "otherwise" elements to define conditional flows. | 0..* |
| otherwise | Sets the list of choices. The choices can include "case" and "otherwise" elements to define conditional flows. | 0..* |