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

feat(type-safe-api): add default interceptors for typescript java and python handlers #542

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

cogwirrel
Copy link
Member

Add 5 default interceptors - TryCatchInterceptor for error handling, CorsInterceptor for adding cors headers, and Metrics, Tracing and Logging using AWS Powertools for Lambda. Use these interceptors by default in the generated handler stubs. Additionally adds a "Response" class for TypeScript and Python for simplifying construction of the response objects. Note that TryCatchInterceptor will catch and return any api responses that are thrown as exceptions.

… python handlers

Add 5 default interceptors - TryCatchInterceptor for error handling, CorsInterceptor for adding cors
headers, and Metrics, Tracing and Logging using AWS Powertools for Lambda. Use these interceptors by
default in the generated handler stubs. Additionally adds a "Response" class for TypeScript and
Python for simplifying construction of the response objects. Note that TryCatchInterceptor will
catch and return any api responses that are thrown as exceptions.
Copy link
Contributor

@agdimech agdimech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOICE

@agdimech agdimech merged commit 7f5f3fe into mainline Aug 21, 2023
3 checks passed
@agdimech agdimech deleted the feat/handler-interceptor-gen branch August 21, 2023 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants