yapi send
Send a quick request without a config file
Synopsis
Send a one-off HTTP or TCP request directly from the command line. The transport is auto-detected from the URL scheme (tcp://, grpc://, or HTTP by default).
Examples: yapi send https://httpbin.org/get yapi send -X POST https://httpbin.org/post '{"hello":"world"}' yapi send tcp://localhost:9877 '{"type":"health","params":{}}'
Related: yapi docs send, yapi docs protocols
yapi send <url> [body] [flags]
Options
-H, --header strings Custom headers (e.g. -H 'Content-Type: application/json')
-h, --help help for send
--jq string JQ filter to apply to the response
--json Output result as JSON with full metadata
-X, --method string HTTP method (default: GET, or POST if body is provided)
-v, --verbose Show verbose output (request details, timing, headers)
Options inherited from parent commands
--binary-output Display binary content to stdout (by default binary content is hidden)
--insecure Skip TLS verification for HTTPS requests; use insecure transport for gRPC
--no-color Disable color output
-u, --url string Override the URL specified in the config file
SEE ALSO
- yapi - yapi is a unified API client for HTTP, gRPC, and TCP