Built-in Parameters
The following URL parameters have special meaning and can be passed in through the URL of the request:
GET Parameter | Description |
---|---|
&plainText=true | Response will always be Content-Type: text/plain and the returned text will be human-readable (WriterSerializer.Builder.useWhitespace() enabled).Useful for debugging. |
&debug=true | Enable debug mode for request. |
&noTrace=true | If an error occurs, don't log the stack trace to the log file. Useful for automated JUnit testcases testing error states to prevent the log file from filling up with useless stack traces. |
&method=X | Overload the HTTP method as a GET parameter (e.g "POST"). Must be enabled via @Rest(allowedMethodParams) setting. |
&Header-Name=headerValue | Specify a header value as a GET parameter. Must be enabled via @Rest(allowedHeaderParams) setting. |
&body=X | Pass in the HTTP body content on PUT and POST methods as a UON-encoded GET parameter. Can be disabled via @Rest(disableContentParam) setting. |
&x-response-headers=X | Pass-through headers to the response. Must be a UON-encoded map of key-value pairs. |