jinqu-odata icon indicating copy to clipboard operation
jinqu-odata copied to clipboard

ODataQuery bound actions (with body) and bound functions (with parameters)

Open buchatsky opened this issue 2 years ago • 0 comments

jinqu-odata version

1.1.3

Current behavior

Not available

Proposed behavior

  1. Executing actions bound to entity type using POST
await service.companies()
    .byKey(5)
    .action("Lock")
    .setData(value);
    .executeAsync();
  1. 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.

buchatsky avatar Jan 28 '23 22:01 buchatsky