aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/api.md3
-rw-r--r--docs/architecture.md2
-rw-r--r--docs/development.md5
3 files changed, 8 insertions, 2 deletions
diff --git a/docs/api.md b/docs/api.md
index 957030f..75442b3 100644
--- a/docs/api.md
+++ b/docs/api.md
@@ -2,7 +2,8 @@
What an application can rely on when it reads and writes through a node's HTTP API. The
endpoints and their answers, one by one, are in [`openapi.yaml`](openapi.yaml) (served by every node at
-`/openapi.yaml`, with a Swagger UI at `/swagger-ui`); this page is about what they mean
+`/openapi.yaml`, and shown by a Swagger UI at `/swagger-ui` where a node is built with the
+feature `swagger-ui`); this page is about what they mean
together.
## The model
diff --git a/docs/architecture.md b/docs/architecture.md
index 124fcf5..00db38a 100644
--- a/docs/architecture.md
+++ b/docs/architecture.md
@@ -163,7 +163,7 @@ Prometheus), `document` (backup export), `log` (filter at runtime), `config`
Argon2), [`dashboard/`](../src/api/dashboard/) (with the `dashboard` feature: the page and its events;
[`dashboard.md`](dashboard.md)), and [`mod.rs`](../src/api/mod.rs) (router, protocol-path rules). The remake routes
come from [`remake/api.rs`](../src/remake/api.rs). [`docs/openapi.yaml`](openapi.yaml) describes it all; nodes serve it at
-`/openapi.yaml`, with a Swagger UI at `/swagger-ui`.
+`/openapi.yaml`, with a Swagger UI at `/swagger-ui` where built with the feature `swagger-ui`.
**Top level** — continuum is a library: its `run` ([`lib.rs`](../src/lib.rs)), which the node's
binary ([`main.rs`](../src/main.rs)) calls, reads the configuration, picks the starting document and
diff --git a/docs/development.md b/docs/development.md
index 7a8f7e6..b782511 100644
--- a/docs/development.md
+++ b/docs/development.md
@@ -22,6 +22,11 @@ and dependencies with it (`--features libp2p` builds neither `reqwest` and the d
supervision of Mycelium, nor arti; among Mycelium's tests is a swarm simulated on its
envelope).
+The Swagger UI (`/swagger-ui`) is a feature too, `swagger-ui`, and not among `most`: its
+files, some megabytes, are built into the node, and its build fetches them from GitHub
+(`SWAGGER_UI_DOWNLOAD_URL` names another place, a `file://` URL among them). A node
+without it serves the API's description alone (`/openapi.yaml`).
+
The benchmarks are ignored tests named `bench_*`: the document's (writes and sync
messages, what signing and checking every change would cost: `bench_change_signatures`,
knowing every change's paths: `bench_change_paths`, and judging every change while