CYBR8470

This repo contains a digitized version of the course content for CYBR8470 Secure Web App Development at the University of Nebraska at Omaha.

View the Project on GitHub MLHale/CYBR8470

Django REST API Exercise

Introduction

This exercise is to practice the skills you learned about in the Building a Server Lab. See the submission section for more information about what you should submit for this lab assignment.

Specification

You should build a new API endpoint that allows an end user to create a new Dog model by making a POST to /api/dogs, view current dogs that have been saved to the server before by making a GET to /api/dogs, and get, modify, or delete an existing Dog record by making a GET, PUT, or DELETE request (respectively) to /api/dogs/<id> where <id> is the id of the Dog record to be retrieved, modified, or deleted. Since a Dog includes a foreign key to the breed, you also need to make the same type of endpoints for dog breed at /api/breeds/ and /api/breeds/<id>.

Dog model

A dog should contain the following fields:

Breed Model

A breed should contain the following fields:

Todo List

To do this, do the following:

Submission

Submit a link to canvas with a link to your github repository along with the screenshots showing that you tested each method type.