Skip to content

JSON-API Support #35

Description

@drush

We are looking to use mobx-rest to connect to a variety of backends including some using JSON-API format data.

It looks like there will be a variety of issues to get this to work. At minimum, there needs to be a transformation of data prior to populating Models which doesn't seem to be easily done without overriding all of the primary methods ie fetch(). In addition JSON-API provides additional request-level metadata for things like paging, and total data set sizes. It would be great for this metadata to natively accessible within the mobx-rest API and/or data-shape.

The mobx-jsonapi project appears to be a POC forked from an older version of mobx-rest that demonstrates some of this functionality. It seems like this requirement might be better fulfilled with some extensions to mobx-rest, or a specialized adapter.

Posting this issue to see if any other teams are pursuing the same goal and to facilitate discussion on the cleanest way to implement JSON-API support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions