Runar Gateway
HTTP gateway for Runar nodes using axum. Exposes registered service actions
as REST endpoints and forwards requests to the local node.
Install
[]
= "0.1"
Features
- Maps
/{service-path}/{action}to the corresponding service action - JSON request/response bridging with
ArcValue - CORS and tracing via
tower-http
Service example (abridged)
use Result;
use ;
use ;
;
Routes (examples)
- GET
/echo-service/ping→"pong" - POST
/echo-service/echowith{ "message": "hello" }→"hello" - POST
/echo-service/echo_structwithMyTestData→ echo back struct
MSRV
Rust 1.70.0
License
MIT. See LICENSE.