jinqu-odata
jinqu-odata copied to clipboard
ODataQuery bound actions (with body) and bound functions (with parameters)
jinqu-odata version
1.1.3
Current behavior
Not available
Proposed behavior
- Executing actions bound to entity type using POST
await service.companies()
.byKey(5)
.action("Lock")
.setData(value);
.executeAsync();
- Executing functions bound to entity type using GET, with optional parameters
var result: Contractor = await service.companies()
.byKey(5)
.function("GetContractor")
.withParameters({ country: "USA", revenue: 30000 })
.executeAsync<Contractor>();
PS. Already implemented in my repository.