Add an OpenAPI extension to provide waiter support that blocks until a specific state has been met. Typically you would do a request on a cadence to return some state information and use a query to match a state in the response to exit the loop.
For example, the configuration for such a feature might look something like:
Add an OpenAPI extension to provide waiter support that blocks until a specific state has been met. Typically you would do a request on a cadence to return some state information and use a query to match a state in the response to exit the loop.
For example, the configuration for such a feature might look something like:
Assuming the
GetOrder
operation has a requiredorder-id
parameter, this results in a command something like:This could also be automatically combined with creation or update operations by mapping response information to parameters on the waiter operation:
Then you could do something like:
This gets even more difficult with multiple params where you have to save the response and somehow get each param to pass into the
wait
command.