@ima/plugin-halson-rest-client
Version:
HAL+JSON REST API client for IMA applications.
34 lines (33 loc) • 1.08 kB
JavaScript
/**
* Decorator for setting the static {@code embedName} property of an entity
* class, which specifies the name of the embed that contains the entities
* when listing the resource.
*
* @param {string} embedName The name of the embed that contains the entities
* when listing the resource.
* @returns {function(function(
* new: AbstractHalsonEntity,
* HalsonRestClient,
* Object<string, *>,
* ?AbstractHalsonEntity=
* ))} Callback that sets the list of name of embed that contains the
* entities when listing the resource represented by the provided
* class.
*/ "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _default;
}
});
const _default = (embedName)=>{
return (classConstructor)=>{
Object.defineProperty(classConstructor, 'embedName', {
value: embedName
});
};
};
//# sourceMappingURL=embedName.js.map