createRequest
This is a builder method to build ApiRequest instance.
:::caution Important!
Always start composing the request with createRequest method.
:::
contentType
This method is used to set the content type of the request. Allowed values are:
FORM_URLENCODEDJSON(default)MULTIPART_FORM_DATAPLAIN_TEXT
header
This method is used to set the header of the request.
path
This method is used to set the path of the request.
pathParam
This method is used to set the path parameter(s) of the request.
queryParam
This method is used to set the query parameter(s) of the request.
body
This method is used to set the body of the request.
bodyObject
This method is used to set the body of the request using Java object.
formBody
This method is used to set the Form body of the request using key and value pairs.
method
This method is used to set the method of the request. Following are the allowed values:
DELETEGETHEADOPTIONSPATCHPOSTPUTTRACE
userName
This method is used to set the user name of the request.
password
This method is used to set the password of the request.
create
This method will create ApiRequest instance.
:::caution Important!
Always end composing the request with create method.
:::
