Skip to content

Conversation

svozza
Copy link
Contributor

@svozza svozza commented Sep 10, 2025

Summary

This PR exposes the REST API event handler under the namespace experimental-rest:

import {Router} from '@aws-lambda-powertools/event-handler/experimental-rest';

Changes

  • Created an index.ts file so classes and functions can be imported from the the top level namespace
  • Updated the exports and typesVersions sections of package.json
  • Where applicable, updated the tests to use the the index.ts file to import classes and utilities.
  • Renamed conversion functions *ToResponse to *ToWebResponse.

Issue number: closes #4456


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@boring-cyborg boring-cyborg bot added dependencies Changes that touch dependencies, e.g. Dependabot, etc. event-handler This item relates to the Event Handler Utility tests PRs that add or change tests labels Sep 10, 2025
@pull-request-size pull-request-size bot added the size/L PRs between 100-499 LOC label Sep 10, 2025
@svozza svozza requested a review from dreamorosi September 10, 2025 09:07
@svozza svozza self-assigned this Sep 10, 2025
@svozza svozza added this to the Event Handler Beta (priority) milestone Sep 10, 2025
@svozza svozza requested a review from sdangol September 10, 2025 09:14
Copy link

@svozza svozza requested a review from dreamorosi September 10, 2025 10:28
@svozza svozza merged commit 23eddfd into main Sep 10, 2025
37 checks passed
@svozza svozza deleted the event-handler/expose-rest-handler-code branch September 10, 2025 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Changes that touch dependencies, e.g. Dependabot, etc. event-handler This item relates to the Event Handler Utility size/L PRs between 100-499 LOC tests PRs that add or change tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maintenance: Expose REST Event Handler Under experimental-rest Path
2 participants