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
- Host: GitHub
- URL: https://github.com/houzuoguo/optionalcloud
- Owner: HouzuoGuo
- License: bsd-2-clause
- Created: 2016-07-21T06:47:57.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-01T06:56:07.000Z (almost 10 years ago)
- Last Synced: 2025-01-30T03:12:59.935Z (over 1 year ago)
- Topics: aws, aws-lambda, cloud, go, golang, jwt, rest-api
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.