Skip to content

Commit c39d145

Browse files
committed
http api
1 parent 8c50705 commit c39d145

File tree

1 file changed

+3
-3
lines changed
  • src/api/Elastic.Documentation.Api.Lambda

1 file changed

+3
-3
lines changed

src/api/Elastic.Documentation.Api.Lambda/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
process.Refresh();
5454
Console.WriteLine($"Elastic OTel configured. Memory: {process.WorkingSet64 / 1024 / 1024} MB");
5555

56-
_ = builder.Services.AddAWSLambdaHosting(LambdaEventSource.RestApi, new SourceGeneratorLambdaJsonSerializer<LambdaJsonSerializerContext>());
56+
_ = builder.Services.AddAWSLambdaHosting(LambdaEventSource.HttpApi, new SourceGeneratorLambdaJsonSerializer<LambdaJsonSerializerContext>());
5757
process.Refresh();
5858
Console.WriteLine($"AWS Lambda hosting configured. Memory: {process.WorkingSet64 / 1024 / 1024} MB");
5959

@@ -87,8 +87,8 @@
8787
throw;
8888
}
8989

90-
[JsonSerializable(typeof(APIGatewayProxyRequest))]
91-
[JsonSerializable(typeof(APIGatewayProxyResponse))]
90+
[JsonSerializable(typeof(APIGatewayHttpApiV2ProxyRequest))]
91+
[JsonSerializable(typeof(APIGatewayHttpApiV2ProxyResponse))]
9292
[JsonSerializable(typeof(AskAiRequest))]
9393
[JsonSerializable(typeof(SearchRequest))]
9494
[JsonSerializable(typeof(SearchResponse))]

0 commit comments

Comments
 (0)