Closed mdewey closed 6 years ago
You are tasked with taking the Safari DB you created and putting that into an API. This API should use the simple Safari Database that we created.
TIP: It might be easier to delete the database in Postgres, and recreate it using the new project.
GET /Animals
GET /Search?species=lion
POST /Animal
GET /Animal/{location}
PUT /Animal/{animal}
DELETE /Animal/{animal}
Location
Search
PUT /Animal/{animal}/{amount}
{amount}
https://github.com/WebbWear/my_safari
Your homework is: Meets Expectations
Let's Continue Our Safari Adventure
You are tasked with taking the Safari DB you created and putting that into an API. This API should use the simple Safari Database that we created.
Objectives
Requirements
TIP: It might be easier to delete the database in Postgres, and recreate it using the new project.
Explorer Mode
GET /Animals
Endpoint that returns all animals you have seenGET /Search?species=lion
that returns all animals where the species name contains the title parameterPOST /Animal
endpoints that adds an animal to the database. This should take a JSON bodyGET /Animal/{location}
that returns animals of only that locationPUT /Animal/{animal}
endpoint that adds 1 to that animalDELETE /Animal/{animal}
endpoint that deletes that animal from the databaseAdventure Mode
Location
be its own tableSearch
endpoint to search by animal or by locationPUT /Animal/{animal}/{amount}
endpoint that adds{amount}
to that animalEpic Mode
Additional Resources
.NET