This API allows users to search search for restaurants' inspections. The API allows searching either by name, zip, or both.
/v1/api/restaurant
- GET: gets all restaurants (the home route is not recommended and will return ALL restaurants and their inspections
- To specify a ZIP code, user query strings
/api/v1/restaurant?zip=94112
will return all restaurants with a ZIP code of 94112/api/v1/restaurant?name=ramen
will return all restaurants with "ramen" as its names. This search is case insensitive./api/v1/restaurant?zip=94112&name=mcdonald%27s
will return restaurants with name "mcdonald's" and zip 94112. It is fine to switch the ordering of the query string key/values.
- GET: gets all restaurants (the home route is not recommended and will return ALL restaurants and their inspections
/v1/api/inspection
- GET: gets all inspections. Again, this is not recommended and will return a lot of JSON.
- It is also possible to append a restaurant ID as the path parameter to get all inspections of that restaurant.