Skip to content

Commit

Permalink
generate openapi docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Leshiy committed Dec 12, 2023
1 parent c59fdef commit 92f7d7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions catalyst-gateway/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ build-hosted:

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

# generate OpenAPI docs
RUN ./target/$TARGETARCH/release/cat-gateway docs ./target/$TARGETARCH/doc/cat-gateway-api.json

SAVE ARTIFACT target/$TARGETARCH/doc doc
SAVE ARTIFACT target/$TARGETARCH/release/cat-gateway cat-gateway

Expand Down
6 changes: 3 additions & 3 deletions docs/src/api/cat-gateway/openapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ icon: material/server

# OpenAPI docs

[OPEN FILE](./rust-docs/cat-gateway-api.json)

```JSON
{
"name": "Alex",
}
{{ include_file('src/api/cat-gateway/rust-docs/cat-gateway-api.json') }}
```

0 comments on commit 92f7d7b

Please sign in to comment.