RestInterfaceSettings

Encapsulates settings used to customize the generated REST interface.

Members

Properties

dup
RestInterfaceSettings dup [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

allowedOrigins
string[] allowedOrigins;

List of allowed origins for CORS

baseURL
URL baseURL;

The public URL below which the REST interface is registered.

content_type
string content_type;

The content type the client would like to receive the data back

errorHandler
RestErrorHandler errorHandler;

Optional handler used to render custom replies in case of errors.

httpClientSettings
HTTPClientSettings httpClientSettings;

Overrides the default HTTP client settings used by the RestInterfaceClient.

methodStyle
MethodStyle methodStyle;

Naming convention used for the generated URLs.

stripTrailingUnderscore
bool stripTrailingUnderscore;

Ignores a trailing underscore in method and function names.

Meta