How to deploy a APIGateway having an exisitng integration with http url using serverless?

Hello All,

I’m trying to deploy an API having integration with the existing HTTP endpoint using serverless. I’m not able figure out the way to achieve. I need your help/assist on this.

Thanks in advance.
@Karthi96

I have figured it out

      >  service: Test-API
> 
> provider:
>   name: aws
>   runtime: nodejs10.x
>   description: Test API # optional, Description to publish to AWS
>   region: us-east-1
>   stage: UAT  
> 
> functions:
>   GetCart:
>     handler: handler.hello
>     events:
>       - http:
>           path: /cart
>           method: get
>           authorizer: aws_iam
>           integration: http
>           cors: false
>           request:
>             uri: 'http://karthibalu.simplesite.com'
>             passThrough: 
>             parameters:
>               headers:
>                 X-Request-Id: false
>                 X-Ep-User-Id: false
>           response:
>             statusCodes:
>               200:
>                 pattern: '' 
>                 headers:
>                   Strict-Transport-Security: "'max-age=31536000'"
>                   Access-Control-Expose-Headers: "'cLocation'"
>                   Access-Control-Allow-Origin: "'Original Url'"
>                   cLocation: integration.response.header.Location
>               500:
>                 pattern: '500' 
>                 headers:
>                   Strict-Transport-Security: "'max-age=31536000'"
>                   Access-Control-Allow-Origin: "'Original Url'"

Looking forward to help others on this issue.