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

Configurable ResourceInformationHandlerMethodArgumentResolver [DATAREST-1011] #1373

Open
spring-projects-issues opened this issue Feb 22, 2017 · 1 comment
Assignees
Labels

Comments

@spring-projects-issues
Copy link

Joerg Bellmann opened DATAREST-1011 and commented

Hi, this is more a question for a better way than what we did with a small 'hack'.

Spring-Data-Rest does a lot of things out-of-the-box. And binding parameters to do a queryDsl-search is also cool and we would like to use it.

Unfortunately our company has some 'Rest-Guidelines' mentioning that parameters have to be 'snake_case' instead of 'camelCase'. The problem is, that the search has no mapping for that and will not work.

So I 'fixed' it in an ugly way and want to know how can we solve this issue in a better way.

The small showcase project is on github..

The ugly part starts here.

It would already be helpful if :

  • QuerydslAwareRootResourceInformationHandlerMethodArgumentResolver is extendable
  • the configuration that creates the RootResourceInformationHandlerMethodArgumentResolver as a bean could check for an existing bean already provided, maybe with '@ConditionalOnMissingBean'

Affects: 2.6 GA (Ingalls)

1 votes, 2 watchers

@tgeens
Copy link
Contributor

tgeens commented Jul 12, 2021

I have a similar use case where I would like to plug in my own customized QuerydslAwareRootResourceInformationHandlerMethodArgumentResolver.

Since #1981 my workaround is using a BeanPostProcessor, but having a cleaner approach would be very usefull.

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

No branches or pull requests

3 participants