Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rest-api: Deploying multiple http verbs for the same route deploys only the last verb #209

Closed
ebisbe opened this issue May 16, 2018 · 1 comment
Labels
kind/bug Something isn't working

Comments

@ebisbe
Copy link
Collaborator

ebisbe commented May 16, 2018

Deploying multiple http verbs for the same route deploys only the last verb. In the example below will only be available the GET /products.
Taken from the example https://serverless.com/blog/how-create-rest-api-serverless-components/

# ... snip

components:
  # ...snip
  productsApi:
    type: rest-api
    inputs:
      gateway: aws-apigateway
      routes:
        /products:
          post:
            function: ${createProduct}
            cors: true
          get:
            function: ${listProducts}
            cors: true         
@brianneisler brianneisler added the kind/bug Something isn't working label Sep 19, 2018
@brianneisler brianneisler changed the title rest-api-app rest-api: Deploying multiple http verbs for the same route deploys only the last verb Sep 19, 2018
@eahefnawy
Copy link
Member

closing this as we've made a complete rewrite of the core and this issue no longer exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants