Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 namelatest exchange rate for specified two currencies
TypeREST
Authentification-
URL

GET /http/exchange/v1/latest

Input parameters

URL parameters: ?source=EUR&target=CZK

  • source - source currency symbol, e.g. "EUR" 
  • target - target currency symbol
Output

text/plain/text

latest rate as number (Double)

Input routeorg.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

...