@ima/plugin-rest-client
Version:
Generic REST API client plugin for the IMA application framework.
19 lines (18 loc) • 634 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.
*/ export default ((classConstructor)=>{
Object.defineProperty(classConstructor, 'inlineResponseBody', {
value: true
});
});
//# sourceMappingURL=inlineResponseBody.js.map