Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
apic
command
Command apic runs .http request files for humans and AI agents.
|
Command apic runs .http request files for humans and AI agents. |
|
internal
|
|
|
assert
Package assert parses and evaluates `# @assert` expressions of the form `<selector> <op> <value>` or `<selector> exists` / `<selector> not exists`.
|
Package assert parses and evaluates `# @assert` expressions of the form `<selector> <op> <value>` or `<selector> exists` / `<selector> not exists`. |
|
auth
Package auth applies authentication to outgoing requests, driven by the `# @auth <type> [args]` directive or the `auth.default` setting in apic.yaml.
|
Package auth applies authentication to outgoing requests, driven by the `# @auth <type> [args]` directive or the `auth.default` setting in apic.yaml. |
|
bdd
Package bdd runs Gherkin feature files against a project's .http requests with a fixed step vocabulary, using godog embedded in the binary.
|
Package bdd runs Gherkin feature files against a project's .http requests with a fixed step vocabulary, using godog embedded in the binary. |
|
cli
Package cli wires the apic commands together.
|
Package cli wires the apic commands together. |
|
curlexport
Package curlexport renders a resolved request as a curl command, so a request can still be run where apic is not installed.
|
Package curlexport renders a resolved request as a curl command, so a request can still be run where apic is not installed. |
|
demoapi
Package demoapi backs `apic demo`: a tiny, fully in-memory HTTP API and its matching example .http project (embedded from project/), so apic can be tried with no network access and no git clone.
|
Package demoapi backs `apic demo`: a tiny, fully in-memory HTTP API and its matching example .http project (embedded from project/), so apic can be tried with no network access and no git clone. |
|
env
Package env loads environment variable files:
|
Package env loads environment variable files: |
|
httpfile
Package httpfile parses the common subset of the `.http` request file format used by VS Code REST Client, JetBrains HTTP Client, kulala.nvim and httpyac, plus apic's own `# @capture` / `# @assert` comment directives.
|
Package httpfile parses the common subset of the `.http` request file format used by VS Code REST Client, JetBrains HTTP Client, kulala.nvim and httpyac, plus apic's own `# @capture` / `# @assert` comment directives. |
|
mcp
Package mcp exposes a project's requests to AI agents over the Model Context Protocol (stdio), so an agent can discover and call an API without shelling out.
|
Package mcp exposes a project's requests to AI agents over the Model Context Protocol (stdio), so an agent can discover and call an API without shelling out. |
|
openapi
Package openapi scaffolds .http files from an OpenAPI 3 document: one file per tag, one named request per operation, path parameters as {{vars}} and an example body derived from the schema.
|
Package openapi scaffolds .http files from an OpenAPI 3 document: one file per tag, one named request per operation, path parameters as {{vars}} and an example body derived from the schema. |
|
output
Package output renders run results for humans (coloured, readable) and for machines (one JSON object per result).
|
Package output renders run results for humans (coloured, readable) and for machines (one JSON object per result). |
|
phrase
Package phrase turns `# @step` phrases such as `a user named {name} exists` into anchored regular expressions whose capture groups map to variables.
|
Package phrase turns `# @step` phrases such as `a user named {name} exists` into anchored regular expressions whose capture groups map to variables. |
|
project
Package project discovers .http files under a directory and indexes their requests by name.
|
Package project discovers .http files under a directory and indexes their requests by name. |
|
runner
Package runner executes parsed requests: it resolves variables, sends the request, evaluates captures and assertions, and persists captured values to the session.
|
Package runner executes parsed requests: it resolves variables, sends the request, evaluates captures and assertions, and persists captured values to the session. |
|
selector
Package selector extracts values from an HTTP response using the small selector language shared by `# @capture` and `# @assert`:
|
Package selector extracts values from an HTTP response using the small selector language shared by `# @capture` and `# @assert`: |
|
session
Package session persists values captured from responses between apic invocations, so `apic run login` followed by `apic run get-user` works the way it does in a GUI client.
|
Package session persists values captured from responses between apic invocations, so `apic run login` followed by `apic run get-user` works the way it does in a GUI client. |
|
template
Package template substitutes `{{expr}}` placeholders.
|
Package template substitutes `{{expr}}` placeholders. |
|
ui
Package ui is the interactive terminal UI behind `apic ui`: a request list on the left, a tabbed detail pane on the right, and a status bar.
|
Package ui is the interactive terminal UI behind `apic ui`: a request list on the left, a tabbed detail pane on the right, and a status bar. |
|
scripts
|
|
|
shot
command
Command shot regenerates the terminal screenshots in docs/assets from real apic output: it serves the demo API in-process, runs the requests the docs talk about, and renders the frames the CLI and the UI produce as SVG.
|
Command shot regenerates the terminal screenshots in docs/assets from real apic output: it serves the demo API in-process, runs the requests the docs talk about, and renders the frames the CLI and the UI produce as SVG. |
Click to show internal directories.
Click to hide internal directories.