crud icon indicating copy to clipboard operation
crud copied to clipboard

Is it possible to enable the default query parameters in custom routes?

Open oscardianno opened this issue 4 years ago • 1 comments

I want to write a custom route with a custom function, and enable the default parameters just as nestjsx would do.

In the past, I did override a route to provide a custom function:

@Override('getManyBase')
  @ApiOperation({
    summary: 'Get all notifications of the user logged in',
  })
  async getAllUserNotifications(@ParsedRequest() parsedRequest: CrudRequest) {
    return this.service.getUserNotifications(parsedRequest);
  }

And that brought me the parameters in the documentation just as I needed: image

However, this time I can't override the default route (because I need it), but I want to create another route and also use the default parameters, yet I haven't found a way to re-use them. Is it possible?

oscardianno avatar Jun 30 '21 18:06 oscardianno

I have the same question. In the documentation it is not clear if we can extend this functionality to our custom methods.

Does anyone know if this is possible?

Thanks in advance.

avalero85 avatar Oct 07 '21 20:10 avalero85