Skip to content

c-bartell/sweater_weather

 
 

Repository files navigation

README

Instructions

  1. Create a branch off of your Sweater Weather project called final.
  2. As you work, you should commit to this branch every 15 minutes.
  3. DO NOT push your code to your GitHub repo until the end of the 3 hour assessment
  4. Complete the assignment below. You should:
  • TDD all of your work
  • Prioritize getting your code functional before attempting any refactors
  • Write/refactor your code to achieve good code quality

Assignment

You will build an endpoint that will retrieve food and forecast information for a destination city. Your endpoint should follow this format:

GET /api/v1/munchies?start=denver,co&end=pueblo,co&food=chinese

Your API will return:

  • the destination city
  • estimated travel time from start city to destination city
  • the name and address of a restaurant serving THE SPECIFIED TYPE of cuisine that WILL BE OPEN at your estimated time of arrival.
  • the current forecast of the destination city

Your response should be in the format below:

{
  "data": {
    "id": "null",
    "type": "munchie",
    "attributes": {
      "destination_city": "Pueblo, CO",
      "travel_time": "1 hours 48 min",
      "forecast": {
        "summary": "Cloudy with a chance of meatballs",
        "temperature": "83"
      },
      "restaurant": {
        "name": "Chinese Restaurant",
        "address": "4602 N. Elizabeth St, Ste 120, Pueblo, CO 81008"
      }
    }
  }
}

APIs

  1. MapQuest Directions API
  1. Yelp Fusion API
  1. Open Weather Map API

Releases

No releases published

Packages

No packages published