Please implement a service that reads in the provided XML and JSON files and exposes the information via a RESTful API.
File structure:
products.xml
contains master data for all productsprices.json
contains price information for all products
The API should be designed in a way, that it allows the following use cases:
- List all products with their master data and without prices
- Show single product with master data and all available prices
- Show single price for one product and specific unit (not the master data, just the price!)
You can use external libraries.
Out of scope:
- Persistence of data
- Authentication/Authorization