[angular-18 | DONE | CHANGED] developersApiUrl: add '/' and remove it from the next string path to avoid duplicates

This commit is contained in:
Alex Martzios 2024-10-03 14:11:22 +03:00
parent 7c899c5dc0
commit e2adc1341e
6 changed files with 12 additions and 12 deletions

@ -1 +1 @@
Subproject commit cd782d4a68a67dcba4d5d1bbce7ee737ad1f3871 Subproject commit 9c93a1e306ce7abd43e3c552a2fff0240ae2f04c

View File

@ -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) {

View File

@ -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());
} }
} }

View File

@ -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: '',

View File

@ -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: '',

View File

@ -11,7 +11,7 @@ export let properties: EnvProperties = {
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://mpagasas.di.uoa.gr:19580/developers-api/",
developersApiUrl: "http://mpagasas.di.uoa.gr:19580/developers-api", developersApiUrl: "http://mpagasas.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: '',