The DispenserProvider.BackEnd repository contains a Lambda function that acts as the handler for endpoints in the API4.Dispenser GraphQL API.
The Lambda function accepts one of several supported queries and, based on the request, invokes the appropriate handler.
-
MediatR Integration:
Utilizes theMediatRlibrary to route incoming requests to their corresponding handlers. -
Automatic Request Validation:
IncorporatesMediatR.Extensions.FluentValidation.AspNetCorefor automatic validation of requests. This means that the request validation is seamlessly handled in the pipeline without explicit calls to validators within the handler code.
For a complete list of errors generated by the Lambda function, please refer to the Errors Documentation.
To test the Lambda function locally, you can use the AWS Lambda .NET Mock Lambda Test Tool. For detailed instructions on local testing and debugging, refer to the Lambda Documentation