json-api-schema
Version:
JSON Api Schema is a JSON dialect that can describe any Web Based API that uses JSON to exchange data.
27 lines (16 loc) • 771 B
JavaScript
var Api, Scope,
__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; };
Scope = require('./scope');
Api = (function(_super) {
__extends(Api, _super);
Api.entity("Api");
Api.accessors("version", ["get", "set"]);
Api.accessors("protocols", "types", ["get-key", "put-key", "put-keys", "delete-key"]);
Api.children("actions", "events", "resources", "types");
function Api(options) {
Api.__super__.constructor.call(this, options);
}
return Api;
})(Scope);
module.exports = Api;