An open API service indexing awesome lists of open source software.

https://github.com/houzuoguo/optionalcloud

An example AWS API Gateway program that runs both on and off-cloud
https://github.com/houzuoguo/optionalcloud

aws aws-lambda cloud go golang jwt rest-api

Last synced: 2 months ago
JSON representation

An example AWS API Gateway program that runs both on and off-cloud

Awesome Lists containing this project

README

          

# optionalcloud
An experiment running Go program as AWS Lambda to route and serve HTTP APIs on AWS API Gateway, while retaining the freedom of running the same HTTP APIs using custom
HTTP servers without the involvement of AWS API Gateway.

# Features
- GET / - Display a greeting message.
- POST /login/{username}?password= - Authenticate a user using username/password combination, return JWT if authorised.
- GET /login - Return user name if the Authorization header in the incoming request contains a valid JWT.
- Run stand-alone HTTP server to serve the same APIs.