Follow the steps here to set up your backend: https://github.com/learn-co-students/nyc-web-students-042219/blob/master/28-rails-api/README.md
- Create a Rails API with two models
- Create serializers for each model with at least one custom method
- Create the routes and controller actions for
index
andshow
for at least one model, make sure to create instances of your models fromrails console
so you have some sample data to work with - BONUS Add a
create
action that creates a new instance in your database and returns JSON object for the newly created instance in the response - SUPER BONUS Add an
update
action that accepts aPATCH
request and updates some attributes on your model, or adelete
action
- Render all instances from one model when the page loads
- Provide a way for a user to filter or sort by triggering some even on the DOM (entering text in an input field; clicking a 'sort' button; picking a value from a select dropdown)
- BONUS If you added a create action to your backend, add a form to your frontend to allow users to create new instances of your model
- SUPER BONUS Add a way to update some attribute on your backend or delete some instance of a model