public APIGatewayProxyResponse apiGatewayPocoFuncHandler()

in src/LambdaLibrary/Wrappers.cs [19:36]


        public APIGatewayProxyResponse apiGatewayPocoFuncHandler(APIGatewayProxyRequest proxyReq)
        {
            Console.WriteLine("request received: " + proxyReq.Body);

            APIGatewayProxyResponse resp = new APIGatewayProxyResponse();
            Person p = Utf8Json.JsonSerializer.Deserialize<Person>(proxyReq.Body);
            Console.WriteLine("poco object deserilized");
 
            Person retVal = new SomeFunctionality().GetPersonDetails(p);
            string strRetVal = Utf8Json.JsonSerializer.ToJsonString<Person>(retVal);
           
            Console.WriteLine("poco object serilized for return: " + strRetVal);
            return new APIGatewayProxyResponse
            {
                Body = strRetVal,
                StatusCode = 200
            };
        }