-
Notifications
You must be signed in to change notification settings - Fork 81
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
Support for /$count operation #223
Comments
Hi Micah, Currently there are no path items produced for If you see the need for optionally adding these, please contribute this feature. Thanks in advance |
Hey @ralfhandl :) |
Hi @Thorbenl, Could you please explain how this would make your lives easier? Background for my question: a typical use for the count of a collection is showing a table with some rows and a heading containing the total number of rows: This is best implemented by requesting the initial set of rows plus the total count in one request GET /Products?$count=true&$top=20 Sending two requests, one for the top 20, and one for the total count, is IMHO an anti-pattern. Which is why the tool does not advertise the Thanks in advance |
Hi @ralfhandl Thanks for making that clear - I do not think we need anything here then, but change the frontend and tell the engineers to change it to the more streamlined approach. |
https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_RequestingtheNumberofItemsinaCollect
Is there existing support for this? I'm not seeing it in the output and can't find any parameters to enable it.
I'm using the
tools/V4-CSDL-to-OpenAPI.xsl
The text was updated successfully, but these errors were encountered: