httpd: Add `/nodes/:nid` and `/nodes/:nid/inventory` endpoints to get info on other nodes
modified radicle-httpd/src/api/error.rs
@@ -46,6 +46,10 @@ pub enum Error {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/api/v1/node.rs
@@ -7,7 +7,8 @@ use hyper::StatusCode;
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -22,6 +23,8 @@ pub fn router(ctx: Context) -> Router {
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -52,6 +55,29 @@ async fn node_handler(State(ctx): State<Context>) -> impl IntoResponse {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|