HTTPBin โ
httpbin is a sample plugin connector that hits httpbin.org โ GET with a query string, POST with a body, and arbitrary status-code echo. No credentials needed. It exists as a minimal, working end-to-end example of the plugin path: copy it as a starting point when building your own connector plugin.
| Source | plugins/connector/httpbin/ |
| Key | httpbin |
| Icon | ๐งช |
| Tier | plugin (sample) โ install with <app> plugin install httpbin |
Ships as a plugin, not compiled into the wick binary:
bash<app> plugin install httpbinSee Connector Plugins for the install flow, and Connector Module for the module contract this sample demonstrates.
Configs โ
| Field | Type | Required | Notes |
|---|---|---|---|
BaseURL | URL | โ | httpbin base URL. Default https://httpbin.org. Point it at a self-hosted httpbin if you have one. |
The default means the connector works with zero setup โ install, enable, run.
Operations โ
| Op | Destructive | Input | What it does |
|---|---|---|---|
get | no | query | GET {base_url}/get?{query} โ returns httpbin's echo of the request. query is an optional raw query string like foo=bar&x=1. |
post | no | body | POST {base_url}/post with a raw body โ returns httpbin's echo. JSON bodies come back parsed under json. |
status | no | code | GET {base_url}/status/{code} โ asks httpbin to return a specific HTTP status code. Returns { requested, status }. |
Together the three exercise GET (with query), POST (with body), and arbitrary status codes โ enough to validate the whole plugin path end to end.
Using it as a template โ
httpbin is the smallest complete connector in the repo, so it's the fastest thing to copy when scaffolding your own:
- One
Configfield with adefault=so the connector needs no setup. - Three ops in one
connector.Catcovering the common HTTP verbs. - Response handling that returns parsed JSON when the body is JSON and the raw string otherwise (
doJSON). - Every request built with
c.Context()so it's cancellable.
Read plugins/connector/httpbin/connector.go alongside the Connector Module guide to see how Meta, Configs, and Operations map onto the module contract.
See also โ
- CRUD CRUD โ the other sample connector (in-tree
cmd/labonly), wrapping the crudcrud.com sandbox. - Connector Module โ module contract,
wick:"..."tag grammar. - Connector Plugins โ install / enable / disable flow.