AlexaCRM / dynamics-webapi-toolkit

Dynamics 365 Web API Toolkit for PHP
MIT License
75 stars 58 forks source link

Feat Configure OData annotations #106

Open mjblacker opened 5 months ago

mjblacker commented 5 months ago

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.*']);