Closed sebastienlevert closed 9 months ago
This appears because I don't specify the ConsistencyLevel header... For counts, should we automatically add it? What are we doing in .NET and other languages? https://learn.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0&tabs=php#example-3-get-only-a-count-of-users
We don't automatically add it in the other languages. Graph's OpenAPI schema at the moment doesn't flag ConsitencyLevel as a required header for the $count requests. Also not sure there's a way to specify a default value for a required header.
We should NOT automatically add it. The reason why the service teams required that header was to:
Without disclosing too much publicly, over time and based on telemetry, the service teams will relax the header/count requirements on a per endpoint basis so existing applications get transparently migrated over to mezzo.
That means we should know this in our snippet generation, then?
And it prevents further execution of an application.
Error is the following: