Integrate API into Wild Rydes

Now that you have created our Serverless API, you need to update your Wild Rydes web application to integrate with it. You will leverage the AWS Amplify client library to make API calls and inject security seamlessly to support your authentication and authorization scenarios.

High-Level Instructions

First, expand your amplify-config.js file to store your new API Gateway endpoint. Next, within MainApp.js under pages, enable the hasAPI method by uncommenting its functionality. Additionally, update the getData method to capture the latitude and longitude selected on the map and send to the API as a PickupLocation object including both the latitude and longitude.

Step-by-step instructions (expand for details)