- Setup a virtual environment.
- Fork the repository for Django REST task 1 in JoinCODED’s Github and Clone it.
- Install the packages from the requirements file.
- Install
Django Rest Framework
. - A new app has been created for you called
flights
, your API views should be in there. - Create a
view
that shows a list ofFlights
:- Complete it so that it displays the following fields for each flight:
id
destination
time
price
- Create a
URL
with nameflights-list
for the above view and test it inpostman
. - Replace the api in the frontends
flights_list
view with this api.
- Complete it so that it displays the following fields for each flight:
- Create a
view
that shows a list of upcomingBookings
:- Complete it so that it displays the following fields for each booking.
flight
date
id
- Create a
URL
with namebookings-list
for the above view and test it inpostman
. - Replace the api in the frontends
profile
view with this api.
- Complete it so that it displays the following fields for each booking.
- Push your code
nbalissa / rest_task_01 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from joincoded/task-django-m5-list-view