Table of Contents |
---|
...
Implementation details
GitHub: https://github.com/OpenWiseSolutions/openhub-ri
Maven modules:
- openhub-ext: routes and business logic implementation
- openhub-war: WAR build
...
Code Block |
---|
<modules> <module>openhub-ext</module> <module>openhub-war</module> </modules> |
Dependency on OpenHub framework modules:
Public services
There are the following public interfaces
...
Service name | latest exchange rate for specified two currencies |
---|---|
Type | REST |
Authentification | - |
URL | GET /http/exchange/v1/latest |
Input parameters | URL parameters: ?source=EUR&target=CZK
|
Output | text/plain/text latest rate as number (Double) |
Input route | org.openhubframework.openhub.ri.in.exchange.ExchangeRestInRoute |
Implementation | Uses output internal route org.openhubframework.openhub.ri.out.exchange.GetExchangeRateRoute that calls external service at http://fixer.io Unit tests: org.openhubframework.openhub.ri.out.exchange.GetExchangeRateRouteTest |
...