aws-powertools / powertools-lambda-dotnet

Powertools is a developer toolkit to implement Serverless best practices and increase developer velocity.
https://docs.powertools.aws.dev/lambda/dotnet/
MIT No Attribution
158 stars 24 forks source link

Docs: ASP.NET Core WebAPI example(s) #220

Closed cliff-wakefield-acurus closed 1 year ago

cliff-wakefield-acurus commented 1 year ago

What were you searching in the docs?

Example of how to make use of PowerTools within a C# project created using the serverless.AspNetCoreWebAPI template.

In this template there is no handler method as everything is done through a Lambda Entry Point which is a sub-class of Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction.

Is this related to an existing documentation section?

No response

How can we improve?

Provide more examples, or templates that make use of PowerTools.

Got a suggestion in mind?

No response

Acknowledgment

swimming-potato commented 1 year ago

Hi, I will take this one as a starter :)

mungojam commented 1 year ago

It's probably worth highlighting that web APIs can be hosted using the top level program approach as well. You no longer need to subclass Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction unless you want to override some default behaviour