Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/cargo/agents/rust/mediator/mediat…
Browse files Browse the repository at this point in the history
…ion/rustix-0.38.20

Signed-off-by: Patrik <[email protected]>
  • Loading branch information
Patrik-Stas authored Oct 26, 2023
2 parents 325c458 + 996f115 commit cecb0cb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
13 changes: 2 additions & 11 deletions agents/rust/mediator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ cargo run --bin mediator

```bash
# For testing / demo purposes
cargo run --bin client-tui
cargo run --package client-tui

# To also see panic and debug info produced by tui
cargo run --bin client-tui 2> err || cat err
cargo run --package client-tui 2> err || cat err
```

### Configurable Options
Expand Down Expand Up @@ -69,12 +69,3 @@ Currently exposed endpoints.
Endpoint for Aries DIDCOMM communication.
Encrypted Aries messages (envelops) can be passed and received from this endpoint in json serialized format.
```
### Client API
```yaml
`/client/register-using-oob`:
- **Input**: Json body containing OOB invite to connect to.
- **Description** : Attempts to connect to the Aries service defined in the OOB invite using DIDCOMM channel.

```
9 changes: 9 additions & 0 deletions agents/rust/mediator/client-webapi/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

### Client API

```yaml
`/client/register-using-oob`:
- **Input**: Json body containing OOB invite to connect to.
- **Description** : Attempts to connect to the Aries service defined in the OOB invite using DIDCOMM channel.

```
3 changes: 2 additions & 1 deletion agents/rust/mediator/src/bin/mediator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ use mediator::aries_agent::AgentBuilder;

#[tokio::main]
async fn main() {
info!("Starting up mediator! ⚙️⚙️");
load_dot_env();
setup_logging();
info!("Starting up mediator! ⚙️⚙️");
let endpoint_root = std::env::var("ENDPOINT_ROOT").unwrap_or("127.0.0.1:8005".into());
info!("Mediator endpoint root address {}", endpoint_root);
let mut agent = AgentBuilder::new_demo_agent().await.unwrap();
Expand All @@ -17,6 +17,7 @@ async fn main() {
.await
.unwrap();
let app_router = mediator::http_routes::build_router(agent).await;
info!("Starting server");
axum::Server::bind(
&endpoint_root
.parse()
Expand Down

0 comments on commit cecb0cb

Please sign in to comment.