ALHelton / rails_engine

0 stars 0 forks source link

Road Trip #32

Open ALHelton opened 1 year ago

ALHelton commented 1 year ago

POST /api/v0/road_trip Content-Type: application/json Accept: application/json

Requirements:

This POST endpoint should NOT call your endpoint like /api/v0/road_trip?origin=Cincinatti,OH&destination=Chicago,IL&api_key=t1h2i3s4_i5s6_l7e8g9i10t11, and should NOT send as form data either. You must send a JSON payload in the body of the request

API key must be sent If no API key is given, or an incorrect key is provided, return 401 (Unauthorized) You will use MapQuest’s Directions API: https://developer.mapquest.com/documentation/directions-api/ The structure of the response should be JSON API 1.0 Compliant.

Your code should allow for the following: (NOTE: These scenarios are expected in your POSTMAN Demo)

ALHelton commented 1 year ago

Image

ALHelton commented 1 year ago

Image

ALHelton commented 1 year ago

Image

ALHelton commented 1 year ago

Image