Change get_our_own_businesses() route to be based on latitude and longitude in the route.
Also, format the returned json from yelp to only contain fields we want.
These fields include: coordinates, location, name, price, rating, image_url, and description
Portions of this code that utilized AI generation
None
How to Test
Using Postman, use endpoint api/<latitude>/<longitude>
Set Postman to a GET method.
Before sending request, w/o middleware, you only need to make sure in the Headers tab on Postman to have a Key "Authorization", then Value as "Bearer ". The YELP_API_KEY can be obtained at https://www.yelp.com/developers/v3/manage_app. Login with the Munch Google account. Make sure to put the yelp key in the .env file of the backend as YELP_API_KEY=<yelp key>. With middleware, you need another Header also "Authorization", then value as "Bearer <user token>. If you are using middleware, make sure the user token authorization is listed first in the headers.
Now, send request and you should be getting the JSON with the fields we want from yelp.
Checklist
[x] I have added/updated relevant documentation, and I have followed the coding style guidelines.
[x] I have checked for any potential conflicts with other branches and fixed any merge conflicts.
Description / Changes Made
Portions of this code that utilized AI generation
None
How to Test
Checklist