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

Add AWS Api Gateway integration #204

Open
jgroom33 opened this issue Feb 26, 2020 · 5 comments · May be fixed by #796
Open

Add AWS Api Gateway integration #204

jgroom33 opened this issue Feb 26, 2020 · 5 comments · May be fixed by #796
Labels
area/contrib Indicates an issue on contrib area. kind/enhancement

Comments

@jgroom33
Copy link

Add an integration similar to django/flask

+---------+    event   +---------+
| API_GW  +----------->+  lambda |
+---------+            +---------+

The event object is structured as here: https://docs.aws.amazon.com/lambda/latest/dg/services-apigateway.html

Example implementation:

def handler(event, context):

  from openapi_core.validation.request.validators import RequestValidator
  from openapi_core.contrib.aws import ApiGatewayEventOpenAPIRequest

  openapi_request = ApiGatewayEventOpenAPIRequest(event)
  validator = RequestValidator(spec)
  result = validator.validate(openapi_request)
@jjmmolina
Copy link

Hi @jgroom33 , is this, finally, implemented?

@paulcruse3
Copy link

Yes, I too would like to know if this is completed and if show how to implement. Because I don't see it in the docs or in the code base

@p1c2u
Copy link
Collaborator

p1c2u commented Mar 22, 2023

I don't use apig+lambda much but I can try to implement this if it's a need for this.

@p1c2u p1c2u reopened this Mar 22, 2023
@paulcruse3
Copy link

@p1c2u that would be awesome! 🙏🏽

@alex-cook-finres
Copy link

alex-cook-finres commented Feb 23, 2024

This would be a great addition, but are there any clean workarounds for doing this right now?

@p1c2u p1c2u linked a pull request Feb 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/contrib Indicates an issue on contrib area. kind/enhancement
Projects
None yet
5 participants