dynamics-webapi-toolkit icon indicating copy to clipboard operation
dynamics-webapi-toolkit copied to clipboard

Feat Configure OData annotations

Open mjblacker opened this issue 1 year ago • 0 comments

Add in the ability to set the odata.include-annotations header using the queryOptions array.

Setting key: IncludeAnnotations Setting values: false | string See string settings for annotations: https://learn.microsoft.com/en-us/odata/webapi/include-annotations

This provides the option to exclude annotations or limit it to a specific set of annotations. The default is to include annotations so existing behavior has been maintained.

Exclude annotations $client->getList('entityname', ['IncludeAnnotations' => false]);

Limit annotations to any starting with "OData.Community.Display" $client->getList('entityname', ['IncludeAnnotations' => 'OData.Community.Display.*']);

mjblacker avatar Mar 21 '24 05:03 mjblacker