Show a message using different APIs, implemented in Java and executed in Eclipse with TomcatApache9.
It shows the temperature (ÂēC) of the origin and destination (cities), the country they belong to, the currency code they use and the equivalent amount. All this depends on the time of day.
- Commented in es.upm.dit.isst.soa.Test.java
- https://restcountries.eu
no apiKey is neccesary - https://openweathermap.org/api
maybe you need a new apiKey (is neccesary) - https://free.currencyconverterapi.com/
maybe you need a new apiKey (is neccesary).
My apiKey (created in 26/04/2019) expires in 60 days (I've used a free version).
- Download repository .zip
- Import in eclipse.
- Update Maven: Rigth click on project > select Maven > Update Project. This is to eliminate "errors" in project.
- Include Tomcat (Maybe you download newer version).
- Run on server.
- Open this in your browser: http://localhost:8080/ISST-19-rest/rest/getTrip?origen=Madrid&destino=London .You are free to change the 'origen' (origin) and 'destino' (destination) parameters to other cities (must be put both in english).