Representational State Transfer (REST) is a style of software architecture for distributed hypermedia systems such as the World Wide Web.
REST strictly refers to a collection of network architecture principles which outline how resources are defined and addressed.
REST vs RPC (Remote Procedure Calls)
An RPC application might define operations such as the following:
removeUser()
updateUser()
getLocation()
addLocation()
removeLocation()
updateLocation()
listLocations()
findLocation()
Client code to access this application may look something like this:
exampleAppObject = new ExampleApp(‘example.com:1234’)
exampleAppObject.removeUser(‘001’)
With REST, on the other hand, the emphasis is on the diversity of resources, or nouns;
for example, a REST application might define the following resources
http://example.com/findUserForm
http://example.com/locations/
http://example.com/locations/{location} (one for each location)
http://example.com/findLocationForm
Client code to access this application may look something like this:
userResource = new Resource(‘http://example.com/users/001’)
userResource.delete()
Advertisements

About ambatisreedhar

Developer

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