Energy Australia coding test evaluation
The Problem Your team is tasked with listing out music festival data in a particular manner: at the top level, it should show the band record label, below that it should list out all bands under their management, and below that it should display which festivals they've attended, if any. All entries should be sorted alphabetically. For example:
Record Label 1 Band X Omega Festival Band Y Record Label 2 Band A Alpha Festival Beta Festival
This project is used to provide solution to the problem above in the Problem section.
- Java 17
- SpringBoot 3.1.3
clone the git repository by using the command git clone https://github.com/RahulBhartiGoswami/energy-australia-coding-evaluation.git or download this repository and extract the ZIP file in your local machine. Import it in your favourite IDE and run Application class as a main(Java) method. Go to any Rest Client if your choice and hit the REST URL http://localhost:8080/ea/api/v1/festivals with the HTTP GET method.
you may expect 3 different types of responses
- At the top level, it should show the band record label, below that it should list out all bands under their management, and below that it should display which festivals they've attended, if any. All entries should be sorted alphabetically.
- You may receive an empty response in case the API "https://eacp.energyaustralia.com.au/codingtest/api/v1/festivals" sends empty response.
- You may get Too many request exception in case the application receives "Too many request error" from the API "https://eacp.energyaustralia.com.au/codingtest/api/v1/festivals"