You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -173,13 +173,14 @@ Key | Type | Description | Example
173
173
------ | ------ | ------ | ------
174
174
`path` | `string` | Required path to your endpoint, see [path and query parameters](#path-and-query-parameters) | `article/:articleId`
175
175
`expiration` | `number` | Optional time in ms before this service's cached data becomes stale, defaults to 5 minutes
176
-
`method` | `'GET' | 'POST' | 'OPTIONS'...` | Optional HTTP method of your request, defaults to `GET`
176
+
`method` | `GET` | Optional HTTP method of your request, defaults to `GET` | `OPTIONS...`
177
177
`domain` | `string` | Optional specific domain to use for this service, provide the key you set in your `domains` API option
178
178
`prefix` | `string` | Optional specific prefix to use for this service, provide the key you set in your `prefixes` API option
179
179
`middlewares` | `APIMiddleware[]` | Optional array of middlewares that override the ones set globally in your `middlewares` API option, , see [middlewares](#middlewares)
180
180
`disableCache` | `boolean` | Optional, disables the cache for this service (override your [API's global options](#api-options))
181
181
`capService` | `boolean` | Optional, enable or disable capping for this specific service, see [limiting the size of your cache](#limiting-the-size-of-your-cache)
182
182
`capLimit` | `number` | Optional quantity of cached items for this specific service, defaults to `50`, see [limiting the size of your cache](#limiting-the-size-of-your-cache)
183
+
`rawData` | `boolean` | Disables JSON parsing from your network requests, useful if you want to fetch XML or anything else from your api
183
184
184
185
## Fetch options
185
186
@@ -293,7 +294,7 @@ These are Typescript defintions, so they should be displayed in your editor/IDE
293
294
294
295
Pull requests are more than welcome for these items, or for any feature that might be missing.
295
296
296
-
-[] Write a demo
297
+
-[x] Write a demo
297
298
-[ ] Improve capping performance by storing how many items are cached for each service so we don't have to parse the whole service's dictionary each time
298
299
-[ ] Add a method to check for the total size of the cache, which would be useful to trigger a clearing if it reaches a certain size
299
300
-[ ] Thoroughly test custom caching drivers, maybe provide one (realm or sqlite)
0 commit comments