Directories
¶
| Path | Synopsis |
|---|---|
|
Package assert parses and evaluates `# @assert` expressions: `<selector> <op> <value>`, `<selector> exists` / `not exists`, a predicate such as `<selector> isInteger` or `not isEmpty`, `<selector> length <op> <n>` and `<selector> matchesSchema <file>`.
|
Package assert parses and evaluates `# @assert` expressions: `<selector> <op> <value>`, `<selector> exists` / `not exists`, a predicate such as `<selector> isInteger` or `not isEmpty`, `<selector> length <op> <n>` and `<selector> matchesSchema <file>`. |
|
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 curlimport turns a curl command line into a `.http` request block, the reverse of `apic curl`: the common flags map onto the request line, headers, body and auth; the rest is reported, never fatal.
|
Package curlimport turns a curl command line into a `.http` request block, the reverse of `apic curl`: the common flags map onto the request line, headers, body and auth; the rest is reported, never fatal. |
|
Package datafile reads the rows of a data-driven run, `apic run --data`: a CSV file whose header row names the columns, or a JSON array of objects.
|
Package datafile reads the rows of a data-driven run, `apic run --data`: a CSV file whose header row names the columns, or a JSON array of objects. |
|
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 history keeps the last few responses of each named request, per environment, so "what did this return yesterday?" has an answer.
|
Package history keeps the last few responses of each named request, per environment, so "what did this return yesterday?" has an answer. |
|
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 lessons reads the runnable blocks out of the course pages: the fenced code blocks under website/src/content/docs/learn (and the migration guides) that an `<!-- learn -->` comment marks as something a reader types.
|
Package lessons reads the runnable blocks out of the course pages: the fenced code blocks under website/src/content/docs/learn (and the migration guides) that an `<!-- learn -->` comment marks as something a reader types. |
|
Package lsp is apic's language server: `apic lsp` speaks the Language Server Protocol over stdio, so any editor with an LSP client gets the diagnostics, completion, hover, code lenses and formatting the VS Code extension has, from the same code the CLI runs.
|
Package lsp is apic's language server: `apic lsp` speaks the Language Server Protocol over stdio, so any editor with an LSP client gets the diagnostics, completion, hover, code lenses and formatting the VS Code extension has, from the same code the CLI runs. |
|
Package mcp exposes a project's requests to AI agents over the Model Context Protocol (stdio, or streamable HTTP behind a token), 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, or streamable HTTP behind a token), 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 postman turns a Postman collection (v2.1, or v2.0 where the shapes coincide) and its environments into .http files and env files: folders become files, requests become named requests, variables become http-client.env.json, and the trivial forms of pm.test scripts become `# @assert` and `# @capture` lines.
|
Package postman turns a Postman collection (v2.1, or v2.0 where the shapes coincide) and its environments into .http files and env files: folders become files, requests become named requests, variables become http-client.env.json, and the trivial forms of pm.test scripts become `# @assert` and `# @capture` lines. |
|
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 report renders a self-contained HTML report of an `apic run` or an `apic test`: one file, inline CSS, no JavaScript needed to read it, light and dark through prefers-color-scheme.
|
Package report renders a self-contained HTML report of an `apic run` or an `apic test`: one file, inline CSS, no JavaScript needed to read it, light and dark through prefers-color-scheme. |
|
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 snippet renders a resolved request as code that sends the same thing without apic: a curl command, an HTTPie command, PowerShell's Invoke-RestMethod, Python requests, JavaScript fetch or Go net/http.
|
Package snippet renders a resolved request as code that sends the same thing without apic: a curl command, an HTTPie command, PowerShell's Invoke-RestMethod, Python requests, JavaScript fetch or Go net/http. |
|
Package suggest ranks the names a user probably meant when the one they typed matches nothing: request ids, environment names and the like.
|
Package suggest ranks the names a user probably meant when the one they typed matches nothing: request ids, environment names and the like. |
|
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. |
Click to show internal directories.
Click to hide internal directories.