Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat Configure OData annotations #106

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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