- 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.
-
Notifications
You must be signed in to change notification settings - Fork 121
JoinCODED/TASK-Django-M5-List-View
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published