How can I ref API gateway endpoint in serverless?

Viewed 1531

I am using serverless.yml as the infra. framework. I create a lambda with a API gateway like below code:

functions:
  create:
    handler: posts.create
    events:
      - http:
          path: posts/create
          method: post
          authorizer: xxx:xxx:Lambda-Name

it will generate a endpoint for the API gateway. But how can I reference this endpoint in other place in the yml file?

1 Answers
Related