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

Add SortAsQueryParam annotation #2777

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ondrejkrpec
Copy link

@ondrejkrpec ondrejkrpec commented Nov 8, 2024

Hello,

I would like to propose a new annotation: @SortAsQueryParam. This annotation allows the use of the Sort object in query parameters. Currently, the project supports using the Pageable object in query parameters through the @PageableAsQueryParam annotation.

However, there isn't an easy way to utilize the Sort object independently without involving pagination. This limitation means that developers who need sorting capabilities without pagination have to implement workarounds.

By introducing the @SortAsQueryParam annotation, we can provide users with a straightforward option to include sorting in their API endpoints without the need for pagination. This enhancement will offer greater flexibility and convenience for those who require sorting functionality on its own.

Thank you for considering this proposal.

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