Skip to content

Commit 8153fca

Browse files
docs: update registry guides accoring to CLI outputs (#483)
* docs: update registry guides accoring to CLI outputs * fix: suggestions from code review Co-authored-by: Wojciech Trocki <[email protected]>
1 parent 83c88ac commit 8153fca

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

code-examples/quarkus-service-registry-quickstart/producer/src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ mp.messaging.outgoing.quotes.merge=true
1414
%dev.mp.messaging.outgoing.quotes.apicurio.auth.client.id=${RHOAS_CLIENT_ID}
1515
%dev.mp.messaging.outgoing.quotes.apicurio.auth.client.secret=${RHOAS_CLIENT_SECRET}
1616

17-
mp.messaging.connector.smallrye-kafka.apicurio.registry.url=${SERVICE_REGISTRY_URL}
17+
mp.messaging.connector.smallrye-kafka.apicurio.registry.url=${SERVICE_REGISTRY_URL}${SERVICE_REGISTRY_CORE_PATH}
1818
%test.quarkus.apicurio-registry.devservices.port=8888
1919

2020

docs/registry/quarkus-registry/README.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,17 @@ endif::[]
133133
. On the command line, set the following environment variables to use your Kafka and {registry} instances with Quarkus or other applications. Replace the values with your own server and credential information:
134134
+
135135
* The `<bootstrap_server>` is the bootstrap server endpoint for your Kafka instance.
136-
* The `<core_registry_url>` is the Core Registry API endpoint for your {registry} instance.
136+
* The `<service_registry_url>` is the URL for your {registry} instance.
137+
* The `<service_registry_core_path>` is the constant we use to for setting proper API path for service registry
137138
* The `<oauth_token_endpoint_uri>` is the SASL/OAUTHBEARER token endpoint.
138139
* The `<client_id>` and `<client_secret>` are the generated credentials for your service account.
139140
+
140141
.Setting environment variables for server and credentials
141142
[source,subs="+quotes"]
142143
----
143144
$ export KAFKA_HOST=__<bootstrap_server>__
144-
$ export SERVICE_REGISTRY_URL=__<core_registry_url>__
145+
$ export SERVICE_REGISTRY_URL=__<service_registry_url>__
146+
$ export SERVICE_REGISTRY_CORE_PATH=/apis/registry/v2
145147
$ export RHOAS_OAUTH_TOKEN_URL=__<oauth_token_endpoint_uri>__
146148
$ export RHOAS_CLIENT_ID=__<client_id>__
147149
$ export RHOAS_CLIENT_SECRET=__<client_secret>__

0 commit comments

Comments
 (0)