Response wrapped in IResult
Example
const newRole: IIdentified = {
name: 'Custom role'
};
(async () => {
const {data, res} = await inventoryRoleService.create(newRole);
})();
Response wrapped in IResult
Response wrapped in IResult
Example
const inventoryRoleId: number = 1;
(async () => {
const {data, res} = await inventoryRoleService.detail(inventoryRoleId);
})();
Response wrapped in IResultList
Response wrapped in IResult
Example
const updateObject: IIdentified = {
id: 1,
name: 'changed role'
};
(async () => {
const {data, res} = await inventoryRoleService.update(updateObject);
})();
Generated using TypeDoc