Get /api/v0/forecast?location=cincinatti,oh
Content-Type: application/json
Accept: application/json
Requirements:
Endpoint needs to use the city and state from the GET request’s query parameter and send it to MapQuest’s Geocoding API to retrieve the latitude and longitude for the city. Use of the MapQuest’s Geocoding API is a hard requirement.
Retrieve forecast data from the Weather API using the latitude and longitude from MapQuest.
Testing should look for more than just the presence of attribute fields in the response. Testing should also determine which fields should NOT be present. (don’t send unnecessary data)
Get /api/v0/forecast?location=cincinatti,oh Content-Type: application/json Accept: application/json
Requirements:
Endpoint needs to use the city and state from the GET request’s query parameter and send it to MapQuest’s Geocoding API to retrieve the latitude and longitude for the city. Use of the MapQuest’s Geocoding API is a hard requirement.
Retrieve forecast data from the Weather API using the latitude and longitude from MapQuest.
Testing should look for more than just the presence of attribute fields in the response. Testing should also determine which fields should NOT be present. (don’t send unnecessary data)