Giter Club home page Giter Club logo

aor-jsonapi-client's People

Contributors

drush avatar maxschridde1494 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

aor-jsonapi-client's Issues

meta['total'] is required by plug-in but not part of the JSON API spec

We've run into an issue where this client is requiring a meta tag that contains a total value in the JSON response from the server. There is nothing in the JSON API spec that requires this, so the client should be able to gracefully recover when it's not provided OR provided some other way to plug-in code that provides the total record count (in case the server puts that total in a different, non-standard meta field).

I see that #1 was raised about something similar, though that issue is light on detail.

Also see JSON API - Examples:

Note: Putting a property like "total-pages" in "meta" can be a convenient way to indicate to clients the total number of pages in a collection (as opposed to the "last" link, which simply gives the URI of the last page). However, all "meta" values are implementation-specific, so you can call this member whatever you like ("total", "count", etc.) or not use it at all.

Edit form and updates

I'm having issues with the edit form, which may well be user error, but I could do with some advice. The show method on my API returns something like

{"data":{"type":"post","id":"1","attributes":{"title":"Magic"}}}

The only way I can get an Edit Form to work is by having fields like

<TextInput source="attributes.title" />

However, when I do that, submitted the form doesn't include any updated attributes. Any wisdom?

Could not update records

Object.keys(params.data.attributes).forEach(key => attrs[key] = params.data[key]);
should be:
Object.keys(params.data).forEach(key => attrs[key] = params.data[key]); ?

Support React Admin ? (AOR 2.0)

Hi,

Admin-On-Rest was renamed to React Admin with its 2.0 upgrade.
Will you plan to support this version as well ?

Thank you!

where does type detected?

I'm newbie of javascript.

Please tell me how detect type in this code.

I understand apiUrl & httpClient is arguments.
export default (apiUrl, httpClient = jsonApiHttpClient) => {

I can't understand this phrase.
return (type, resource, params) => {

Who detect type, resource, params?

I feel that this post is not suitable on this place.Sorry..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.