Add environment for configuration
MODIFY
src/app/api-data.service.ts
src/app/api-data.service.ts
import { Injectable } from '@angular/core';
import {HttpClient, HttpHeaders} from '@angular/common/http';
import {Observable} from 'rxjs';
+import { environment } from '../environments/environment';
export interface ApiSearchData {
beans: Array<ApiDetails>;
@@ -147,7 +148,7 @@ export class ApiDataService {
constructor(private http: HttpClient) { }
- private gatewayEndpoint = 'https://pc0854.scheer.systems:8443/apiman';
+ private gatewayEndpoint = environment.apimanUiEndpoint;
public getAllApis(): Observable<ApiSearchData> {
const url = this.gatewayEndpoint + '/search/apis/';

MODIFY
src/app/app-init.ts
src/app/app-init.ts
+import { environment } from '../environments/environment';
import { KeycloakService } from 'keycloak-angular';
export function initializer(keycloak: KeycloakService): () => Promise<any> {
return (): Promise<any> => keycloak.init({
config: {
- url: 'https://pc0854.scheer.systems:8445/auth',
+ url: environment.keycloakAuthEndpoint,
realm: 'Apiman',
clientId: 'apimandevportal'
},

MODIFY
src/environments/environment.prod.ts
src/environments/environment.prod.ts
export const environment = {
- production: true
+ production: true,
+ apimanUiEndpoint: 'https://pc0854.scheer.systems:8443/apiman',
+ keycloakAuthEndpoint: 'https://pc0854.scheer.systems:8445/auth'
};

MODIFY
src/environments/environment.ts
src/environments/environment.ts
// The list of file replacements can be found in `angular.json`.
export const environment = {
- production: false
+ production: false,
+ apimanUiEndpoint: 'https://pc0854.scheer.systems:8443/apiman',
+ keycloakAuthEndpoint: 'https://pc0854.scheer.systems:8445/auth'
};
/*

Add environment for configuration