Greetings,
I am trying to create a custom search API that filters the records based on users. I am extending the BaseRestHandler and I need to get the current user name within the prepareRequest method. I appreciate help in this matter.
public class CustomSearchAction extends BaseRestHandler {
public RestChannelConsumer prepareRequest(final RestRequest request, final NodeClient client) throws IOException {
}
}
Thanks