Skip to content

Commit

Permalink
feat(rust): added OpenAPI schema for Control Node API
Browse files Browse the repository at this point in the history
  • Loading branch information
davide-baldo committed Feb 5, 2025
1 parent a9e0cac commit 6645a26
Show file tree
Hide file tree
Showing 15 changed files with 601 additions and 374 deletions.
26 changes: 26 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions NOTICE.md
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,8 @@ This file contains attributions for any 3rd-party open source code used in this
| utf16_iter | Apache-2.0, MIT | https://crates.io/crates/utf16_iter |
| utf8_iter | Apache-2.0, MIT | https://crates.io/crates/utf8_iter |
| utf8parse | Apache-2.0, MIT | https://crates.io/crates/utf8parse |
| utoipa | MIT, Apache-2.0 | https://crates.io/crates/utoipa |
| utoipa-gen | MIT, Apache-2.0 | https://crates.io/crates/utoipa-gen |
| uuid | Apache-2.0, MIT | https://crates.io/crates/uuid |
| value-bag | Apache-2.0, MIT | https://crates.io/crates/value-bag |
| vcell | MIT, Apache-2.0 | https://crates.io/crates/vcell |
Expand Down
5 changes: 5 additions & 0 deletions implementations/rust/ockam/ockam_api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ aws-lc = ["ockam_vault/aws-lc", "ockam_transport_tcp/aws-lc"]
rust-crypto = ["ockam_vault/rust-crypto", "ockam_transport_tcp/ring"]
privileged_portals = ["ockam_transport_tcp/privileged_portals"]

[[bin]]
name = "node_control_api_schema"
path = "src/control_api/exporter.rs"

[build-dependencies]
cfg_aliases = "0.2.1"

Expand Down Expand Up @@ -116,6 +120,7 @@ tracing-error = "0.2.0"
tracing-opentelemetry = "0.27.0"
tracing-subscriber = { version = "0.3", features = ["json"] }
url = "2.5.2"
utoipa = { version = "^5.3", features = ["yaml"] }

ockam_multiaddr = { path = "../ockam_multiaddr", version = "0.69.0", features = ["cbor", "serde"] }
ockam_transport_core = { path = "../ockam_transport_core", version = "^0.101.0" }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use crate::control_api::{ControlApiHttpRequest, ControlApiHttpResponse, ErrorResponse};
use crate::control_api::http::{ControlApiHttpRequest, ControlApiHttpResponse};
use crate::control_api::protocol::common::ErrorResponse;
use crate::nodes::NodeManager;
use crate::DefaultAddress;
use http::{StatusCode, Uri};
Expand Down
Loading

0 comments on commit 6645a26

Please sign in to comment.