version is OBPv6.0.0 by default

This commit is contained in:
simonredfern 2025-12-08 16:32:20 +01:00
parent 63bec0dd00
commit d329a02fe8
2 changed files with 4 additions and 3 deletions

View File

@ -93,7 +93,7 @@ onBeforeMount(async () => {
activeKeys.value = Object.keys(groups.value)
sortedKeys.value = activeKeys.value.sort()
await initializeAPICollections()
setTabActive(route.params.id)
setTabActive(route.query.operationid)
let element = document.getElementById("selected-api-version")
if (element !== null) {
const totalRows = Object.values(groups.value).reduce((acc, currentValue) => acc + currentValue.length, 0)
@ -136,7 +136,7 @@ const countApis = () => {
const routeToFirstAPI = () => {
let element
const elements = document.getElementsByClassName('api-router-link')
const id = route.params.id
const id = route.query.operationid
for (const el of elements) {
if (el.id === id) {
element = el

View File

@ -30,8 +30,9 @@ import { DEFAULT_OBP_API_VERSION } from '../../shared-constants'
// Always use v5.1.0 for application infrastructure - stable and debuggable
export const OBP_API_VERSION = DEFAULT_OBP_API_VERSION
// Default to showing v6.0.0 documentation in the UI (can be overridden by env var)
export const OBP_API_DEFAULT_RESOURCE_DOC_VERSION =
import.meta.env.VITE_OBP_API_DEFAULT_RESOURCE_DOC_VERSION ?? `OBP${DEFAULT_OBP_API_VERSION}`
import.meta.env.VITE_OBP_API_DEFAULT_RESOURCE_DOC_VERSION ?? 'OBPv6.0.0'
const default_collection_name = 'Favourites'
export async function serverStatus(): Promise<any> {