Skip to content

REST API initial#9

Closed
strijar wants to merge 3 commits into
ratspeak:mainfrom
strijar:api
Closed

REST API initial#9
strijar wants to merge 3 commits into
ratspeak:mainfrom
strijar:api

Conversation

@strijar

@strijar strijar commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Embedded REST API server for rnsd-rs.

Activated via --features api during build and the api_listen key in the [reticulum] section of the config, for example:

[reticulum]
api_listen = 127.0.0.1:8080

The server runs inside the rnsd process and accesses the transport directly via transport_tx, bypassing the pickle/HMAC protocol.

Routes

GET /health                     — liveness probe
GET /api/v1/status              — summary: counters + interface list
GET /api/v1/interfaces          — list of interfaces (?filter=…&all=true)
GET /api/v1/interfaces/{id}     — one interface by numeric id
GET /api/v1/paths               — path table (?max_hops=N)
GET /api/v1/links               — number of active links
POST /api/v1/interfaces         — add an interface
PUT /api/v1/interfaces/{id}     — replace the interface configuration
DELETE /api/v1/interfaces/{id}  — delete an interface

@strijar strijar closed this Jul 19, 2026
@strijar
strijar deleted the api branch July 19, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant