Common API Url changes : ps

This commit is contained in:
venbatechnologies@gmail.com 2018-11-03 10:39:50 +05:30
parent 229bebcb57
commit 6cd21da12c
12 changed files with 47 additions and 32 deletions

View File

@ -51,7 +51,8 @@ const sineedgeIdentity = "ap-south-1:9a551eab-97cf-4991-b677-2f9bcd058961";//"ap
const lenderIdentity = "ap-south-1:ca22dabc-db59-4af5-9bb8-265f7ec95907"; const lenderIdentity = "ap-south-1:ca22dabc-db59-4af5-9bb8-265f7ec95907";
const vendorIdenttiy = "ap-south-1:5ad3ce43-4260-4273-87b2-e6a377b8e874"; const vendorIdenttiy = "ap-south-1:5ad3ce43-4260-4273-87b2-e6a377b8e874";
// serviceProvider // serviceProvider
const apiurl = "http://ssa.sineedge.com/sparqapi/api/"; const apiurl = environment.apiEndpoint;
//const apiurl = "http://ssa.sineedge.com/sparqapi/api/";
//const apiurl = "http://localhost/sparqapi/api/"; //const apiurl = "http://localhost/sparqapi/api/";
@Injectable({ @Injectable({

View File

@ -40,7 +40,8 @@ const sineedgeIdentity = "ap-south-1:9a551eab-97cf-4991-b677-2f9bcd058961";//"ap
const lenderIdentity = "ap-south-1:ca22dabc-db59-4af5-9bb8-265f7ec95907"; const lenderIdentity = "ap-south-1:ca22dabc-db59-4af5-9bb8-265f7ec95907";
const vendorIdenttiy = ""; const vendorIdenttiy = "";
// serviceProvider // serviceProvider
const apiurl = "http://ssa.sineedge.com/sparqapi/api/"; //const apiurl = "http://ssa.sineedge.com/sparqapi/api/";
const apiurl = environment.apiEndpoint;
// const apiurl = "http://localhost/sparqapi/api/"; // const apiurl = "http://localhost/sparqapi/api/";
export interface Callback { export interface Callback {

View File

@ -8,6 +8,9 @@ import { of } from 'rxjs';
/** Imported Service Files Are., */ /** Imported Service Files Are., */
import { AwsService } from '../../AwsService/aws.service'; import { AwsService } from '../../AwsService/aws.service';
/** Environment */
import { environment } from 'environments/environment'
const currentdate = new Date().toJSON().slice(0,19).replace('T',' '); const currentdate = new Date().toJSON().slice(0,19).replace('T',' ');
/** Master Interface */ /** Master Interface */
export interface Master { export interface Master {
@ -22,7 +25,8 @@ export class PdTrigerService {
//private apiUrl = "http://ssa.sineedge.com/sparqapi/api/"; //private apiUrl = "http://ssa.sineedge.com/sparqapi/api/";
//private apiUrl = "http://192.168.0.5:9999/AWSEC2/sparqapi/api/"; //private apiUrl = "http://192.168.0.5:9999/AWSEC2/sparqapi/api/";
private apiUrl = "http://ssa.sineedge.com/sparqapi/api/"; //private apiUrl = "http://ssa.sineedge.com/sparqapi/api/";
private apiUrl = environment.apiEndpoint;
MAP_API_KEY: string; MAP_API_KEY: string;
MAP_API_URL: string; MAP_API_URL: string;
constructor(private _http: HttpClient, constructor(private _http: HttpClient,

View File

@ -8,6 +8,9 @@ import { of } from 'rxjs';
/** Imported Service Files Are., */ /** Imported Service Files Are., */
import { AwsService } from '../../AwsService/aws.service'; import { AwsService } from '../../AwsService/aws.service';
/** Environment */
import { environment } from 'environments/environment';
const currentdate = new Date().toJSON().slice(0,19).replace('T',' '); const currentdate = new Date().toJSON().slice(0,19).replace('T',' ');
/** Master Interface */ /** Master Interface */
export interface Master { export interface Master {
@ -26,7 +29,9 @@ export class QcService {
//private apiUrl = "http://ssa.sineedge.com/sparqapi/api/"; //private apiUrl = "http://ssa.sineedge.com/sparqapi/api/";
//private apiUrl = "http://192.168.0.5:9999/AWSEC2/sparqapi/api/"; //private apiUrl = "http://192.168.0.5:9999/AWSEC2/sparqapi/api/";
private apiUrl = "http://ssa.sineedge.com/sparqapi/api/"; //private apiUrl = "http://ssa.sineedge.com/sparqapi/api/";
private apiUrl = environment.apiEndpoint;
MAP_API_KEY: string; MAP_API_KEY: string;
MAP_API_URL: string; MAP_API_URL: string;
constructor(private _http: HttpClient, constructor(private _http: HttpClient,

View File

@ -7,8 +7,9 @@ import { of } from 'rxjs';
/** Imported Service Files Are., */ /** Imported Service Files Are., */
import { AwsService } from '../../../AwsService/aws.service'; import { AwsService } from '../../../AwsService/aws.service';
//import { environment } from 'environments/environment';
/** Environment */
import { environment } from 'environments/environment';
/** Consant Value For Created Date And Updated Date */ /** Consant Value For Created Date And Updated Date */
const currentdate = new Date().toJSON().slice(0,19).replace('T',' '); const currentdate = new Date().toJSON().slice(0,19).replace('T',' ');
@ -25,7 +26,8 @@ export interface Master {
export class MastersService { export class MastersService {
private apiUrl = "http://ssa.sineedge.com/sparqapi/api/"; // private apiUrl = "http://ssa.sineedge.com/sparqapi/api/";
private apiUrl = environment.apiEndpoint;
constructor(private _http: HttpClient, constructor(private _http: HttpClient,

View File

@ -11,21 +11,18 @@ import { AwsService } from '../../../AwsService/aws.service';
/** Consant Value For Created Date And Updated Date */ /** Consant Value For Created Date And Updated Date */
const currentdate = new Date().toJSON().slice(0,19).replace('T',' '); const currentdate = new Date().toJSON().slice(0,19).replace('T',' ');
/** Master Interface */ /** Environment */
export interface Master { import { environment } from 'environments/environment';
master_id:number;
master_name:string;
constant_name:string;
}
@Injectable() @Injectable()
export class PdTeamService { export class PdTeamService {
private apiUrl = "http://ssa.sineedge.com/sparqapi/api/"; // private apiUrl = "http://ssa.sineedge.com/sparqapi/api/";
// private apiUrl = "http://192.168.0.21:9999/AWSEC2/sparqapi/api/"; // private apiUrl = "http://192.168.0.21:9999/AWSEC2/sparqapi/api/";
pk: { "primary_key": any; }; private apiUrl = environment.apiEndpoint;
pk: { "primary_key": any; };
constructor(private _http: HttpClient, constructor(private _http: HttpClient,

View File

@ -3,8 +3,9 @@ import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs/internal/Observable'; import { Observable } from 'rxjs/internal/Observable';
import { AwsService } from '../../AwsService/aws.service'; import { AwsService } from '../../AwsService/aws.service';
import { environment } from 'environments/environment'; import { environment } from 'environments/environment';
const apiurl = "http://ssa.sineedge.com/sparqapi/api/"; // const apiurl = "http://ssa.sineedge.com/sparqapi/api/";
// const apiurl = "http://localhost/sparqapi/api/"; // const apiurl = "http://localhost/sparqapi/api/";
const apiurl = environment.apiEndpoint;
const currentdate = new Date().toJSON().slice(0,19).replace('T',' '); const currentdate = new Date().toJSON().slice(0,19).replace('T',' ');
@Injectable({ @Injectable({

View File

@ -7,27 +7,21 @@ import { of } from 'rxjs';
/** Imported Service Files Are., */ /** Imported Service Files Are., */
import { AwsService } from '../../../AwsService/aws.service'; import { AwsService } from '../../../AwsService/aws.service';
//import { environment } from 'environments/environment';
/** Environment */
import { environment } from 'environments/environment';
/** Consant Value For Created Date And Updated Date */ /** Consant Value For Created Date And Updated Date */
const currentdate = new Date().toJSON().slice(0,19).replace('T',' '); const currentdate = new Date().toJSON().slice(0,19).replace('T',' ');
/** Master Interface */
export interface Master {
master_id:number;
master_name:string;
constant_name:string;
}
@Injectable() @Injectable()
export class MastersService { export class MastersService {
private apiUrl = "http://ssa.sineedge.com/sparqapi/api/"; //private apiUrl = "http://ssa.sineedge.com/sparqapi/api/";
private apiUrl = environment.apiEndpoint;
constructor(private _http: HttpClient, constructor(private _http: HttpClient,
private _aws:AwsService) { } private _aws:AwsService) { }

View File

@ -9,6 +9,8 @@ import 'rxjs/add/operator/map';
import { AwsService } from '../../../AwsService/aws.service'; import { AwsService } from '../../../AwsService/aws.service';
/** Consant Value For Created Date And Updated Date */ /** Consant Value For Created Date And Updated Date */
const currentdate = new Date().toJSON().slice(0, 19).replace('T', ' '); const currentdate = new Date().toJSON().slice(0, 19).replace('T', ' ');
/** Environment */
import { environment } from 'environments/environment';
@Injectable({ @Injectable({
@ -20,7 +22,9 @@ const currentdate = new Date().toJSON().slice(0, 19).replace('T', ' ');
* Kdk * Kdk
*/ */
export class QuestionsService { export class QuestionsService {
private apiUrl = "http://ssa.sineedge.com/sparqapi/api/";
//private apiUrl = "http://ssa.sineedge.com/sparqapi/api/";
private apiUrl = environment.apiEndpoint;
private serviceUrl = 'https://jsonplaceholder.typicode.com/users'; private serviceUrl = 'https://jsonplaceholder.typicode.com/users';
constructor(private _http: HttpClient, constructor(private _http: HttpClient,

View File

@ -9,13 +9,17 @@ import 'rxjs/add/operator/map';
import { AwsService } from '../../../AwsService/aws.service'; import { AwsService } from '../../../AwsService/aws.service';
/** Consant Value For Created Date And Updated Date */ /** Consant Value For Created Date And Updated Date */
const currentdate = new Date().toJSON().slice(0, 19).replace('T', ' '); const currentdate = new Date().toJSON().slice(0, 19).replace('T', ' ');
/** Environment */
import { environment } from 'environments/environment';
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'
}) })
export class TemplatesService { export class TemplatesService {
private apiUrl = "http://ssa.sineedge.com/sparqapi/api/";
//private apiUrl = "http://ssa.sineedge.com/sparqapi/api/";
private apiUrl = environment.apiEndpoint;
constructor(private _http: HttpClient, constructor(private _http: HttpClient,
private _aws: AwsService) { } private _aws: AwsService) { }

View File

@ -1,3 +1,4 @@
export const environment = { export const environment = {
production: true production: true,
}; apiEndpoint: 'http://ssa.sineedge.com/sparqtest/api/'
};

View File

@ -24,5 +24,6 @@ export const environment = {
dynamodb_endpoint: '', dynamodb_endpoint: '',
s3_endpoint: '', s3_endpoint: '',
accessToken:'', accessToken:'',
apiUrl:'http://localhost/sparqapi/api/' //apiUrl:'http://localhost/sparqapi/api/'
apiEndpoint: 'http://ssa.sineedge.com/sparqapi/api/'
}; };