JSON API adapter for Chaos ORM, enabling RESTful API integration following the JSON:API specification. Current stable version is 7.0.3. This package requires Chaos ORM and an XMLHttpRequest polyfill for Node.js. It serializes and deserializes JSON:API payloads for Chaos entities. Released under the MIT license. Differentiators: seamless integration with Chaos ORM, no additional schema configuration needed.
npm install chaos-json-apiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up Chaos JSON API with a remote JSON:API endpoint, define a model, and fetch a resource.
Install and import 'xhr2' or 'xmlhttprequest' before using chaos-json-api in Node.
Check documentation for recommended usage patterns.
Always call source.model(MyModel) after defining the model.
Use adapter: 'http' and ensure chaos-json-api is installed.
Use const JAA = require('chaos-json-api') or import JAA from 'chaos-json-api'.