Skip to content
This repository has been archived by the owner on Aug 8, 2019. It is now read-only.

RHeactorJS/models

Repository files navigation

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.