tinyprobe

v0.26.1
io.github.kikutano/tinyprobe Checked 18 hours ago Published 5 days ago

API testing in YAML: inspect, call and run endpoints and workflows, with the guide to write them.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

guide Read the tinyprobe guide

The guide for writing tinyprobe files: the YAML format of API files and workflows, the rules that are easy to get wrong, and the procedures to test a backend or to migrate a Postman collection, an OpenAPI document or another tool's export. Read it before writing or changing tinyprobe files.

inspect Validate a tinyprobe file

Validate a tinyprobe API file or workflow without sending any request. Returns what it defines (endpoints with their params, variables, steps), or every problem with file:line:column and a suggestion.

ParameterTypeDescription
file *stringThe API file or workflow, relative to the workspace.

call Call one endpoint

Send one request to an endpoint of a tinyprobe API file or workflow, and return the request and the whole response (status, headers, body), whatever the status. Use it to see the real shape of a response before writing checks. It remembers nothing: pass a token in 'with' or 'vars'.

ParameterTypeDescription
endpoint *stringThe endpoint name, as in a step's 'call'.
file *stringThe API file or workflow that defines or imports the endpoint.
env_filestringThe environment file, for example tinyprobe/env.local.yaml (like -e).
varsobjectVariables over the environment file (like --var), as JSON values.
withobjectThe endpoint's arguments, as in a step's 'with'. JSON values keep their type: 42 is a number, "42" a string.

run Run workflows

Run tinyprobe workflows: files or folders (a folder is read recursively; API and env files in it are skipped). Every file is validated before the first request; each workflow starts from zero, and a failing one does not stop the others. Returns, for each workflow, whether it passed, its summary and its steps with their checks; failed steps include the request and the response.

ParameterTypeDescription
paths *arrayWorkflow files or folders, relative to the workspace, for example ["tinyprobe/workflows"].
env_filestringThe environment file, for example tinyprobe/env.local.yaml (like -e).
skiparraySteps to leave out of this run (like --skip), with one workflow file; the file is not changed. Each is a step's number as inspect lists the steps (1-based), or its name. Use it to leave out a step tha…
tointeger | stringRun to here (like --to): with one workflow file, run up to this step, included, and stop. The step's number as inspect lists the steps (1-based), or its name. Use it to look at one step of a flow.
varsobjectVariables over the environment file (like --var), as JSON values.