To create a ProductOrder Object Class for our Database via Django REST Framework. The Objective of this task is to expose product order data for the client.
Context
A ProductOrder Class table is required for the integrity of the database. Please refer to ERD:
[ERD](ERD link here)
[ ] Pull Down Bangazon Project onto your local computer and create a new git branch
[ ] Go to the Bangazon directory
[ ] Go to the API app
[ ] Create the ProductOrder Class in the models.py file with the required properties.
[ ] Create a viewset Class for the ProductOrder model in the views.py file.
[ ] Create a class that displays the specific attributes of the ProductOrder class in the serializers.py file
[ ] Add the employee class url extension "/productorder" in the urls.py file
Outcome/expected behavior
In all, 4 files will be changed. After these changes, the Class created will be ready to migrate using the Django REST framework. The outcome of the migrated files will expose the ProductOrder Class that can also be linked to the other data tables in the database.
Task
To create a ProductOrder Object Class for our Database via Django REST Framework. The Objective of this task is to expose product order data for the client.
Context
A ProductOrder Class table is required for the integrity of the database. Please refer to ERD: [ERD](ERD link here)
The process
[ ] Pull Down Bangazon Project onto your local computer and create a new git branch
[ ] Go to the Bangazon directory
[ ] Go to the API app
[ ] Create the ProductOrder Class in the models.py file with the required properties.
[ ] Create a viewset Class for the ProductOrder model in the views.py file.
[ ] Create a class that displays the specific attributes of the ProductOrder class in the serializers.py file
[ ] Add the employee class url extension "/productorder" in the urls.py file
Outcome/expected behavior
In all, 4 files will be changed. After these changes, the Class created will be ready to migrate using the Django REST framework. The outcome of the migrated files will expose the ProductOrder Class that can also be linked to the other data tables in the database.
Other related tickets
Expose Product Data Expose Order Data