Skip to content

Commit 92f7d7b

Browse files
committed
generate openapi docs
1 parent c59fdef commit 92f7d7b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

catalyst-gateway/Earthfile

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ build-hosted:
3131

3232
DO github.com/input-output-hk/catalyst-ci/earthly/rust:v2.0.11+SMOKE_TEST --bin="cat-gateway"
3333

34+
# generate OpenAPI docs
35+
RUN ./target/$TARGETARCH/release/cat-gateway docs ./target/$TARGETARCH/doc/cat-gateway-api.json
36+
3437
SAVE ARTIFACT target/$TARGETARCH/doc doc
3538
SAVE ARTIFACT target/$TARGETARCH/release/cat-gateway cat-gateway
3639

docs/src/api/cat-gateway/openapi.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ icon: material/server
44

55
# OpenAPI docs
66

7+
[OPEN FILE](./rust-docs/cat-gateway-api.json)
8+
79
```JSON
8-
{
9-
"name": "Alex",
10-
}
10+
{{ include_file('src/api/cat-gateway/rust-docs/cat-gateway-api.json') }}
1111
```

0 commit comments

Comments
 (0)