To enable access to a database of NBA Arenas, US States, US Counties, and US Congressional Districts, we will build a REST API. The API will allow for queries about tables and about specific table resources, that is, rows of data. It will also allow for geospatial queries.
The REST API application
Application components
The components of this application include:
- The database, created in Chapter 11, Flask and GeoAlchemy2, which contains the tables for NBA Arenas, US States, US Counties, and US Congressional Districts
- The app.py file, which initiates the application when called by a Python executable
- The application folder, which contains the application code and folders
- The __init__.py file, which makes...