Skip to content

Commit 9ad4cdd

Browse files
committed
Add API documentation using scalar
1 parent bf30c57 commit 9ad4cdd

File tree

8 files changed

+795
-3
lines changed

8 files changed

+795
-3
lines changed

echo/Cargo.lock

Lines changed: 339 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

echo/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ reqwest = { version = "0.12.8", default-features = false, features = ["json", "n
1515
rocket = { version = "0.5.1", features = ["json"] }
1616
rocket-validation = "0.2.0"
1717
rocket_db_pools = { version = "0.2.0", features = ["sqlx_postgres"] }
18+
scalar-doc = "0.1.0"
1819
serde = "1.0.210"
1920
sqlx = { version = "0.7.4", features = ["chrono"] }
2021
tokio = "1.40.0"

echo/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ RUN --mount=type=cache,target=target \
1818
--mount=type=cache,target=/usr/local/cargo/registry \
1919
--mount=type=bind,source=Cargo.toml,target=Cargo.toml,readwrite \
2020
--mount=type=bind,source=Cargo.lock,target=Cargo.lock,readwrite \
21+
--mount=type=bind,source=openapi.json,target=openapi.json,readwrite \
2122
# Use musl target as the binary is about 1MiB smaller
2223
cargo build --profile $PROFILE --target x86_64-unknown-linux-musl && \
2324
# The "dev" target directory is named "debug" instead

0 commit comments

Comments
 (0)