diff --git a/docs/apis/delivery-service.mdx b/docs/apis/delivery-service.mdx index f14358922bff0f8a9e827bc004531c224063715f..5335ab2d6c4b760d0d6da21c8b56b8eba6e551b3 100644 --- a/docs/apis/delivery-service.mdx +++ b/docs/apis/delivery-service.mdx @@ -5,4 +5,4 @@ hide_table_of_contents: true import ApiSpec from '@site/src/components/ApiSpec' -<ApiSpec path={"openapi"} artifact={"zustelldienst.yml"} /> +<ApiSpec gitlabProjectId={"1"} path={"openapi"} artifact={"zustelldienst.yml"} /> diff --git a/docs/apis/routing-api.mdx b/docs/apis/routing-api.mdx index 3775ee4c0648f31f3a0e820eaaef4cf84d098610..c41155d5d39869b260f6f1f327c1ed591ce94b23 100644 --- a/docs/apis/routing-api.mdx +++ b/docs/apis/routing-api.mdx @@ -5,4 +5,4 @@ hide_table_of_contents: true import ApiSpec from '@site/src/components/ApiSpec' -<ApiSpec path={"routing-api"} artifact={"routing-api.yaml"} /> +<ApiSpec gitlabProjectId={"44"} path={"routing-api"} artifact={"routing-api.yaml"} /> diff --git a/src/components/ApiSpec.js b/src/components/ApiSpec.js index 9df7278dcd77cb5fcd02853804f4cd015323a101..322fc187ebd8c8f08275082841b11d95e815c606 100644 --- a/src/components/ApiSpec.js +++ b/src/components/ApiSpec.js @@ -8,7 +8,6 @@ import getLatestVersion from "@site/src/utils/getLatestVersion"; import DownloadLabel from "./DownloadLabel"; const SCHEMA_BASE_URL = 'https://schema.fitko.de/fit-connect' -const GITLAB_PROJECT_ID = 1 export default function ApiSpec(props) { const isInBrowser = ExecutionEnvironment.canUseDOM @@ -16,7 +15,7 @@ export default function ApiSpec(props) { const {execute, status, error, value: latestVersion} = useAsync(getLatestVersion, { siteVersion, - projectId: GITLAB_PROJECT_ID + projectId: props.gitlabProjectId }, false) if (isInBrowser) {