https://github.com/bytekast/local-apigateway-gradle-plugin
Gradle Plugin to Expose HTTP Endpoints in Serverless Framework Locally
https://github.com/bytekast/local-apigateway-gradle-plugin
Last synced: 11 months ago
JSON representation
Gradle Plugin to Expose HTTP Endpoints in Serverless Framework Locally
- Host: GitHub
- URL: https://github.com/bytekast/local-apigateway-gradle-plugin
- Owner: bytekast
- License: apache-2.0
- Created: 2018-03-04T05:22:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-06T07:08:17.000Z (over 8 years ago)
- Last Synced: 2025-07-06T18:05:02.981Z (12 months ago)
- Language: Groovy
- Size: 69.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# local-apigateway-gradle-plugin
Gradle Plugin to Expose API Gateway Endpoints in [Serverless Framework](https://serverless.com/) Locally
To use the plugin, simply add the following to the `plugins` section of `build.gradle`
```groovy
plugins {
id "com.bytekast.serverless-local-apigateway" version "0.5"
}
```
**WARNING!!!** This project is in its very early stages and comes with many limitations, including:
- The handler function must be defined in the following format: `{fullyQualifiedClass}::{methodName}`
- The `http` events `path` and `method` must be explicitly defined
Example:
```yaml
functions:
echo:
handler: com.bytekast.Functions::echo
events:
- http:
path: echo/{message}
method: get
```
The function's method signature must include the following typed parameters:
- `java.util.Map`
- `com.amazonaws.services.lambda.runtime.Context`
Example:
```groovy
Object echo(Map input, Context context) {
// Add function logic here
}
```
**WORK IN PROGRESS!!!**