2. Send request to a REST service for XML (important to use XML here, no cheating with Json directly). Here is an example for a query for “lost”: http://www.omdbapi.com/?t=lost&r=xml&apikey=. You can use any other open REST service if it provides an XML output. If you do, please provide instructions for the configuration (if API keys are required, etc.)
4. If you use a library or a framework, provide explanation why it is needed. Try to minimize the use of libraries.
5. Pretend that this service is something that will be delivered to customers and should be maintained for many years, think about good code structure and documentation
Clone the repository and either in your system or favorite IDE set up the following env variables:
API_KEY
XML_API_URI
Using your favorite IDE run:
.src/main/java/com/movie/api/MovieApplication.java
Then using Postman or other magic tool go for:
http://localhost:8080/movie?title=dark
BEFORE you do that, don't forget to add Authorization header: <Bearer API_KEY>