json-api-schema
Version:
JSON Api Schema is a JSON dialect that can describe any Web Based API that uses JSON to exchange data.
23 lines (14 loc) • 741 B
JavaScript
var Entity, Interaction,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
Entity = require('./entity');
Interaction = (function(_super) {
__extends(Interaction, _super);
Interaction.entity("Interaction");
Interaction.accessors("protocols", ["get-key", "put-key", "put-keys", "delete-key"]);
function Interaction(options) {
Interaction.__super__.constructor.call(this, options);
}
return Interaction;
})(Entity);
module.exports = Interaction;