findEvents(req, res, next) {
    if (!req.swagger.params.limit.value) {
      req.swagger.params.limit.value = DEFAULT_LIMIT;
    }

    // Extracting type from params to filter by context.type
    if (req.swagger.params.type && req.swagger.params.type.value) {
      req.swagger.params.context = {
        value: {
          type: req.swagger.params.type.value,
        },
      };

      delete req.swagger.params.type;
    }

    doFind(req, res, next, helper);
  }
/**
   * GET /events
   *
   * Finds zero or more events and sends them back in the response.
   *
   * @param {IncomingMessage} req - The request object
   * @param {ServerResponse} res - The response object
   * @param {Function} next - The next middleware function in the stack
   */
GET /events
Finds zero or more events and sends them back in the response.

@param {IncomingMessage} req - The request object
@param {ServerResponse} res - The response object
@param {Function} next - The next middleware function in the stack
GET / events Finds zero or more events and sends them back in the response . @param { IncomingMessage } req - The request object @param { ServerResponse } res - The response object @param { Function } next - The next middleware function in the stack
findEvents(req, res, next) {
    if (!req.swagger.params.limit.value) {
      req.swagger.params.limit.value = DEFAULT_LIMIT;
    }
    if (req.swagger.params.type && req.swagger.params.type.value) {
      req.swagger.params.context = {
        value: {
          type: req.swagger.params.type.value,
        },
      };
      delete req.swagger.params.type;
    }
    doFind(req, res, next, helper);
  }
findEvents ( req , res , next ) { if ( ! req . swagger . params . limit . value ) { req . swagger . params . limit . value = DEFAULT_LIMIT ; } if ( req . swagger . params . type && req . swagger . params . type . value ) { req . swagger . params . context = { value : { type : req . swagger . params . type . value , } , } ; delete req . swagger . params . type ; } doFind ( req , res , next , helper ) ; }
GET /events
 Finds zero or more events and sends them back in the response.
GET / events Finds zero or more events and sends them back in the response .
// Extracting type from params to filter by context.type