openapi_mock_cli 0.0.1
openapi_mock_cli: ^0.0.1 copied to clipboard
CLI for resolving OpenAPI example responses via openapi_mock.
openapi_mock_cli #
CLI for openapi_mock.
Usage #
dart run openapi_mock_cli --spec openapi.yaml --method GET --path /users/42
Options:
--spec: OpenAPI file path or URI (file://,http://,https://)--method: HTTP method (default:GET)--path: request path (example:/users/42)--full: print full response object (statusCode,headers,body)
Default output is the mock response body as JSON.