Steps
- Fork and clone this repository.
- Create a
virtual environment
. - Install the packages using
pip install -r dev-requirements.txt
. - Install
Django Rest Framework
usingpip install djangorestframework
. - Migrate and run your server.
- A new app has been created for you called
flights
, and your API views should be in there. - Create a
view
that shows a list ofFlights
, and complete it so that it displays the following fields for each flight:id
destination
time
price
- Create a
URL
namedflights-list
for the above view and test it inPostman
. - Create a
view
that shows a list of upcomingBookings
, and complete it so that it displays the following fields for each booking.flight
date
id
- Create a
URL
namedbookings-list
for the above view and test it inPostman
. - Push your code.