Skip to content
Snippets Groups Projects
Commit fff9ed03 authored by Fernando Ferreira de Lima Filho's avatar Fernando Ferreira de Lima Filho
Browse files

fix: balance url

parent ae273429
No related branches found
No related tags found
1 merge request!5Rest
...@@ -125,7 +125,8 @@ public class MachineState { ...@@ -125,7 +125,8 @@ public class MachineState {
} else if(state.equals(BALANCE)) { } else if(state.equals(BALANCE)) {
ResponseEntity<Client> response = ResponseEntity<Client> response =
restTemplate.getForEntity(HOST_BALANCE_SERVICE + "/1", Client.class); restTemplate.getForEntity(HOST_BALANCE_SERVICE +
String.format("/%d", this.client.getId()), Client.class);
if(response.getStatusCodeValue() == 200) { if(response.getStatusCodeValue() == 200) {
System.out.println( System.out.println(
String.format(">>> Your balance is: %.2f", response.getBody().getAccount().getBalance()) String.format(">>> Your balance is: %.2f", response.getBody().getAccount().getBalance())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment