Your main RESTful methods in about a minute
Pop quiz: what are the most frequently used HTTP verbs?
Reads data. If the URL ends in /:id, it retrieves one instance of that data.
Creates new data. Since you’re sending data, it needs to have headers and a body with that data.
Updates a specific record; if you try to update a record that doesn’t exist, it creates it.
Like PUT, but instead of creating a new record if it doesn’t exist, you get back an error message.
Destroys a specified record.
Like GET, but you only get back headers (e.g. status 200 “ok”).
Returns header with all the options or methods allowed at that endpoint (e.g. PUT, GET, DELETE, CORS, etc.)
Quiz passed. With about 13 seconds left.