switched from env.sh to .env to handle environment variables. Possibly more scalable
created two separate Dockerfiles - DOCKERFILE.db and DOCKERFILE.api for postgres and api containers repsectively
Django
Models for crash, partic and vhcl (tables from the ODOT Postgres db) now working
Corresponding API endpoints now accessible via GET requests
pagination support added
API ROOT is accessible from - http://:8000/api/
crash tables are accessible from - http://:8000/api/crashes/
partic tables are accessible from - http://:8000/api/participants/
vhcl tables are accessible from - http://:8000/api/vehicles/
Docker
switched from env.sh to .env to handle environment variables. Possibly more scalable created two separate Dockerfiles - DOCKERFILE.db and DOCKERFILE.api for postgres and api containers repsectively Django
Models for crash, partic and vhcl (tables from the ODOT Postgres db) now working Corresponding API endpoints now accessible via GET requests pagination support added API ROOT is accessible from - http://:8000/api/ crash tables are accessible from - http://:8000/api/crashes/ partic tables are accessible from - http://:8000/api/participants/ vhcl tables are accessible from - http://:8000/api/vehicles/