swagger request <operationId>:
Send a request to an API operation. The default behavior could be interactive: it'll will prompt you to enter parameters or input a body.
Some flags that might make sense:
| flag |
meaning |
--use-examples |
get default values from examples rather than just defaults on parameters or in the model. |
--all |
Make a request for each defined API operation in the Swagger file. If combined with --use-examples it could send a request for each example, in cases where an API operation has more than one example request. |
swagger request <operationId>:Send a request to an API operation. The default behavior could be interactive: it'll will prompt you to enter parameters or input a body.
Some flags that might make sense:
--use-examples--all--use-examplesit could send a request for each example, in cases where an API operation has more than one example request.