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

Suppose my API is there https://www.example.com/api/ But that depending on the type of users/access control, I have namespaces that allow to get more or less information https://www.example.com/api/admin/users (when providing an...

https://github.com/twg/devour/blob/master/src/middleware/json-api/res-errors.js#L5 If the JSON is accidentally malformed according to the JSONAPI spec, the error is not returned, the Logger just returns "Unidentified Error" in the console. But if you step...

Heyhey, at first: Thank you very much for this great library! I have the following question and thought that maybe someone has an easy answer because I am actually quite...

Hi, Do you have any example of multiple model definition of model reuse? How and where to move models definition out of the main logic to use them multiple times...

I'm trying to have devour (v2.0.7) receive following response in an RN app: ``` { "errors":[ { "title":"Authentication failed", "detail":"Invalid username and/or password", "code":"101", "status":"400" } ] } ``` but,...

Deserializer converts attribute names from "kebab-case" to camel case when fetching data; on the way back, the serializer does nothing. JSONAPI spec recommends kebab-case, I believe. So, for example, my...

Hi According to JSON API spec, you can update a relationship by using the "relationships" link ex `post/1/relationships/comments`. Currently Devour only allows this through the resource link `post/1` by adding...

enhancement
help wanted

## The Challenge The specification states that both the top level document and any resource may contain meta and links members. However, the deserialization here will nuke any resource specified...

``` javascript // Define Model jsonApi.define('post', { title: '', content: '', tags: [] }) ``` @Emerson why is this step necessary? I'm unable to find any reference to the models...

enhancement
help wanted

It would be nice to be able to set null for the value of `include` for example, and have the resulting request just not include that param. That way it...