To map a RESTful request to an operation the REST component must somehow map the HTTP request to an operation name. It can achieve this by looking at three things (in order of precedence):
- HTTP URL Parameters
- URL Extension
- The HTTP method of the request.
The following table maps HTTP methods to operation names.
|
HTTP Method
|
Management Operation
|
|---|---|
|
GET
|
read-resource
|
|
PUT
|
update-resource
|
|
POST
|
add-resource
|
|
DELETE
|
remove-resource
|
This means that the same URL can invoke four different operations just by changing the HTTP method of the REST request.