This project aims to demo the Red Hat Service Registry product based on the open-source Apicurio Registry.
Export the variables
export KAFKA_HOST=ramalho-cgi-r--m-dhraomrp--g.bf2.kafka.rhcloud.com:443 export SERVICE_REGISTRY_URL=https://bu98.serviceregistry.rhcloud.com export SERVICE_REGISTRY_CORE_PATH=/apis/registry/v2 export RHOAS_SERVICE_ACCOUNT_OAUTH_TOKEN_URL=https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token export RHOAS_SERVICE_ACCOUNT_CLIENT_ID=my-long-client-id export RHOAS_SERVICE_ACCOUNT_CLIENT_SECRET=my-log-secret
Run the code
mvn quarkus:dev
Consuming
curl -N http://localhost:8080/consumed-movies
Producing
curl --header "Content-Type: application/json" \
--request POST \
--data '{"title":"The Shawshank Redemption","year":1994}' \
http://localhost:8080/movies
curl --header "Content-Type: application/json" \
--request POST \
--data '{"title":"The Godfather","year":1972}' \
http://localhost:8080/movies
curl --header "Content-Type: application/json" \
--request POST \
--data '{"title":"The Dark Knight","year":2008}' \
http://localhost:8080/movies
curl --header "Content-Type: application/json" \
--request POST \
--data '{"title":"12 Angry Men","year":1957}' \
http://localhost:8080/movies