*: replace swagger with openapi

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-05-16 14:13:07 +02:00
parent 0bac738090
commit cac1f242dc
12 changed files with 15 additions and 16 deletions

View File

@ -44,7 +44,7 @@ If you want to generate the client without installing anything, run this command
docker run \
--rm -v $(pwd):/local \
openapitools/openapi-generator-cli generate \
-i /local/swagger.yaml \
-i /local/schema.yml \
-g typescript-fetch \
-o /local/web/api \
--additional-properties=typescriptThreePlus=true,supportsES6=true,npmName=authentik-api,npmVersion=1.0.0

View File

@ -10,7 +10,7 @@ function APIBrowser() {
return (
<Layout title="API Browser" description={siteConfig.tagline}>
<rapi-doc
spec-url={useBaseUrl("swagger.yaml")}
spec-url={useBaseUrl("schema.yml")}
allow-try="false"
show-header="false"
theme="dark"

1
website/static/schema.yaml Symbolic link
View File

@ -0,0 +1 @@
../../schema.yml