Permalinkarrow-up-right 1 contributor
12 lines (7 sloc) 635 Bytes
We've provided a basic Item class. Let's get more information on our items.
Item
Your application should only accept the /items/<ITEM NAME> route. Everything else should 404
/items/<ITEM NAME>
404
If a user requests /items/<Item Name> it should return the price of that item
/items/<Item Name>
IF a user requests an item that you don't have, then return a 400 and an error message
400
Clone the lab Here: https://github.com/learn-co-curriculum/rack-dynamic-routes-labarrow-up-right
Last updated 6 years ago