API Shakedown

v0.1.3
io.github.anzar-ahsan-commits/api-shakedown Checked 1 day ago Published 1 month ago

Turn an OpenAPI spec into WireMock stubs, contract tests and chaos scenarios, on local LLMs.

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

doctor

Check that the configured LLM provider is reachable and the model is available.

inspect_spec

Load and validate an OpenAPI spec (file path or http(s) URL) and list its operations.

ParameterTypeDescription
spec *string

generate_harness

Generate a ready-to-run chaos test harness for an OpenAPI spec into out_dir. offline=true skips the LLM (deterministic, seconds); otherwise this takes minutes on a local model, and review=false roughly halves that. Refuses a non-empty out_dir unless force=true (which overwrites only the harness's own files).

ParameterTypeDescription
out_dir *string
spec *string
forceboolean
max_revisionsinteger
offlineboolean
reviewboolean

list_chaos_scenarios

List the chaos scenarios of a generated harness.

ParameterTypeDescription
harness_dir *string

activate_chaos

Turn one chaos scenario on in the harness's running WireMock (others go off).

ParameterTypeDescription
harness_dir *string
scenario_id *string
wiremock_urlstring

deactivate_chaos

Turn all chaos scenarios off: the stubs behave normally again.

ParameterTypeDescription
wiremock_urlstring