The Swagger Operation object
This object describes a single REST API operation on a path.
Required properties
| Property | Type | Description | Combination style |
|---|---|---|---|
operationId |
string |
Required. If not using the AbstractApiHandler class, PolicyCenter uses this value as the expected name of a method on the API handler class. The value must be the following:
|
First non-null |
responses |
map<string, Response object> |
Required. Defines the set of responses for the operation. All operations
must have at least one response defined:
PolicyCenter assumes that 4xx and 5xx response codes are for documentation purposes only, and are subject to less stringent validation rules. The keys for this map must be valid HTTP response code strings (for example, 200, or similar) or the string "default". |
Merge by key |
Optional properties
| Property | Type | Description | Combination style |
|---|---|---|---|
consumes |
string[] |
Overrides any default Each member of the array must be a valid MIME type. |
First non-null |
deprecated |
boolean |
Documentation only. | First non-null |
description |
string |
Documentation only. | First non-null |
externaDocs |
External documentation object | Documentation only. | First non-null |
parameters |
Parameter object[] | Defines the set of input parameters that this operation accepts. The operation can override parameters defined at the Path Item level by defining a parameter with the same name and location. | Merge by logical ID, which is $ref, if specified, otherwise,
it is name + in. |
produces |
string[] |
Overrides any default This property determines what output types the caller can request using the
Accept header. The negotiated content type can affect how PolicyCenter serializes some types. For example, it can
affect whether PolicyCenter serializes a
Each member of the array must be a valid MIME type. |
First non-null |
schemes |
string[] |
Documentation only. Members of the array must be one of the following:
|
First non-null |
security |
Security requirement object | Documentation only. | First non-null |
summary |
string |
Documentation only. | First non-null |
tags |
string[] |
Documentation only. | First non-null |
Guidewire extension properties
| Property | Type | Description | Combination style |
|---|---|---|---|
x-gw-apihandler |
string |
Overrides the list of x-gw-apihandler classes defined on the
root Swagger object. |
First non-null |
x-gw-authenticated |
boolean |
Determines whether this operation requires authentication. If you do not
specify a value, the default is true. |
First non-null |
x-gw-extensions |
map<string, anyType> |
The values in This value can be an arbitrary map of property keys to values. The key values can be any string, and the anyType values can be any object, including nested JSON objects. |
Merge of extensions |
x-gw-parameter-sets |
string[] |
Defines a list of parameter sets. PolicyCenter includes the parameters from the named sets as if the parameters were defined inline in this operation. The parameters defined explicitly through the Each member of the array must be the name of a parameter set defined in the
|
Merge by name |
x-gw-permissions |
string[] |
Overrides any value set for the Each member of the array must be a valid |
First non-null |
x-gw-reserve-db-connection |
boolean |
If set to true, PolicyCenter
reserves a database connection for the duration of the handling of this request. If
you do not specify a value, the default is false. |
First non-null |
x-gw-runlevel |
string |
Overrides any value for PolicyCenter supports the following server run
levels:
If you do not specify a value for |
First non-null |
x-gw-serialization |
X-GW-Serialization object |
Overrides any value set for |
First non-null |
