Services for REST Resources Configured Using the URL Template-Based Approach
The URL template-based approach helps you configure REST resources for an existing Integration Server service. The HTTP methods that you can configure for a REST resource are restricted only by the methods that you configure as allowed for the underlying service. The methods supported by a REST resource must be a subset of the methods allowed for the service corresponding to the REST resource. For information about configuring the supported methods for a REST resource and its corresponding Integration Server service, see the webMethods Service Development Help.
If a REST request specifies an HTTP method that is not allowed for its service, the request fails with a “405 Method Not Allowed error.
Example 1
A REST service and its corresponding resource support the GET, PUT, and DELETE services:
If the client sends a... | Integration Server responds by... |
GET request | Executing the GET method |
PUT request | Executing the PUT method |
POST request | Issuing error “405 Method Not Allowed” |
Note: This example assumes that the request URL is in a format supported by the REST resource.