An API what allows you to check specific restaurants by cuisines and what letter grade. This API was built using the following tools:
Using any browser or any REST client type in the enter this url
https://intense-reaches-40403.herokuapp.com/getdata?grade='<GRADE>'&'cuisine_type='<CUISINE_TYPE>'
See below for details on the parameters
NOTE: Here are the core files for this project
- includes/config.env: enviornmental file that stores our database credentials to access our database.
- sql/NYCAThaiFood.sql: SQL file that has the SQL requirement for this assessment.
- csv_etl.py: ETL script that puts data from DOHMH_New_York_City_Restaurant_Inspection_Results to our database.
- app.py: file that creates our REST calls
- requirements.txt: actual plugins and tools that are used.
- Procfile: file used to run our app on our webserver.
##Parameters GRADE: the grade that we want see. When this is entered we will see all the restaurants that are greater than or equal to this grade CUISINE_TYPE: the cuisine type that we want to filter. When this is entered we will see the restaurants that all have this cuisine type.
##Output
*boro
*building
*camis
*dba
*grade
*phone
*street
*zipcode
If a grade parameter is entered and it is not either A, B, or C, then this response will be outputed
[
{
"grade": "H is not a valid grade. Only A, B, or C are acceptable"
}
]
We are looking for restaurants that have at least a letter grade of B that serve Thai food.
https://intense-reaches-40403.herokuapp.com/getdata?grade=B&cuisine_type=Thai
We are looking for restaurants that have at least a letter grade of A that serve Mexican food
https://intense-reaches-40403.herokuapp.com/getdata?grade=A&cuisine_type=mexican
We are looking for restaurants that have a letter grade of H that serve Greek food:
https://intense-reaches-40403.herokuapp.com/getdata?grade=H&cuisine_type=Greek