What I learned today: REST

Rails implements the REST architecture when creating web apps. This means that many components of a Rails application (ie. blog posts and/or users) are modeled as resources that follow CRUD operations that correspond to the four fundamental HTTP request methods. CRUD stands for Create, Read, Update, and Destroy. These are the major functions that are implemented in relational database applications that allow for resources (such as blog posts) to be, well, created, read, updated, and deleted. Now the four fundamental HTTP request methods are GET, POST, PUT, and DELETE. These request methods, or verbs, indicate the desired operation (CRUD) to be performed on resources. Here’s a table illustrating these operations and their corresponding HTTP requests.

REST

 

Advertisements
Tagged , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: