Delegating to the search resource interface
(1623)
The annotations were not showing up because we were using the generic search controller. This fixes annotations on search interfaces.
fixes
@@ -59,7 +59,7 @@ class EntitySearchRequestTemplate {
EntitySearchRequestHandler handler = new EntitySearchRequestHandler(
resolver,
requestMapping,
- handlerMethod,
+ new HandlerMethod(searchResource.getMethod().getClass(), searchResource.getMethod()),
searchResource,
resource);
if (handler.resourceType() == ResourceType.ITEM || !collectionHandlerAdded) {
