Skip to content
Snippets Groups Projects
Commit a154723c authored by Marco Holz's avatar Marco Holz
Browse files

fix: gitlab project IDs

Set different gitlab project IDs for submission api and routing api
parent c5f9ab89
No related branches found
No related tags found
1 merge request!35Add routing api spec
...@@ -5,4 +5,4 @@ hide_table_of_contents: true ...@@ -5,4 +5,4 @@ hide_table_of_contents: true
import ApiSpec from '@site/src/components/ApiSpec' import ApiSpec from '@site/src/components/ApiSpec'
<ApiSpec path={"openapi"} artifact={"zustelldienst.yml"} /> <ApiSpec gitlabProjectId={"1"} path={"openapi"} artifact={"zustelldienst.yml"} />
...@@ -5,4 +5,4 @@ hide_table_of_contents: true ...@@ -5,4 +5,4 @@ hide_table_of_contents: true
import ApiSpec from '@site/src/components/ApiSpec' 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"} />
...@@ -8,7 +8,6 @@ import getLatestVersion from "@site/src/utils/getLatestVersion"; ...@@ -8,7 +8,6 @@ import getLatestVersion from "@site/src/utils/getLatestVersion";
import DownloadLabel from "./DownloadLabel"; import DownloadLabel from "./DownloadLabel";
const SCHEMA_BASE_URL = 'https://schema.fitko.de/fit-connect' const SCHEMA_BASE_URL = 'https://schema.fitko.de/fit-connect'
const GITLAB_PROJECT_ID = 1
export default function ApiSpec(props) { export default function ApiSpec(props) {
const isInBrowser = ExecutionEnvironment.canUseDOM const isInBrowser = ExecutionEnvironment.canUseDOM
...@@ -16,7 +15,7 @@ export default function ApiSpec(props) { ...@@ -16,7 +15,7 @@ export default function ApiSpec(props) {
const {execute, status, error, value: latestVersion} = useAsync(getLatestVersion, { const {execute, status, error, value: latestVersion} = useAsync(getLatestVersion, {
siteVersion, siteVersion,
projectId: GITLAB_PROJECT_ID projectId: props.gitlabProjectId
}, false) }, false)
if (isInBrowser) { if (isInBrowser) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment