Wednesday, 18 December 2013

RESTful design

Get Operations should be idempotent - performing the operation should not alter the underlying resource in any fashion. It can be performed n times and it always returns the same result.

POST should be used to create resources.

PUT should be replace the entire copy of the resource. If it exists it will overwrite it. If it doesnt exist it will create it: PUT can be used for first time creation and updates also. The difference between a POST and a PUT is that a PUT must have the resource identifier available, whereas a POST will not. So you can only PUT to create a resource if the resource identifier was generated external to the save operation.

PATCH should be used for updating part of the resource - perhaps a single field.

http://martinfowler.com/articles/richardsonMaturityModel.html

1 comment:

  1. I had seen several students with the equal condition. The hassle is that you human beings assume that it isn't always possible to write down for you. rather work for it. not anything is viable if you don’t even try. you have got the ability to write down. start working towards to write an essay. you can start writing essay with easy subject matter. you will get some of pattern essays in the net. examine those essays you'll get a good concept approximately it. Journalism is actually a huge challenge. you may get many subjects from it.

    best essay writing service

    ReplyDelete