Introducing the all-new TIBCO Community site!

For current users, please click "Sign In" to reset your password and access the enhanced features. If you're a first-time visitor, we extend a warm welcome—click "Sign Up" to become a part of the TIBCO Community!

If you're seeking alternative community sites, explore ibi, Jaspersoft, and Spotfire.

Jump to content
  • REST JSON currency exchange Rates ECB


    Manoj Chaurasia

    Table of Contents

    Sample of creating a REST JSON currency exchange Rates based on actual ECB European Central Bank, including fast cached Micro Service Data.

    Service Operations

    All samples based on 'ecb-envelope.xsd' and 'ecb-cube.xsd' to validate the XML from ECB.

     

    Schema's stored inside the Business Studio Projects.

    Latest Rates

    The latest REST GET Service Operation, with Data of the current day.

     

    The Implementation load the latest Rates per currency via XML from ECB, parse and converts it into a JSON Response. 

    Screenshot2022-11-09at2_19_42PM.thumb.png.b70bc762978eadf8a8a2e0677d8ea157.png

    Last 90 days

    Last 90 days REST GET Service Operation.

     

    Here similar to above but with a 90-day XML from ECB.

     

    Screenshot2022-11-09at2_19_53PM.thumb.png.3d519077f46585f68af684bc2fecbc82.png

    Others

    The current version is missing some features, but they can be added easily, e.g.

    • get a specific latest rate, by a currency as input.
    • get a specific rate of date dd.mm.yyyy, by a currency as input.
    • allow Server-Side rate calculation of different base currencies.

    Testing

    After pushing the Implementation to the Cloud, it is directly ready for Testing.

     

    Screenshot2022-11-09at2_20_40PM.thumb.png.7a07c91764a338ee44deff5d5e1365b3.png

    Sample Source

    TIBCO Business Studio? Implementation Source and Service Specification JSON for Swagger and YAML are attached to download from Resources below.

    ecbexchangerates-v1.1.zip

    tci-api-spec-ecbexchangerates.zip


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...