Skip to content

Feature request: create BaseRouter with base methods #3971

Open
@dreamorosi

Description

@dreamorosi

Use case

As part of the Event Handler implementation (#3251) we should implement a base class that will be shared by all resolvers (API Gateway REST, HTTP, ALB, etc.) and that allows customers to register routes according to the RFC #3500.

Solution/User Experience

The implementation should follow the RFC in terms of DX and APIs while also being aligned with the implementation in the Powertools for AWS Lambda (Python) repo.

To avoid refactoring down the line, for now we'll implement only a few base methods (i.e. get and post) and minimal configuration options. Follow up issues will cover other methods and missing options.

Alternative solutions

N/A

Acknowledgment

Future readers

Please react with 👍 and your use case to help us understand customer demand.

Metadata

Metadata

Assignees

Labels

confirmedThe scope is clear, ready for implementationevent-handlerThis item relates to the Event Handler Utilityfeature-requestThis item refers to a feature request for an existing or new utility

Type

No type

Projects

Status

Working on it

Relationships

None yet

Development

No branches or pull requests

Issue actions