Skip to content

AWS Lambda (NET 6): no response #1541

Answered by ashishdhingra
ZedZipDev asked this question in Q&A
Discussion options

You must be logged in to vote

@ZedZipDev Good morning. Could you please share the sample code solution for investigation? The question is more specific to configuring Swagger UI. Also refer Access Swagger UI in AWS Lambda via API Gateway — Deployed with the Serverless Framework as a guidance, which:

  • Enables documentation file generation in .csproj file:
<PropertyGroup>
   <GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
  • Calls the AddSwaggerGen() extension method to load the XML documentation:
services.AddSwaggerGen(swagger =>
{
        swagger.SwaggerDoc("v1", new OpenApiInfo { Title = "Customers API" });
        var xmlFile = $"{Assembly.GetExecutingAssembly().GetName().Name}.xml";

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ZedZipDev
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
response-requested Waiting on additional info and feedback. Will move to close soon in 7 days. module/aspnetcore-support
2 participants