Skip to content
Advertisement

Java Rest API – Method to return balance on account [closed]

I need to get the balance for a particular customer id and account id.

I have these two java classes. ( both classes have their get and set methods )

Customer

JavaScript

Account

JavaScript

I have these two Customer service and Account service classes. Here is a method that is inside the CustomerService and Account Service

CustomerService

JavaScript

AccountService

JavaScript

I need to take two parameters in my get request like so. I have the below in a separate class.

JavaScript

How can I return the balance on given customer id and their account id?

Advertisement

Answer

JavaScript

That’s my answer in case anyone is looking at this post and needs something similar.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement