get call
Make http/https get
call for provided details
Syntax
get request {
url: <text template> | <expression resulting in string>,
headers: {
"Authorization": <text template> | <expression resulting in string>
}
} matching body object <extractable object template> and headers { "<header name>" : <extractable header name> }
Options
url
: (Required) You can pass any text template variable resulting in string or sting constant to thisheaders
: (Optional) You can optionally pass map of headers
Extractions
You can optionally extract data from the response by providing an extraction clause on the body
matching body object <extractable object template>
and optionally on headers and headers <extractable header template>
Example Usage
get request {
url: text `<%baseURL%>/tag/`,
headers: {
"Authorization": "Basic XYZ"
}
} matching body object tags.for(id) => { "id" : id } and headers { "content-type" : ct }