Code Powering the Live Demo of "Kana Tools for Java" on AWS Lambda and API Gateway
- Requires Java 8
- Live API is hosted on "serverless" architecture using Amazon AWS Lambda and API Gateway
- All information about HTTP requests made to API Gateway is passed via a Lambda Proxy JSON string
InputStreamto a function handler as which is executed on AWS Lambda
After cloning this repository, package is built using the Gradle wrapper
cd lambda-kanatools-demo
./gradlew jar
After building the jar, it can then be uploaded to AWS Lambda as-is
GET /kana/convert
com.mariten.lambda.ConvertKanaDemo::handleLambdaRequest
| Name | Type | Description | Required? |
|---|---|---|---|
input_str |
String | UTF-8 string to convert | Yes |
conv_ops |
Positive Int | One or more flags defining which conversions to perform | Yes |
ignore_chars |
String | No characters in this string will be converted | No |
{
"success": true,
"output_str": "<converted result string>"
}