Skip to content

Add AWS Api Gateway integration #204

Open

Description

@jgroom33

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)

Activity

  1. jjmmolina commented on Mar 21, 2022

    @jjmmolina

    Hi @jgroom33 , is this, finally, implemented?

  2. paulcruse3 commented on Mar 21, 2023

    @paulcruse3

    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

  3. p1c2u commented on Mar 22, 2023

    @p1c2u
    Collaborator

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

  4. reopened this on Mar 22, 2023
  5. paulcruse3 commented on Mar 22, 2023

    @paulcruse3

    @p1c2u that would be awesome! 🙏🏽

  6. alex-cook-finres commented on Feb 23, 2024

    @alex-cook-finres

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions