@@ -49,14 +49,21 @@ To use this extension, configure restclient component in your application config
4949 ],
5050```
5151
52- | Parameter | Description |
53- | ------------------ | ---------------------------------------------------------------------------------------------------------------- |
54- | ` baseUrl ` | The location of the api. E.g. for http://api.site.com/v1/users the ` baseUrl ` would be http://api.site.com/v1/ |
55- | ` auth ` | Either a Closure which returns a ` string ` or a ` string ` . The rest connection will be passed as parameter. |
56- | ` usePluralisation ` | Whether to use plural version for lists (index action) or not (e.g. http://api.site.com/users instead of ` user ` ) |
57- | ` useFilterKeyword ` | Whether to use "filter" key word in url parameters when filtering (e.g. ?filter[ name] =user instead of ?name=user |
58- | ` enableExceptions ` | Whether the connection should throw an exception if response is not 200 or not |
59- | ` itemsProperty ` | If your items are wrapped inside a property (e.g. ` items ` ), set it's name here |
52+ | Parameter | Default | Description |
53+ | ------------------- | -----------| ------------------------------------------------------------------------------------------------------------- |
54+ | ` baseUrl ` | ` '' ` | The location of the api. E.g. for http://api.site.com/v1/users the ` baseUrl ` would be http://api.site.com/v1/ (required) |
55+ | ` auth ` | | Either a Closure which returns a ` string ` or a ` string ` . The rest connection will be passed as parameter. |
56+ | ` usePluralisation ` | ` true ` | Whether to use plural version for lists (index action) or not (e.g. http://api.site.com/users instead of ` user ` ) |
57+ | ` useFilterKeyword ` | ` true ` | Whether to use "filter" key word in url parameters when filtering (e.g. ?filter[ name] =user instead of ?name=user |
58+ | ` enableExceptions ` | ` false ` | Whether the connection should throw an exception if response is not 200 or not |
59+ | ` itemsProperty ` | | If your items are wrapped inside a property (e.g. ` items ` ), set it's name here |
60+ | ` requestConfig ` | ` [] ` | Client request configuration |
61+ | ` responseConfig ` | ` [] ` | Client response configuration |
62+ | ` updateMethod ` | ` 'put' ` | The method to use for update operations. |
63+ | ` isTestMode ` | ` false ` | Whether we are in test mode or not (prevent execution) |
64+ | ` enableQueryCache ` | ` false ` | Whether to enable query caching |
65+ | ` queryCacheDuration ` | ` 3600 ` | The default number of seconds that query results can remain valid in cache |
66+ | ` queryCache ` | ` 'cache' ` | The cache object or the ID of the cache application component |
6067
6168## Usage
6269Define your Model
0 commit comments