Skip to content

Commit bb8e381

Browse files
authored
Merge branch 'OpenBankProject:develop' into develop
2 parents 43804a0 + 4e37ba4 commit bb8e381

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.env.example

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ VITE_OBP_API_PORTAL_HOST=https://apisandbox.openbankproject.com
88
####################################################################################
99

1010
VITE_OBP_API_VERSION=v5.1.0
11+
#The default version of the root page, it has the default value `OBP+VITE_OBP_API_VERSION`
12+
#The format must follow standard+Version, e.g., OBPv5.1.0, BGv1, or BGv1.3.
13+
#VITE_OBP_API_DEFAULT_RESOURCE_DOC_VERSION=OBPv5.1.0
1114
VITE_OBP_API_MANAGER_HOST=https://apimanagersandbox.openbankproject.com
1215
VITE_OBP_API_EXPLORER_HOST=http://localhost:5173
1316
VITE_OBP_CONSUMER_KEY=your_consumer_key

src/components/SearchNav.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { obpResourceDocsKey } from '@/obp/keys'
3030
import { Search } from '@element-plus/icons-vue'
3131
import { inject, onBeforeMount, onMounted, reactive, ref, watch } from 'vue'
3232
import { useRoute } from 'vue-router'
33-
import { OBP_API_VERSION, getMyAPICollections, getMyAPICollectionsEndpoint } from '../obp'
33+
import { OBP_API_DEFAULT_RESOURCE_DOC_VERSION, getMyAPICollections, getMyAPICollectionsEndpoint } from '../obp'
3434
import { getGroupedResourceDocs, getFilteredGroupedResourceDocs } from '../obp/resource-docs'
3535
import { SEARCH_LINKS_COLOR as searchLinksColorSetting } from '../obp/style-setting'
3636
const operationIdTitle = {}
@@ -80,7 +80,7 @@ export const initializeAPICollections = async () => {
8080

8181
<script setup lang="ts">
8282
const route = useRoute()
83-
let selectedVersion = route.query.version ? route.query.version : `OBP${OBP_API_VERSION}`
83+
let selectedVersion = route.query.version ? route.query.version : `${OBP_API_DEFAULT_RESOURCE_DOC_VERSION}`
8484
let selectedTags = route.query.tags ? route.query.tags : 'NONE'
8585
onBeforeMount(async () => {
8686
resourceDocs.value = inject(obpResourceDocsKey)!

src/obp/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
import superagent from 'superagent'
2929

3030
export const OBP_API_VERSION = import.meta.env.VITE_OBP_API_VERSION
31+
export const OBP_API_DEFAULT_RESOURCE_DOC_VERSION =
32+
(import.meta.env.VITE_OBP_API_DEFAULT_RESOURCE_DOC_VERSION ?? `OBP${OBP_API_VERSION}`)
3133
const default_collection_name = 'Favourites'
3234

3335
export async function serverStatus(): Promise<any> {

0 commit comments

Comments
 (0)