nickryall
Mobx JSON:API

Updated a year ago

Mobx JSON:API

This project provides Model and Collection classes with built in CRUD methods and parsing helpers, to simplify working with a JSON:API (http://jsonapi.org ) compliant API.

Both the Model and Collection classes are built on top of the Mobx (https://mobx.js.org) library and make use of observable arrays, maps and computed getters. This allows views (most likely React components) to observe them and automatically update when relevant data changes.

The project is heavily inpsired by the Backbone's model and collection implementations.

Installation

npm install mobx-jsonapi --save

Useful links

Credits

This library started out as a fork of https://github.com/masylum/mobx-rest. Consider this library for working with Mobx and a RESTful API that doesn't follow the JSON:API spec.