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.
Last 90 days
Last 90 days REST GET Service Operation.
Here similar to above but with a 90-day XML from ECB.
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.
Sample Source
TIBCO Business Studio? Implementation Source and Service Specification JSON for Swagger and YAML are attached to download from Resources below.
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now