REST service classes can derive some default implementation from this trait.
Type Params | Return Type | Name and description |
---|---|---|
|
def |
apiFetch(String path = '', Map http_headers = [:], String http_method = 'GET', String data = '') A method to simplify fetching from remote REST services. |
|
String |
baseUrl() A method for getting the API URL which will be used by apiFetch(String). |
|
Map |
header(Map original_headers) A method for getting authentication headers and other default headers used by apiFetch(String). |