Web Applications Flashcards

1
Q

What does CRUD stand for? What is it?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the eight different method/path/controller#action combinations contained in your Rails Routes? What does each do?

A

TBD

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is REST?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

List the HTTP Verbs and what they do

A
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

URI

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly