@rheactorjs/models

4.0.1 • Public • Published

models

npm version Build Status Greenkeeper badge js-standard-style semantic-release Test Coverage Code Climate

A collection of models.

JSON-LD

ℹ️ See also: RESTful API in server

$context

When creating an object instance from a JSON representation, the fromJSON() method expects the presence of the correct $context value. When serializing and unserializing using these models, this is done automatically.

This makes it impossible to use the data for one entity as another.

$contextVersion

The $contextVersion was added to enable clients that cache entities, e.g. in localStorage, to check if their application code is compatibel with the cached data.

Readme

Keywords

none

Package Sidebar

Install

npm i @rheactorjs/models

Weekly Downloads

1

Version

4.0.1

License

MIT

Unpacked Size

74.8 kB

Total Files

18

Last publish

Collaborators

  • coderbyheart