Is there any way to validate the path by using serverless framework

Viewed 268

I am using serverless framework for the backend. Use AWS.

my severless.yml like this.

functions:
  getBrand:
    handler: functions/brand/getBrand.handler
    events:
      - http:
          path: ${self:custom.BASE_URL}/brand/{brandUuid}
          private: true
          method: get
          reqValidatorName: onlyBody
          request: 
            parameters: 
             paths: 
                brandUuid: true

I want to validate the brandUuid in the gateway.

After passing verification, call my aws lambda.

0 Answers
Related