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 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 theapplication
folder into a module, defines the Flask object and connects to the database - The
views.py
file, which defines the API endpoints, the view functions, and the return responses - The
models.py
file, which defines the database table models as Python classes that subclass from SQLAlchemy - The
forms...