13.12.3. RESTEasy Javascript API Parameters
Property | Default Value | Description |
---|---|---|
$entity | The entity to send as a PUT, POST request. | |
$contentType | The MIME type of the body entity sent as the Content-Type header. Determined by the @Consumes annotation. | |
$accepts | */* | The accepted MIME types sent as the Accept header. Determined by the @Provides annotation. |
$callback | Set to a function (httpCode, xmlHttpRequest, value) for an asynchronous call. If not present, the call will be synchronous and return the value. | |
$apiURL | Set to the base URI of the JAX-RS endpoint, not including the last slash. | |
$username | If username and password are set, they will be used for credentials for the request. | |
$password | If username and password are set, they will be used for credentials for the request. |