Skip to content

Commit 170917a

Browse files
author
Alexander Geist
committed
apt rest path bugfix
1 parent 8a50b7d commit 170917a

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

multibanking-app/src/pages/analytics/analytics.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export class AnalyticsPage {
2727
bankAccountService.bookingsChangedObservable.subscribe(changed => {
2828
this.loadAnalytics();
2929
})
30+
this.loadAnalytics();
3031
}
3132

3233
loadAnalytics() {

multibanking-app/src/services/BankAccessService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ export class BankAccessService {
1111
}
1212

1313
getBankAccesses(userId) {
14-
return this.http.get(AppConfig.api_url + userId + "/bankaccesses")
14+
return this.http.get(AppConfig.api_url + "/users/" + userId + "/bankaccesses")
1515
.map((res: Response) => res.json()._embedded != null ? res.json()._embedded.bankAccessEntityList : [])
1616
.catch(this.handleError);
1717
}
1818

1919
crateBankAcccess(userId, bankaccess) {
20-
return this.http.post(AppConfig.api_url + userId + "/bankaccesses", bankaccess)
20+
return this.http.post(AppConfig.api_url + "/users/" + userId + "/bankaccesses", bankaccess)
2121
.catch(this.handleError);
2222
}
2323

multibanking-app/src/services/BankAccountService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ export class BankAccountService {
1414
}
1515

1616
getBankAccounts(userId, accessId) {
17-
return this.http.get(AppConfig.api_url + userId + "/bankaccesses/" + accessId + "/accounts")
17+
return this.http.get(AppConfig.api_url + "/users/" + userId + "/bankaccesses/" + accessId + "/accounts")
1818
.map((res: Response) => res.json()._embedded.bankAccountEntityList)
1919
.catch(this.handleError);
2020
}
2121

2222
syncBookings(userId, accessId, accountId, pin) {
23-
return this.http.put(AppConfig.api_url + userId + "/bankaccesses/" + accessId + "/accounts/" + accountId + "/sync", pin)
23+
return this.http.put(AppConfig.api_url + "/users/" + userId + "/bankaccesses/" + accessId + "/accounts/" + accountId + "/sync", pin)
2424
.map((res: Response) => {
2525
this.bookingsChangedObservable.next(true);
2626

multibanking-app/src/services/BookingService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class BookingService {
1111
}
1212

1313
getBookings(userId, accessId, accountId) {
14-
return this.http.get(AppConfig.api_url + userId + "/bankaccesses/" + accessId + "/accounts/" + accountId + "/bookings")
14+
return this.http.get(AppConfig.api_url + "/users/" + userId + "/bankaccesses/" + accessId + "/accounts/" + accountId + "/bookings")
1515
.map((res: Response) => res.json()._embedded != null ? res.json()._embedded.bookingEntityList : [])
1616
.catch(this.handleError);
1717
}

multibanking-app/src/services/analyticsService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class AnalyticsService {
1111
}
1212

1313
getAnalytics(userId, accessId, accountId) {
14-
return this.http.get(AppConfig.api_url + userId + "/bankaccesses/" + accessId + "/accounts/" + accountId + "/analytics")
14+
return this.http.get(AppConfig.api_url + "/users/" + userId + "/bankaccesses/" + accessId + "/accounts/" + accountId + "/analytics")
1515
.map((res: Response) => res.json() != null ? res.json() : {})
1616
.catch((error: Response) => {
1717
if (error.json() && error.json().message == "RESCOURCE_NOT_FOUND") {

0 commit comments

Comments
 (0)