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

Add routing api spec

parent 0fa7c259
No related branches found
No related tags found
1 merge request!35Add routing api spec
......@@ -5,4 +5,4 @@ hide_table_of_contents: true
import ApiSpec from '@site/src/components/ApiSpec'
<ApiSpec artifact={"zustelldienst.yml"} />
<ApiSpec path={"openapi"} artifact={"zustelldienst.yml"} />
---
title: Routing API
hide_table_of_contents: true
---
import ApiSpec from '@site/src/components/ApiSpec'
<ApiSpec path={"routing-api"} artifact={"routing-api.yaml"} />
......@@ -7,7 +7,7 @@ import useAsync from '@site/src/hooks/useAsync'
import getLatestVersion from "@site/src/utils/getLatestVersion";
import DownloadLabel from "./DownloadLabel";
const SCHEMA_BASE_URL = 'https://schema.fitko.de/fit-connect/openapi'
const SCHEMA_BASE_URL = 'https://schema.fitko.de/fit-connect'
const GITLAB_PROJECT_ID = 1
export default function ApiSpec(props) {
......@@ -34,14 +34,14 @@ export default function ApiSpec(props) {
<div>
<p>Die aktuell angezeigte Version der API ist {status === 'success' &&
<code>{latestVersion}</code>} {status === 'success' &&
<DownloadLabel baseURL={SCHEMA_BASE_URL} version={latestVersion} artifact={props.artifact}/>}.
<DownloadLabel baseURL={SCHEMA_BASE_URL} version={latestVersion} path={props.path} artifact={props.artifact}/>}.
Alle vorherigen Versionen <a href={SCHEMA_BASE_URL}>finden sich hier.</a>
</p>
{status === 'success' && latestVersion && <rapi-doc
render-style="view"
layout="column"
spec-url={`${SCHEMA_BASE_URL}/${latestVersion}/${props.artifact}`}
spec-url={`${SCHEMA_BASE_URL}/${props.path}/${latestVersion}/${props.artifact}`}
theme="light"
show-info="false"
show-header="false"
......
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