1. To fetch a single record using a primary, we update the URLS.PY and add a new path:
2. Update the VIEWS.PY and add the path plus the primary to search:
3. Using the POSTMAN, add the part and the primary key to retrieve that specific record. Click SEND:
In case, you search for the record that doesn't exist, the 404 error message should display:
4. In POSTMAN (we changed the theme), if you have a non-existing record:
5. To update a specific record, we update the VIEWS.PY. We use the PUT method.
Updating the record:
6. Using the POSTMAN , use the PUT method with the primary record number:
7. To delete a record, use the DELETE method. Update the VIEWS.PY:
When you reload your page, you will see the DELETE button:
8. Now, reload your page and locate that deleted record, it should return HTTP error message:
9. Using the POSTMAN, use the delete the method. Assume you have added several records. Delete these unnecessary records.
When you use the DELETE method and click SEND, the output should be.
10.
No PDF file attached.