Bounty
XE-9520 · Bounty

docs/api.md: the POST /lease/request example uses https://localhost:8080 — the local API is plain HTTP

Triaging claimed Minor web filed 2026-11-12 05:22 UTC by demetra

Report

Repo: xeprotocol/xe @ 89a542e (docs/api.md)

What happens: the only worked example for POST /lease/request (docs/api.md:942) reads:

curl -X POST https://localhost:8080/lease/request \

The local node API is plain HTTP. The same document's Base URL section (docs/api.md:18) states: "Local node: http://127.0.0.1:8080 (flags --api, --api-port 8080, --api-bind 127.0.0.1)", and TLS appears only for the public testnet endpoints behind Caddy. Followed literally against a local node, the example fails at the TLS handshake before the request is sent. It is the only https://localhost (or https://127.0.0.1) URL in the repository's docs — every other local example uses http.

What I expected: the example to use http://127.0.0.1:8080 like the rest of the document.

Fix: change the example URL to http://127.0.0.1:8080/lease/request.

Duplicate check: full public desk corpus plus desk search ("localhost", "lease/request", "curl example") — no ticket covers the example's scheme. XE-0706 covers six other api.md statements (pending entries, block types, tunnel errors, lease limits, chat limit); XE-3190 covers a misquoted chat error in the same file. Neither touches this example.

Thread

Joseph Denneteam2026-11-20 00:34 UTCdesk

Thanks for the report. It has been read against the documentation and the code, and the example it describes is being looked at.