public APIGatewayProxyResponseEvent handleRequest()

in ExportTenantData/src/main/java/tenant/export/ApiGatewayHandler.java [30:40]


    public APIGatewayProxyResponseEvent handleRequest(final APIGatewayProxyRequestEvent input, final Context context) {
        switch(input.getHttpMethod().toLowerCase()) {
            case "get":
                return handleGetRequest(input, context);
            case "post":
                return handlePostRequest(input, context);
            default:
                return new APIGatewayProxyResponseEvent()
                    .withStatusCode(405);
        }
    };