Skip to content

Commit 1bf9d2c

Browse files
committed
feat: openapi with swagger ui
closes #188
1 parent 6382ae7 commit 1bf9d2c

File tree

8 files changed

+280
-77
lines changed

8 files changed

+280
-77
lines changed

Cargo.lock

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

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ Expects [configuration via environment](https://molybdenumsoftware.github.io/pr-
3737
Takes no arguments.
3838
Expects [configuration via environment](https://molybdenumsoftware.github.io/pr-tracker/programs/pr_tracker_api_config/struct.Environment.html).
3939

40+
- `/openapi.json`
41+
- `/` redirects to API documentation
42+
4043
## NixOS modules
4144

4245
[Manual](https://molybdenumsoftware.github.io/pr-tracker/nixos-modules)

crates/api/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[dependencies]
22
camino = "*"
33
poem = {features = ["test"], version = "*"}
4+
poem-openapi = {features = ["swagger-ui"], version = "*"}
45
pr-tracker-api-config = {path = "../api-config"}
56
sqlx = {default-features = false, features = ["macros", "migrate"], version = "*"}
67
tokio = "*"

0 commit comments

Comments
 (0)