Skip to content

Commit ca5c02d

Browse files
authored
29230 calls to namex go through api gw (#839)
* 29230 calls to namex go through api gw * bump version
1 parent e557cda commit ca5c02d

5 files changed

Lines changed: 7 additions & 4 deletions

File tree

app/.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ VUE_APP_LEGAL_API_VERSION_2="/api/v2"
2222
VUE_APP_BUSINESS_API_GW_URL="https://test.api.connect.gov.bc.ca/business-dev"
2323
VUE_APP_BUSINESS_API_VERSION_2="/api/v2"
2424
VUE_APP_BUSINESS_API_KEY=""
25-
VUE_APP_NAMEX_API_URL="https://namex-api-dev-475224072965.northamerica-northeast1.run.app"
25+
VUE_APP_NAMEX_API_GW_URL="https://test.api.connect.gov.bc.ca/namex-dev"
2626
VUE_APP_NAMEX_API_VERSION="/api/v1"
27+
VUE_APP_NAMEX_API_KEY=
2728
VUE_APP_STATUS_API_URL="https://status-api-dev.apps.gold.devops.gov.bc.ca"
2829
VUE_APP_STATUS_API_VERSION="/api/v1"
2930
VUE_APP_REGISTRIES_SEARCH_API_URL="https://bcregistry-dev.apigee.net/registry-search"

app/devops/vaults.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ VUE_APP_LEGAL_API_VERSION_2="op://API/$APP_ENV/legal-api/LEGAL_API_VERSION_2"
2323
VUE_APP_BUSINESS_API_GW_URL="op://API/$APP_ENV/business-api/BUSINESS_API_GW_URL"
2424
VUE_APP_BUSINESS_API_VERSION_2="op://API/$APP_ENV/business-api/BUSINESS_API_VERSION_2"
2525
VUE_APP_BUSINESS_API_KEY="op://API/$APP_ENV/business-api/BUSINESS_API_KEY"
26-
VUE_APP_NAMEX_API_URL="op://API/$APP_ENV/namex-api/NAMEX_API_URL"
26+
VUE_APP_NAMEX_API_GW_URL="op://API/$APP_ENV/namex-api/NAMEX_API_GW_URL"
2727
VUE_APP_NAMEX_API_VERSION="op://API/$APP_ENV/namex-api/NAMEX_API_VERSION"
28+
VUE_APP_NAMEX_API_KEY="op://API/$APP_ENV/namex-api/NAMEX_API_KEY"
2829
VUE_APP_STATUS_API_URL="op://API/$APP_ENV/status-api/STATUS_API_URL"
2930
VUE_APP_STATUS_API_VERSION="op://API/$APP_ENV/status-api/STATUS_API_VERSION"
3031
VUE_APP_REGISTRIES_SEARCH_API_URL="op://API/$APP_ENV/registries-search-api/REGISTRIES_SEARCH_API_URL"

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "name-request",
3-
"version": "5.5.43",
3+
"version": "5.5.44",
44
"private": true,
55
"appName": "Name Request UI",
66
"sbcName": "SBC Common Components",

app/src/router/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import VueRouter from 'vue-router'
33
import { routes } from './routes'
44

55
/** Global variable to store the custom base URL. */
6-
const appBaseURL: string = process.env.VUE_APP_NAMEX_API_URL + process.env.VUE_APP_NAMEX_API_VERSION
6+
const appBaseURL: string = process.env.VUE_APP_NAMEX_API_GW_URL + process.env.VUE_APP_NAMEX_API_VERSION
77

88
/** Configures and returns Vue Router. */
99
export function getVueRouter () {

app/src/services/namex-services.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ axiosNamex.interceptors.request.use(
2828
config.headers.common['BCREG-User-Phone'] = sessionStorage.getItem('BCREG-phoneNumber')
2929
config.headers.common['BCREG-User-Email'] = sessionStorage.getItem('BCREG-emailAddress')
3030
config.headers.common['App-Name'] = pkg.name
31+
config.headers.common['X-Apikey'] = process.env.VUE_APP_NAMEX_API_KEY || ''
3132
// eslint-disable-next-line no-console
3233
// console.log('in interceptor, common headers: ', config?.headers?.common)
3334
return config

0 commit comments

Comments
 (0)