Web Applications Flashcards
What does CRUD stand for? What is it?
CREATE, READ, UPDATE, DELETE
This is a list of the operations we can perform on a resource.
Generally, each table we create in our database holds specific instances of a particular resource. We create, read, update and destroy resources in our database.
Often, our applications will have a separate controller and model for each resource.
What are the eight different method/path/controller#action combinations contained in your Rails Routes? What does each do?
TBD
What is REST?
Representational State Transfer (ReST) is a web architecture style
Coined by Roy Fielding in doctoral dissertation (2000)
REST is a simple way to organize interactions between independent systems
A map between HTTP verb/path combinations and CRUD actions users want to perform on a resource
RESTful applications typically treat the web like a resource
List the HTTP Verbs and what they do
GET: retrieve a resource from a url POST: create a new resource PUT: update an entire resource PATCH: update part of a resource DELETE: remove/destroy a resource
URI
Uniform Resource Identifier - the portion of the URL after the domain
For the URL https://en.wikipedia.org/wiki/Uniform_Resource_Identifier, the URI would be /wiki/Uniform_Resource_Identifier