command
Version:
v0.0.0-...-d78993e
Opens a new window with list of versions in this module.
Published: May 17, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
FogLight API Backend
Overview
- API Gateway receives HTTP request from Go CLI client.
- API Gateway forwards request to API backend Lambda.
- API Backend Lambda queries DynamoDB tables/indexes and returns results back to GO CLI client.
OpenAPI Specification Development
Swagger Editor
- Run the docker commands below and open the Swagger editor in your browser at http://localhost/
- Copy the swagger-api.yaml file into the Swagger editor to make changes.
- Copy the updated swagger spec from your browser to the local swagger-api.yaml file.
docker pull swaggerapi/swagger-editor
docker run -d -p 80:8080 swaggerapi/swagger-editor
To docker build the server.
export GITHUB_USER={username}
export GITHUB_ACCESS_TOKEN={your_access_toke}
docker build --build-arg GITHUB_USER=$GITHUB_USER --build-arg GITHUB_ACCESS_TOKEN=$GITHUB_ACCESS_TOKEN -t apiserver .
To docker run the server locally.
docker run --rm -it -p 8080:8080 apiserver
http://localhost:8080/default/ping
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.