Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Update mediator documentation after refactor. And some logs #1027

Merged
merged 1 commit into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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