devour-client icon indicating copy to clipboard operation
devour-client copied to clipboard

Don't just consume your JSON API, Devour it...

Results 55 devour-client issues
Sort by recently updated
recently updated
newest added

Hello. There is pagination methods built in? I found [this comment](https://github.com/twg/devour/issues/26#issuecomment-320709693), but nothing in docs. Thanks in advance.

Hi, i have the following models: ``` client.define('role', { name: '', displayname: '', service_authorizations: { jsonApi: 'hasMany', type: 'service_authorization' } }) client.define('service', { name: '', displayname: '', service_authorizations: { jsonApi:...

Hi there, according to the JsonApi specs [Updating To-One Relationships](https://jsonapi.org/format/#crud-updating-to-one-relationships) I'm trying to build this path `/articles/1/relationships/author` using devour. My code lokes like this: ``` JsonApi.one('article', 1) .relationships() .all('author') ```...

Hello! There are two methods `update` and `patch` and they look very similar. Could you please describe what is the difference between them and maybe add this to the documentation....

I created the following model: ```javascript jsonApiInstance.define('screen', { name: '' } ``` When I send `patch` request, I get the following error: ``` :5000/screens/3:1 PATCH http://localhost:5000/screens/3 409 (CONFLICT) minilog.js?2831:17 devour...

The part of the README on [cancellable requests][readme] says: [readme]: https://github.com/twg/devour/blob/v2.0.13/README.md#your-second-middleware ```js let cancellableRequest = { name: 'axios-cancellable-request', req: function (payload) { let jsonApi = payload.jsonApi return jsonApi.axios(payload.req, { cancelToken:...

In order to `patch` to work properly, one need to add the `id` field to the `payload` parameter of the `patch` command: ```javascript export const setScreenHomeAction = ({commit}, {screenId, isHome})...

Hello, First of all, I thanks for your DEVOUR. devour json api is a great package, I think. I've seen all approaches in the [JavaScript client implementations](http://jsonapi.org/implementations/#client-libraries-javascript) but jsonapi-datastore and...

Hi I'm trying to request this public jsonapi url ```javascript const JsonApi = require('devour-client') const jsonApi = new JsonApi({apiUrl: 'https://live-contentacms.pantheonsite.io/api/'}) jsonApi.define('recipes', { title: '' }) console.log(jsonApi.findAll('recipes')) ``` I'm getting this...

When specifying relationships via `hasOne` and `hasMany`, i do not like that i have to rely on those magic strings - and could easily make a mistake typing them out....