@ima/plugin-rest-client
Version:
Generic REST API client plugin for the IMA application framework.
29 lines (28 loc) • 838 B
JavaScript
/**
* Decorator for settings the static {@code inlineResponseBody} flag on an
* entity class, which modifies the results of calls to the rest client's APIs
* and the entity's APIs to return the resolved entities instead of a response
* object.
*
* @param {function(
* new: AbstractEntity,
* RestClient,
* Object<string, *>,
* ?AbstractEntity=
* )} classConstructor The entity class.
*/ "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _default;
}
});
const _default = (classConstructor)=>{
Object.defineProperty(classConstructor, 'inlineResponseBody', {
value: true
});
};
//# sourceMappingURL=inlineResponseBody.js.map