mirror of
https://github.com/OpenBankProject/API-Explorer-II.git
synced 2026-02-06 10:47:04 +00:00
version is OBPv6.0.0 by default
This commit is contained in:
parent
63bec0dd00
commit
d329a02fe8
@ -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
|
||||
|
||||
@ -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> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user