# REST (Representational State Transfer) ### Objectives - [ ] Describe the concept of resources in relation to REST and APIs - [ ] Identify conventions for various routes including naming convention, HTTP verbs, and status codes - [ ] Build RESTful routes for a given resource ## Guiding Questions * What is a resource? > Your answer... * What are the five common actions of an API? What methods and status codes are typically used for the five common actions? | Action | Method | Path | Body | |---|---|---|---| | | | | | | | | | | | | | | | > Your answer... * How would you build RESTful routes for the following data? The ```js const authors = [ { name: 'Haruki Murakami', books: [ { title: 'Hard-Boiled Wonderland and the End of the World' }, { title: 'The Wind-Up Bird Chronicle' } ] }, { name: 'Kurt Vonnegut' books: [ { title: 'Slaughterhouse-Five' } ] } ] ``` > Your answer... * Build RESTful routes for one of the following resources: cards, dogs, engineers > Your answer... https://learn.co/lessons/rest-quiz