Skip to content

redhat-developer-demos/triviahhh-api-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

triviahhh-api-gateway

OpenShift API Gateway for fictional company Triviahhh.com

Part of the Red Hat Developer learning path entitled "Using Red Hat OpenShift labels"

Endpoints

Endpoint Description
gateway/quotes Returns a JSON array of quotes
gateway/quotes/{id} Given an integer quote ID, returns that quote
gateway/quotes/random Returns a random quote

Create it

oc new-app --image=quay.io/donschenck/triviahhh-api-gateway:latest --name=triviahhh-api-gateway --labels=app.kubernetes.io/part-of=quotesforu,systemname=quotesforu,tier=apigateway,language=quarkus,quotesforu=apigateway

oc expose service/triviahhh-api-gateway

About

OpenShift API Gateway for fictional company Triviahhh

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published