High-level RESTful Web service attributes
Attributes for high-level RESTful Genero Web Services.
This reference page describes all attributes supported by high‑level RESTful Web services. Attributes are grouped by their area of use, including HTTP verb declarations, URL paths, module‑level configuration, error handling, security, parameters, and function‑level metadata. Use this page to identify the attributes available in each context and to review the syntax and behavior of each one.
| Attribute | Description |
|---|---|
|
In order to remove an existing resource, you set the WSDelete attribute. |
|
In order to retrieve a resource, you set the WSGet attribute. |
|
In order to retrieve resource headers, you define the WSHead attribute. |
|
In order to retrieve the HTTP request methods supported by the server or the resource, you define the WSOptions attribute. |
|
In order to partially update an existing resource, you define the WSPatch attribute. |
|
In order to create a new resource, you set the WSPost attribute. |
|
Update an existing resource with the WSPut attribute. |
|
You define the WSTrace attribute for debugging purposes. |
| Attribute | Description |
|---|---|
|
Specifies a path to a REST web service resource that identifies its function and allows parameters to be passed in the URL. |
| Attribute | Description |
|---|---|
|
Maps a parameter to a cookie value in the HTTP request. |
|
Maps a parameter to a value in the resource path template. |
|
Maps a parameter to a query string value in the request URL. |
| Attribute | Description |
|---|---|
|
Defines file attachments in the REST message. |
|
Defines a custom HTTP header for a parameter or return value. |
|
Defines the supported media (MIME) types for a parameter or return value. |
|
Specifies an alternative name for a parameter or return value in the REST message. |
|
Marks a parameter or return value as optional in the REST message. |
| Attribute | Description |
|---|---|
|
Provides a dictionary of request‑specific context values for the current REST request, available to all operations in the module. |
|
Defines a description for an HTTP status code returned by the service. |
|
Defines general metadata about the REST service. |
|
Defines the access scope required to call any REST operation in the module. |
|
Provides a description for a user‑defined type in the REST service. |
|
Sets the version of the REST service for OpenAPI documentation. |
|
Specifies how the service version is selected for OpenAPI generation (URI, header, or query). |
| Attribute | Description |
|---|---|
|
Defines the list of error codes the REST function may return. |
|
Sets the HTTP success status code returned by the REST function. |
| Attribute | Description |
|---|---|
|
Describes the REST function, parameters, return values, and members of user-defined types. |
| Specifies a unique string to identify the operation. It corresponds to the
operationId keyword in the OpenAPI specification. |
|
Specify functions in a REST web service module that are used as preprocessing request handlers. |
|
Specify functions in a REST web service module that are used as postprocessing request handlers. |
|
Specifies the security scope required to access this REST function. Use this attribute to restrict access at the function level. |
|
Specifies a short, human-readable summary of a REST operation. It
corresponds to the summary keyword in the OpenAPI specification. |
|
Assign one or more tags to a REST operation. The value corresponds to the "tags" keyword in the OpenAPI specification and is used for grouping and documentation. |
|
Specifies the version or versions in which the REST function is available. |