Skip to content

Conversation

lauren1703
Copy link

Overview

I found an online API and web scraped all the restaurants in Ithaca. I added a table in the database to store the restaurants and created an endpoint to retrieve this data.

Changes Made

I created the restaurants.py for the web scraping function. I also created a table in SQLite in models.py, defined the insert_restaurant() function in database.py and added to the populate_db() function. I defined the endpoint in EcosystemController.js and updated EcosystemUtils.js accordingly.

Test Coverage

I manually tested using Postman and made sure all the restaurants were returned with the correct info.

Screenshots

image

Copy link
Contributor

@nfq2 nfq2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should also update the swagger file for ur new endpoint and add versioning to the api endpoint (the route should be: /api/v1/restaurants)

everything else lgtm

@nfq2 nfq2 requested a review from daisychangm April 17, 2025 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants