[INJIMOB-1666] - use /v1/mimoto for mimoto apis.

Signed-off-by: Swati Goel <meet2swati@gmail.com>
This commit is contained in:
Swati Goel
2024-07-19 12:50:55 +05:30
parent edc496c3b3
commit 45030e30ab
2 changed files with 13 additions and 13 deletions

View File

@@ -101,8 +101,8 @@ export DEBUG_KEYSTORE_PASSWORD=android
export RELEASE_KEYSTORE_ALIAS=androidreleasekey
export RELEASE_KEYSTORE_PASSWORD=<USE-YOUR-RELEASE-PASSWORD-HERE>
# https://hostname/residentmobileapp is the Mimoto service url
export BACKEND_SERVICE_URL=https://hostname/residentmobileapp
# https://hostname/mimoto is the Mimoto service url
export BACKEND_SERVICE_URL=https://hostname/v1/mimoto
# Build for MOSIP test
npm run build:android:mosip

View File

@@ -20,12 +20,12 @@ import {TelemetryConstants} from './telemetry/TelemetryConstants';
export const API_URLS: ApiUrls = {
issuersList: {
method: 'GET',
buildURL: (): `/${string}` => '/residentmobileapp/issuers',
buildURL: (): `/${string}` => '/v1/mimoto/issuers',
},
issuerConfig: {
method: 'GET',
buildURL: (issuerId: string): `/${string}` =>
`/residentmobileapp/issuers/${issuerId}`,
`/v1/mimoto/issuers/${issuerId}`,
},
issuerWellknownConfig: {
method: 'GET',
@@ -33,40 +33,40 @@ export const API_URLS: ApiUrls = {
},
allProperties: {
method: 'GET',
buildURL: (): `/${string}` => '/residentmobileapp/allProperties',
buildURL: (): `/${string}` => '/v1/mimoto/allProperties',
},
getIndividualId: {
method: 'POST',
buildURL: (): `/${string}` => '/residentmobileapp/aid/get-individual-id',
buildURL: (): `/${string}` => '/v1/mimoto/aid/get-individual-id',
},
reqIndividualOTP: {
method: 'POST',
buildURL: (): `/${string}` => '/residentmobileapp/req/individualId/otp',
buildURL: (): `/${string}` => '/v1/mimoto/req/individualId/otp',
},
walletBinding: {
method: 'POST',
buildURL: (): `/${string}` => '/residentmobileapp/wallet-binding',
buildURL: (): `/${string}` => '/v1/mimoto/wallet-binding',
},
bindingOtp: {
method: 'POST',
buildURL: (): `/${string}` => '/residentmobileapp/binding-otp',
buildURL: (): `/${string}` => '/v1/mimoto/binding-otp',
},
requestOtp: {
method: 'POST',
buildURL: (): `/${string}` => '/residentmobileapp/req/otp',
buildURL: (): `/${string}` => '/v1/mimoto/req/otp',
},
credentialRequest: {
method: 'POST',
buildURL: (): `/${string}` => '/residentmobileapp/credentialshare/request',
buildURL: (): `/${string}` => '/v1/mimoto/credentialshare/request',
},
credentialStatus: {
method: 'GET',
buildURL: (id: string): `/${string}` =>
`/residentmobileapp/credentialshare/request/status/${id}`,
`/v1/mimoto/credentialshare/request/status/${id}`,
},
credentialDownload: {
method: 'POST',
buildURL: (): `/${string}` => '/residentmobileapp/credentialshare/download',
buildURL: (): `/${string}` => '/v1/mimoto/credentialshare/download',
},
linkTransaction: {
method: 'POST',