Change developers api in dev and add / in all environments.

This commit is contained in:
Konstantinos Triantafyllou 2024-10-11 21:19:31 +03:00
parent 5806a3e5a3
commit 53dc90c977
5 changed files with 12 additions and 12 deletions

View File

@ -80,30 +80,30 @@ export class ApisService {
}
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[]> {
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[]> {
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))));
}
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)));
}
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)));
}
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) {

View File

@ -25,10 +25,10 @@ export class PersonalService {
}
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) {
return this.http.post<PersonalInfo>(properties.developersApiUrl + '/personal/save', personalInfo, CustomOptions.registryOptions());
return this.http.post<PersonalInfo>(properties.developersApiUrl + 'personal/save', personalInfo, CustomOptions.registryOptions());
}
}

View File

@ -6,7 +6,7 @@ export let properties: EnvProperties = {
useCache: false,
adminToolsAPIURL: "https://beta.services.openaire.eu/uoa-admin-tools/",
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',
errorLink: '/error',
baseLink: '',

View File

@ -6,7 +6,7 @@ export let properties: EnvProperties = {
useCache: false,
adminToolsAPIURL: "https://services.openaire.eu/uoa-admin-tools/",
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',
errorLink: '/error',
baseLink: '',

View File

@ -10,8 +10,8 @@ export let properties: EnvProperties = {
dashboard: 'developers',
useCache: false,
adminToolsAPIURL: "http://duffy.di.uoa.gr:19280/uoa-admin-tools/",
loginServiceURL: "http://mpagasas.di.uoa.gr:19580/developers-api/",
developersApiUrl: "http://mpagasas.di.uoa.gr:19580/developers-api",
loginServiceURL: "http://dl170.madgik.di.uoa.gr:19580/developers-api/",
developersApiUrl: "http://dl170.madgik.di.uoa.gr:19580/developers-api/",
domain: 'http://mpagasas.di.uoa.gr:5001',
errorLink: '/error',
baseLink: '',