GET & POST Lab
Prereqs:
For this lab, you're going to add a prehistoric creatures section to the RESTful-creatures app.
RESTful-creatures app.1. Add a prehistoric_creatures.json file to your RESTful-creatures directory. Give it the following data:
prehistoric_creatures.json file to your RESTful-creatures directory. Give it the following data:[
{
"type":"giant beaver",
"img_url":"http://www.beringia.com/sites/default/files/Giant-Beaver-banner.jpg"
},
{
"type":"mastodon",
"img_url":"https://cdn-images-1.medium.com/max/1200/1*a2VvYsKGApR-E1SnT5O7yQ.jpeg"
},
{
"type":"saber-toothed salmon",
"img_url":"https://cottagelife.com/wp-content/uploads/2014/11/Oncorhynchus_rastrosus.jpg"
},
{
"type":"megalonyx",
"img_url":"https://animalgeography.files.wordpress.com/2018/08/sloth-banner-e1535192925361.jpg?w=584&h=325"
}
]2. Create the following routes:
3. Reorganize your routes into controllers
Last updated