Expedia Coding Problem
The prerequisites to run this application are:
- Maven Build Tool
- Apache Tomcat 7.x
- Proxy Free Internet Connection
To run the application follow the following steps
- Update settings.xml with your tomcat manager user and password
- Modify pom.xml for server configuration url (port number might be different)
- Start Tomcat using startup.bat
- mvn compile
- mvn test
- mvn package
- mvn tomcat7:deploy -s settings.xml
The web application is accessible at localhost:8080/weather
The problem given was equivalent to writing a Client for a REST Service. The client invokes an API and process the response in JSON format. It builds a JSON object out of the response of service invoked.