REST supports the following HTTP methods:
GET: It requests a resource at the request URL. It should not contain a request body as it will be discarded. May be it can be cached locally or on the server. It can have request headers.
POST: It submits information to the service for processing; it should typically return the modified or new resource. It can have both request body and request headers.
PUT: At the request URL it update the resource. It can have both request body and request headers.
DELETE: At the request URL it removes the resource. It can have both request body and request headers.
OPTIONS: It indicates which techniques are supported.
HEAD: It returns meta information about the request URL.
GET: It requests a resource at the request URL. It should not contain a request body as it will be discarded. May be it can be cached locally or on the server. It can have request headers.
POST: It submits information to the service for processing; it should typically return the modified or new resource. It can have both request body and request headers.
PUT: At the request URL it update the resource. It can have both request body and request headers.
DELETE: At the request URL it removes the resource. It can have both request body and request headers.
OPTIONS: It indicates which techniques are supported.
HEAD: It returns meta information about the request URL.
Comments
Post a Comment