I am developing REST WCF service and As theoretically i know when to opt for what purpose.
GET
to get the resourcePUT
to updatePOST
to InsertDELETE
to delete
But what is the disadvantage if we don't follow this above rule, suppose to insert a record i used GET
method?
Search engines access your pages using GET requests, so if you did this, google's crawler might insert records that you didn't want.
Often, people will use POST for any kind of ajax request, with the actual action in the request's body. There's nothing very wrong with this, but the feature is there for you to use, so you might as well use it.