RestClient valid paramater for get/post

uri
Either a URI, URL, or object whose toString() method produces a valid URI string. If this parameter is not supplied, the HTTPBuilder’s default URI is used.
path
Request path that is merged with the URI
queryString
an escaped query string
query
Map of URL query parameters
headers
Map of HTTP headers
contentType
Request content type and Accept header. If not supplied, the HTTPBuilder’s default content-type is used.
requestContentType
content type for the request, if it is different from the expected response content-type
body
Request body that will be encoded based on the given contentType

Note that if both queryString and query are given, query will be merged with (and potentially override) the parameters given as part of queryString.

Leave a Reply

Your email address will not be published. Required fields are marked *