This is an example interface for GitHub API. Using this tool you will be able to view publicly available gists for a user.
This repository contains the Python API code and Docker file as well as helm chart required to get the tool up and running.
-
Clone the GitHub repo:
git clone https://github.com/drshott/gist-api.git
-
Navigate inside the directory
cd gist-api/app -
Run the following command to build the image:
docker build -t <username>/<imagename> .
-
Run the following command to start the containers:
docker run -n gist-api -p 8080:8080 -itd <username>/<imagename>
Set nginx ingress for your kubernetes cluster if not done already.
helm install nginx-ingress ingress-nginx/ingress-nginx --set controller.publishService.enabled=trueInstall the chart
cd gist-api/
helm install gist-api ./charts/gist-apiYou can now try the API endpoints
Swagger documentation
For docker image
curl -v http://localhost:8080/docs For helm Add gistapi.localhost entry in your hosts file
curl -v https://gistapi.localhost/docs