HTTP operations
The Guidewire REST framework provides the following set of allowable HTTP operations on
PolicyCenter resource, which are:
GET |
Retrieves information about a resource |
PATCH |
Updates or modifies information about a resource |
POST |
Creates a resource |
PUT |
Updates or fully replaces a resource |
DELETE |
Deletes a resource |
In addition to the listed standard HTTP operations, the HTTP protocol defines the following
operations as well.
| Method | Description |
|---|---|
OPTIONS |
Retrieves information about a given URL. The REST framework automatically
provides a default implementation of the OPTIONS method that it
does not authenticate. The default method returns a 200 status code and a single
Allow header that contains the list of HTTP methods defined for the specified
path. For example, if you define GET and PATCH
for a given path, making an OPTIONS request to that path returns
an Allow header value of "GET, HEAD,
PATCH, OPTIONS". |
HEAD |
Returns the headers that would come back from a standard GET
HTTP request. The REST API framework automatically implements the
HEAD method for any path that defines a GET
operation. The REST framework authenticates the HEAD method only
if it authenticates the associated GET method as well. The
default implementation of this method by the framework simply calls the
GET HTTP method and then returns the response with an empty
response body. |
