Skip to content

Commit

Permalink
Replace discontinued fixer.io exchange-rates api with
Browse files Browse the repository at this point in the history
Discontinued fixer.io exchange-rates provider was replaced with
exchangeratesapi.io
It's claimed to be compatible with fixer.io, so no additional changes
required
  • Loading branch information
solo-yolo committed Jul 10, 2018
1 parent 4935509 commit 447ebc6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/src/main/resources/shared/statistics-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ server:
port: 7000

rates:
url: http://api.fixer.io
url: https://exchangeratesapi.io/api
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public void shouldRetrieveExchangeRates() {
assertEquals(container.getBase(), Currency.getBase());

assertNotNull(container.getRates());
assertNotNull(container.getRates().get(Currency.EUR.name()));
assertNotNull(container.getRates().get(Currency.RUB.name()));
}

}
2 changes: 1 addition & 1 deletion statistics-service/src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ spring:
port: 0

rates:
url: http://api.fixer.io
url: https://exchangeratesapi.io/api

0 comments on commit 447ebc6

Please sign in to comment.