flights
A sample Python application that uses Teradata database to serve flights data to users via REST API.
This application was developed as a guide for the BE SMART Hackathon 2020 participants.
Installation
- Install a recent version of Python (>= 3.7 recommended)
- Clone this repository or download application files
- Install application dependencies using:
python -m pip install -r requirements.txt
Running the Application
- Update
tdconn.json
file with authentication information needed to connect to Teradata database - Start the application server:
python flights.py
- Open
http://localhost:8000/
in your browser
Following URLs are also available:
- http://localhost:8000/docs Interactive Swagger UI
- http://localhost:8000/redoc Redoc API documentation
- http://localhost:8000/openapi.json OpenAPI json specification