A single element of a batch request, often part of a list with other elements.
name | data type | description |
---|---|---|
method | HTTPMethod | The type of request (e.g. POST, GET, etc.). |
url | string | The URL of the request. Must not have a scheme, host, or port. The path should be prefixed with "/api/", and should include path and query parameters. |
body | object | Optional body of the request. Must be serialized in accordance with getContentType. For application/json, use com.cloudera.api.ApiObjectMapper. |
contentType | string | Content-Type header of the request element. If unset, the element will be treated as if the wildcard type had been specified unless it has a body, in which case it will fall back to application/json. |
acceptType | string | Accept header of the request element. The response body (if it exists) will be in this representation. If unset, the element will be treated as if the wildcard type had been requested. |
Example
{ "method" : "POST", "url" : "...", "body" : { }, "contentType" : "...", "acceptType" : "..." }