What is REST ?
- REST stand for Representional State Transfer.
- It relies on stateless,client\server,cacheable communication protocol
- Uses HTTP
- Restfull applications use HTTP to post data (create/update) , read data (make queries) , and delete data
REST as Lightweight Web Service
Much like Web Services a REST service is :
- Platform independent i.e. does not care if Windows,Mac,Linux ... is used
- Language independent i.e. Java,C#,...
- Standard based (runs over HTTP)
- Can easyly be used with firewalls
How simple is REST
To get a user details the follolwing query may be used :
http://www.acme.com/phonebook/UserDetailes/1234
1234 is the requested user id
UserDetailes is the desired info
This is a URL which is sent via HTTP GET request.
More complex REST request
http://www.acme.com/phonebook/UserDetailes?firstName=John&LastName=Doe
Nathan