Implementing GET POST PUT DELETE with Ruby Sinatra
Run the App!
Let’s get down to the brass-ier tacks of building a client-server HTTP based programming !!
We are going to build a handful of features in a sequenced order :)
Snippets of code are located inside
Build Restaurant and Order object models
Implement /
Add some styles so that things look ‘better’ :)
Implement POST /restaurants
Implement PUT /restaurants
Implement DELETE /restaurants/:id
Render a Restaurant’s Orders
Implement POST /orders
Implement PUT /orders
Implement DELETE /orders/:id