javascript - API using nodejs express -


i have build api weather application using express node.js. since not saving data, not using database. application allows user enter city name, , weather information retrieve directly openweathermap.org

the question is, have working javascript application, how weather data openweathermap.org in api route city/:cityname

as stated above, suggest using request library. read on documentation on how process request.

you should refer openwathermap api protocol see how expect requests. side not suggest referencing citys id, not name.


Comments