Skip to content

Conversation

mjblacker
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant