I have a lambda function that is invoked with API Gateway. The function is working using the GET method with this code:
func handleRequest(ctx context.Context, request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) {
// add code here
return events.APIGatewayProxyResponse{Body: request.Body, StatusCode: 200}, nil
}
func main() {
lambda.Start(handleRequest)
}
I have this event.APIGatewayProxyRequest and GET method. But when I try to migrate the URL to a Function URLs, I have nothing similar to set the GET method. How was the URL supposed to know which method to use in the POSTMAN? and...
Do we have an equivalent for event.APIGatewayProxyRequest to do the request?
When I invoke it with URL, I got a 502 BAD GATEWAY error.