Change developers api in dev and add / in all environments.
This commit is contained in:
parent
5806a3e5a3
commit
53dc90c977
|
@ -80,30 +80,30 @@ export class ApisService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public getAll(): Observable<APIsByIssuer[]> {
|
public getAll(): Observable<APIsByIssuer[]> {
|
||||||
return this.http.get<APIsByIssuer[]>(properties.developersApiUrl + "/apis/all", CustomOptions.registryOptions());
|
return this.http.get<APIsByIssuer[]>(properties.developersApiUrl + "apis/all", CustomOptions.registryOptions());
|
||||||
}
|
}
|
||||||
|
|
||||||
public copyServices(copyServices: any): Observable<API[]> {
|
public copyServices(copyServices: any): Observable<API[]> {
|
||||||
return this.http.post<API[]>(properties.developersApiUrl + "/apis/copy", copyServices, CustomOptions.registryOptions());
|
return this.http.post<API[]>(properties.developersApiUrl + "apis/copy", copyServices, CustomOptions.registryOptions());
|
||||||
}
|
}
|
||||||
|
|
||||||
public getMyServices(): Observable<API[]> {
|
public getMyServices(): Observable<API[]> {
|
||||||
return this.http.get<API[]>(properties.developersApiUrl + "/apis/my-services", CustomOptions.registryOptions())
|
return this.http.get<API[]>(properties.developersApiUrl + "apis/my-services", CustomOptions.registryOptions())
|
||||||
.pipe(map(apis => apis.map(api => this.setInvalid(api))));
|
.pipe(map(apis => apis.map(api => this.setInvalid(api))));
|
||||||
}
|
}
|
||||||
|
|
||||||
public create(form: any): Observable<API> {
|
public create(form: any): Observable<API> {
|
||||||
return this.http.post<API>(properties.developersApiUrl + "/apis/save/new", form, CustomOptions.registryOptions())
|
return this.http.post<API>(properties.developersApiUrl + "apis/save/new", form, CustomOptions.registryOptions())
|
||||||
.pipe(map(api => this.setInvalid(api)));
|
.pipe(map(api => this.setInvalid(api)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public save(id: number, form: any): Observable<API> {
|
public save(id: number, form: any): Observable<API> {
|
||||||
return this.http.post<API>(properties.developersApiUrl + "/apis/save/" + id, form, CustomOptions.registryOptions())
|
return this.http.post<API>(properties.developersApiUrl + "apis/save/" + id, form, CustomOptions.registryOptions())
|
||||||
.pipe(map(api => this.setInvalid(api)));
|
.pipe(map(api => this.setInvalid(api)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public delete(id: number): Observable<void> {
|
public delete(id: number): Observable<void> {
|
||||||
return this.http.delete<void>(properties.developersApiUrl + "/apis/delete/" + id, CustomOptions.registryOptions());
|
return this.http.delete<void>(properties.developersApiUrl + "apis/delete/" + id, CustomOptions.registryOptions());
|
||||||
}
|
}
|
||||||
|
|
||||||
private setInvalid(api: API) {
|
private setInvalid(api: API) {
|
||||||
|
|
|
@ -25,10 +25,10 @@ export class PersonalService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public getPersonalInfo() {
|
public getPersonalInfo() {
|
||||||
return this.http.get<PersonalInfo>(properties.developersApiUrl + '/personal/my-info', CustomOptions.registryOptions());
|
return this.http.get<PersonalInfo>(properties.developersApiUrl + 'personal/my-info', CustomOptions.registryOptions());
|
||||||
}
|
}
|
||||||
|
|
||||||
public savePersonalInfo(personalInfo: PersonalInfo) {
|
public savePersonalInfo(personalInfo: PersonalInfo) {
|
||||||
return this.http.post<PersonalInfo>(properties.developersApiUrl + '/personal/save', personalInfo, CustomOptions.registryOptions());
|
return this.http.post<PersonalInfo>(properties.developersApiUrl + 'personal/save', personalInfo, CustomOptions.registryOptions());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ export let properties: EnvProperties = {
|
||||||
useCache: false,
|
useCache: false,
|
||||||
adminToolsAPIURL: "https://beta.services.openaire.eu/uoa-admin-tools/",
|
adminToolsAPIURL: "https://beta.services.openaire.eu/uoa-admin-tools/",
|
||||||
loginServiceURL: "https://beta.services.openaire.eu/developers-api/",
|
loginServiceURL: "https://beta.services.openaire.eu/developers-api/",
|
||||||
developersApiUrl: "https://beta.services.openaire.eu/developers-api",
|
developersApiUrl: "https://beta.services.openaire.eu/developers-api/",
|
||||||
domain: 'https://beta.develop.openaire.eu',
|
domain: 'https://beta.develop.openaire.eu',
|
||||||
errorLink: '/error',
|
errorLink: '/error',
|
||||||
baseLink: '',
|
baseLink: '',
|
||||||
|
|
|
@ -6,7 +6,7 @@ export let properties: EnvProperties = {
|
||||||
useCache: false,
|
useCache: false,
|
||||||
adminToolsAPIURL: "https://services.openaire.eu/uoa-admin-tools/",
|
adminToolsAPIURL: "https://services.openaire.eu/uoa-admin-tools/",
|
||||||
loginServiceURL: "https://services.openaire.eu/developers-api/",
|
loginServiceURL: "https://services.openaire.eu/developers-api/",
|
||||||
developersApiUrl: "https://services.openaire.eu/developers-api",
|
developersApiUrl: "https://services.openaire.eu/developers-api/",
|
||||||
domain: 'https://develop.openaire.eu',
|
domain: 'https://develop.openaire.eu',
|
||||||
errorLink: '/error',
|
errorLink: '/error',
|
||||||
baseLink: '',
|
baseLink: '',
|
||||||
|
|
|
@ -10,8 +10,8 @@ export let properties: EnvProperties = {
|
||||||
dashboard: 'developers',
|
dashboard: 'developers',
|
||||||
useCache: false,
|
useCache: false,
|
||||||
adminToolsAPIURL: "http://duffy.di.uoa.gr:19280/uoa-admin-tools/",
|
adminToolsAPIURL: "http://duffy.di.uoa.gr:19280/uoa-admin-tools/",
|
||||||
loginServiceURL: "http://mpagasas.di.uoa.gr:19580/developers-api/",
|
loginServiceURL: "http://dl170.madgik.di.uoa.gr:19580/developers-api/",
|
||||||
developersApiUrl: "http://mpagasas.di.uoa.gr:19580/developers-api",
|
developersApiUrl: "http://dl170.madgik.di.uoa.gr:19580/developers-api/",
|
||||||
domain: 'http://mpagasas.di.uoa.gr:5001',
|
domain: 'http://mpagasas.di.uoa.gr:5001',
|
||||||
errorLink: '/error',
|
errorLink: '/error',
|
||||||
baseLink: '',
|
baseLink: '',
|
||||||
|
|
Loading…
Reference in New Issue