internal/

directory
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2026 License: MIT

Directories

Path Synopsis
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`.
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.
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.
Package cli wires the apic commands together.
Package cli wires the apic commands together.
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.
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.
Package env loads environment variable files:
Package env loads environment variable files:
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.
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.
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.
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).
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.
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.
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.
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`:
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.
Package template substitutes `{{expr}}` placeholders.
Package template substitutes `{{expr}}` placeholders.
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL