For demonstration skills in REST, frontend, I choose this API when, with a request route, it returns a JSON with all the data about the city we chose in the input field on the app.
API call for get latitude e longitude
http://api.openweathermap.org/geo/1.0/direct?q={city_name},{state_code},{country_code}&limit={limit}&appid={API_key}
Parameters
% q: required City name, state code (only for the US) and country code divided by comma. Please use ISO 3166 country codes.
% appid: required Your unique API key (you can always find it on your account page under the "API key" tab)
% limit: optional Number of the locations in the API response (up to 5 results can be returned in the API response)
Example of API call
http://api.openweathermap.org/geo/1.0/direct?q=London&limit=5&appid={API_key}
API call for get Weather data
https://api.openweathermap.org/data/2.5/weather?lat=${lat}&lon=${lon}&appid={API_key}
Parameters
% lat, lon: required Geographical coordinates (latitude, longitude). If you need the geocoder to automatic convert city names and zip-codes to geo coordinates and the other way around, please use our Geocoding API.
% appid: required Your unique API key (you can always find it on your account page under the "API key" tab)
% mode: optional Response format. Possible values are xml and html. If you don't use the mode parameter format is JSON by default. Learn more
% units: optional Units of measurement. standard, metric and imperial units are available. If you do not use the units parameter, standard units will be applied by default.
% lang: optional You can use this parameter to get the output in your language. Learn more
Example of API call
https://api.openweathermap.org/data/2.5/weather?lat=44.34&lon=10.99&appid={API_key}