https://github.com/redhat-developer-demos/triviahhh-api-gateway
OpenShift API Gateway for fictional company Triviahhh
https://github.com/redhat-developer-demos/triviahhh-api-gateway
Last synced: 3 months ago
JSON representation
OpenShift API Gateway for fictional company Triviahhh
- Host: GitHub
- URL: https://github.com/redhat-developer-demos/triviahhh-api-gateway
- Owner: redhat-developer-demos
- License: apache-2.0
- Created: 2023-04-20T19:50:08.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-02T17:45:53.000Z (over 1 year ago)
- Last Synced: 2025-01-23T07:47:53.741Z (5 months ago)
- Language: HTML
- Size: 227 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`