- Define CRUD. Four main functions a user can use to manipulate data: Create, Read, Update, Delete
- There are seven verb + path combinations that are necessary in a basic Sinatra app in order to provide full CRUD functionality. List each of the seven combinations, and explain what each is for.
Using the Task Manager example:
- "/tasks", GET: shows all tasks
- "/tasks/:id", GET: shows one task
- "/tasks/new", GET: shows form to create a new task
- "/tasks", POST: creates a new task
- "/tasks/:id/edit", GET: shows form to edit a task
- "/tasks/:id", PUT: submit form to update existing task