function testerImpl(req, res) {
    var code = 500;
    var message = "ERROR: Wrong parameters";
    if(('params' in req) && 'code' in req.params ){
        code = parseInt(req.params.code);
        message = "Request Method:" + req.method +', params.code: ' + req.params.code;
    }

    if(('query' in req) && ('delay' in req.query)){
        var delay = parseInt(req.query.delay);
        setTimeout(function(){
            res.status(code).json({code: code, message: message});
        },delay);
    }else {
        res.status(code).json({code: code, message: message});
    }
}
@swagger
/paramstest/{code}/and/{value}:
  get:
    operationId: getTestWithPathParams
    summary: Test API with path parameters
    produces:
      - application/json
    responses:
       default:
         description: Response Message
         schema:
           $ref: '#/definitions/errorModel'
    parameters:
      - name: code
        in: path
        description: first parameter
        required: true
        type: integer
        format: int64
      - name: value
        in: path
        description: second parameter
        required: true
        type: string
      - name: delay
        in: query
        description: second parameter
        required: false
        type: string