From cc1428afcdad199a0a3948d86171fc157ce1919e Mon Sep 17 00:00:00 2001
From: Marco Holz <marco.holz@fitko.de>
Date: Thu, 28 Jul 2022 15:27:56 +0000
Subject: [PATCH] Add property to enable allow-try feature for routing api

---
 docs/apis/routing-api.mdx | 2 +-
 src/views/ApiSpec.js      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/apis/routing-api.mdx b/docs/apis/routing-api.mdx
index cb9d5fb7d..5537aad0c 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 '@views/ApiSpec'
 
-<ApiSpec gitlabProjectId={"44"} path={"routing-api"} artifact={"routing-api.yaml"} version={"*"} includePrerelease={true} allowAuthentication={"false"} />
+<ApiSpec gitlabProjectId={"44"} path={"routing-api"} artifact={"routing-api.yaml"} version={"*"} includePrerelease={true} allowAuthentication={"false"} allowTry={true} />
diff --git a/src/views/ApiSpec.js b/src/views/ApiSpec.js
index 35759dc71..cb3acbff3 100644
--- a/src/views/ApiSpec.js
+++ b/src/views/ApiSpec.js
@@ -52,7 +52,7 @@ export default function ApiSpec(props) {
               allow-spec-file-load="false"
               allow-authentication={props.allowAuthentication || "true"}
               info-description-headings-in-navbar="false"
-              allow-try="false"
+              allow-try={props.allowTry || "false"}
               primary-color="#11171a"
               allow-server-selection="false"
               server-url=""
-- 
GitLab