You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: JR-572: Updates Service Registry getting started with QE feedback (redhat-developer#646)
* docs: JR-572: Updates Service Registry getting started with QE feedback
* docs: JR-572: Updates Service Registry getting started with more QE feedback
* docs: Adds API Designer guide to top-level README
* docs: Adds and updates guide titles in top-level README
* docs: JR-572: Updates Service Registry getting started with peer review feedback
Copy file name to clipboardexpand all lines: docs/registry/getting-started-registry/README.adoc
+44-33
Original file line number
Diff line number
Diff line change
@@ -137,7 +137,7 @@ endif::[]
137
137
. In the {service-url-registry}[{registry} web console], click *Create {registry} instance*.
138
138
. Enter a unique *Instance name*, such as `my-service-registry-instance`.
139
139
140
-
. Click *Create* to start the creation process for your {registry} instance. The new {registry} instance is listed in the instances table.
140
+
. Click *Create* to start the creation process for your {registry} instance. The new {registry} instance is listed on the *{registry} Instances* page.
141
141
142
142
. When the *Status* is *Ready*, you can start using this {registry} instance. You can use the options icon (three vertical dots) to connect to or delete the instance as needed.
143
143
@@ -149,11 +149,11 @@ NOTE: You can see all {registry} instances created by other users in your organi
149
149
150
150
.Verification
151
151
ifdef::qs[]
152
-
* Is the new {registry} instance listed in the instances table?
152
+
* Is the new {registry} instance listed on the *{registry} Instances* page?
153
153
* Is the state of the new {registry} instance shown as *Ready*?
154
154
endif::[]
155
155
ifndef::qs[]
156
-
. Verify that the new {registry} instance is listed in the instances table.
156
+
. Verify that the new {registry} instance is listed on the *{registry} Instances* page.
157
157
. Verify that the state of the new {registry} instance is shown as *Ready*.
158
158
endif::[]
159
159
@@ -168,7 +168,7 @@ After you create a {registry} instance, you can upload schema or API content to
168
168
* You've created a {registry} instance and the instance is in *Ready* state.
169
169
170
170
.Procedure
171
-
. In the *{registry}* instances page of the web console, select the {registry} instance that you want to upload a schema to.
171
+
. On the *{registry} Instances* page of the web console, select the {registry} instance that you want to upload a schema to.
172
172
. Click *Upload artifact* and complete the form to define the schema details:
173
173
+
174
174
[.screencapture]
@@ -177,45 +177,56 @@ image::upload-schema.png[Image of form to upload a schema]
177
177
+
178
178
* *Group*: Enter an optional unique group name such as `my-org` to organize the artifact in a named collection. Each group contains a logically related set of schemas or API designs, typically managed by a single entity, belonging to a particular application or organization.
179
179
+
180
-
NOTE: Specifying a group is optional when using the web console, and a `default` group is automatically created.
180
+
NOTE: Specifying a group is optional when using the web console, and a `default` group is automatically created.
181
181
+
182
182
* *ID*: Enter an optional unique ID for this artifact such as `my-ID`. If you do not specify a unique artifact ID, {registry} generates one automatically as a UUID.
183
-
* *Type*: Use the default *Auto-Detect* setting to automatically detect the artifact type, or select the artifact type from the drop-down, for example, Avro Schema or OpenAPI.
183
+
* *Type*: Use the default *Auto-Detect* setting to automatically detect the artifact type, or select the artifact type from the list, for example, Avro Schema or OpenAPI.
184
184
* *Artifact*: Drag and drop or click *Browse* to upload a file. For this example, copy and paste the following simple Avro schema:
185
185
+
186
186
[source,json,subs="+quotes,attributes"]
187
187
----
188
188
{
189
-
"type": "record",
190
-
"namespace": "com.example",
191
-
"name": "FullName",
192
-
"fields": [
193
-
{ "name": "first", "type": "string" },
194
-
{ "name": "last", "type": "string" }
195
-
]}
189
+
"type": "record",
190
+
"namespace": "com.example",
191
+
"name": "FullName",
192
+
"fields": [
193
+
{
194
+
"name": "first",
195
+
"type": "string"
196
+
},
197
+
{
198
+
"name": "last",
199
+
"type": "string"
200
+
}
201
+
]
202
+
}
196
203
----
197
204
198
205
. Click *Upload* to complete the operation and display the new artifact details:
199
206
200
-
* *Info*: Displays the artifact name, group, description, lifecycle status, when created, and last modified.
201
-
* *Content*: Displays a read-only view of the full artifact content.
202
-
* *Documentation*: (OpenAPI only): Displays automatically-generated REST API documentation.
203
-
* *Content Rules*: Displays artifact content rules that you can enable and configure. You can configure a *Validity Rule* or *Compatibility Rule* by selecting the appropriate rule configuration from the drop-down. For details on supported rules, see the https://access.redhat.com/documentation/en-us/red_hat_openshift_service_registry/1[{product-long-registry} user documentation^].
207
+
* *Overview* tab:
208
+
** *Version metadata*: Displays details such as the artifact name, artifact ID, global ID, content ID, labels, properties, and so on.
209
+
** *Content rules*: Displays artifact content rules that you can enable and configure. You can configure a *Validity rule* or *Compatibility rule* by enabling the rule and then selecting the appropriate rule configuration from the list. For details on supported rules, see the https://access.redhat.com/documentation/en-us/red_hat_openshift_service_registry/1[{product-long-registry} user documentation^].
210
+
* *Documentation* tab: (OpenAPI only): Displays automatically-generated REST API documentation.
211
+
* *Content* tab: Displays a read-only view of the full artifact content.
212
+
204
213
+
205
214
You can now use this schema to serialize and deserialize messages from Kafka client applications.
206
215
207
-
. On the right of the screen, you can click *Upload new version* to add a new artifact version.
216
+
. You can click *Upload new version* to add a new artifact version.
208
217
209
218
. You can click *Delete* to delete an artifact as needed.
210
219
+
211
220
IMPORTANT: Deleting an artifact deletes the artifact and all of its versions, and cannot be undone. Artifact versions are immutable and cannot be deleted individually.
212
221
222
+
. To show the list of artifacts on the *Artifacts* tab, click the _instance-name_ breadcrumb.
223
+
213
224
.Verification
214
225
ifdef::qs[]
215
-
* Is the new schema in the *Artifacts* table?
226
+
* Is the new schema listed on the *Artifacts* tab?
216
227
endif::[]
217
228
ifndef::qs[]
218
-
* Verify that the new schema is listed in the *Artifacts* table.
229
+
* Verify that the new schema is listed on the *Artifacts* tab.
219
230
endif::[]
220
231
221
232
[id="proc-connecting-registry-clients_{context}"]
@@ -228,14 +239,14 @@ To connect your applications or services to a {registry} instance in the web con
228
239
* You've created a {registry} instance and the instance is in *Ready* state.
229
240
230
241
.Procedure
231
-
. In the *{registry} Instances* page of the web console, for the instance that you want to connect to, select the options icon (three vertical dots), and click *Connection*.
242
+
. On the *{registry} Instances* page of the web console, for the instance that you want to connect to, select the options icon (three vertical dots), and click *Connection*.
232
243
. Depending on the client libraries that you want to use, chose the API for your needs:
233
244
+
234
245
* *Core Registry API* is the most powerful and works with Apicurio client libraries
235
246
* *Schema Registry compatibility API* provides compatibility with the Confluent Schema Registry API
236
247
* *CNCF Schema Registry API* provides compatibility with the CNCF specification
237
248
238
-
. In the *Connection* page, copy the *Core Registry API* URL, or one of the other API URLs if you are using a different client, to a secure location. This is the server endpoint that you'll need to connect to this {registry} instance.
249
+
. On the *Connection* page, copy the *Core Registry API* URL, or one of the other API URLs if you are using a different client, to a secure location. This is the server endpoint that you'll need to connect to this {registry} instance.
239
250
+
240
251
ifdef::qs[]
241
252
The remainder of this task describes how to create a service account and copy the generated credentials.
@@ -247,10 +258,10 @@ If you want to use the credentials of an _existing_ service account, you can ski
247
258
endif::[]
248
259
249
260
250
-
. Under *Service Accounts*, click *Create service account* to generate the credentials that you can use to connect applications to {registry} and Kafka instances.
261
+
. Under *Service Accounts*, click *Create service account* to generate the credentials that you can use to connect applications to {registry} and Kafka instances.
251
262
252
263
253
-
. Copy the generated *Client ID* and *Client Secret* to a secure location.
264
+
. Copy the generated *Client ID* and *Client secret* to a secure location.
254
265
+
255
266
IMPORTANT: The generated credentials are displayed only one time. Ensure that you've successfully and securely saved the copied credentials before closing the credentials window.
256
267
@@ -263,35 +274,35 @@ NOTE: HTTP Basic authentication is also available for tools and libraries that d
263
274
+
264
275
You’ll use the service account information that you saved to configure your applications to connect to your {registry} instances later when you're ready.
265
276
+
266
-
For example, if you plan to use https://github.com/edenhill/kcat[Kcat^] to interact with your Kafka instance and deserialize Avro messages using {registry}, you'll use this information to set your {registry} URL in the client environment variables.
277
+
For example, if you plan to use https://github.com/edenhill/kcat[kcat^] to interact with your Kafka instance and deserialize Avro messages using {registry}, you'll use this information to set your {registry} URL in the client environment variables.
267
278
+
268
279
To review your service account information, reset your credentials, or delete the service account, use the left navigation menu to go to the *Service Accounts* page.
269
280
270
281
.Verification
271
282
ifdef::qs[]
272
283
* Did you save the {registry} instance URL to a secure location?
273
284
* Did you save the client credentials to a secure location?
274
-
* Did you verify that your service account was successfully created in the *Service Accounts* page?
285
+
* Did you verify that your service account was successfully created on the *Service Accounts* page?
275
286
endif::[]
276
287
ifndef::qs[]
277
288
. Verify that the {registry} instance URL is saved to a secure location.
278
289
. Verify that the client credentials are saved to a secure location.
279
-
. Verify that your service account was successfully created in the *Service Accounts* page.
290
+
. Verify that your service account was successfully created on the *Service Accounts* page.
== Assigning a role for a service account to access a {registry} instance
285
296
286
297
[role="_abstract"]
287
-
After you create a service account for applications to connect to a {registry} instance, you must also set the appropriate level of access for the new account in the *Access* tab of the {registry} instance. {registry} uses role-based access to enable you to manage how other user accounts and service accounts can interact with the {registry} instance that you create.
298
+
After you create a service account for applications to connect to a {registry} instance, you must also set the appropriate level of access for the new account on the *Access* tab of the {registry} instance. {registry} uses role-based access to enable you to manage how other user accounts and service accounts can interact with the {registry} instance that you create.
288
299
289
300
.Prerequisites
290
301
* You've created a {registry} instance and the instance is in *Ready* state.
291
302
* You've created a service account that you want to allow to access the running {registry} instance.
292
303
293
304
.Procedure
294
-
. In the *{registry} Instances* page of the web console, click the name of the {registry} instance that you want the service account to access.
305
+
. On the *{registry} Instances* page of the web console, click the name of the {registry} instance that you want the service account to access.
295
306
. Click the *Access* tab to view the accounts and roles already assigned for this instance.
296
307
. Click *Grant access* to assign a role to the service account.
297
308
. In the *Account* field, select or enter the service account name that you want to assign the role to.
@@ -300,17 +311,17 @@ After you create a service account for applications to connect to a {registry} i
300
311
301
312
.Verification
302
313
ifdef::qs[]
303
-
* Is the new role for the service account listed in the *Access* page of the {registry} instance?
314
+
* Is the new role for the service account listed on the *Access* page of the {registry} instance?
304
315
endif::[]
305
316
ifndef::qs[]
306
-
* Verify that the new role for the service account is listed in the *Access* page of the {registry} instance.
317
+
* Verify that the new role for the service account is listed on the *Access* page of the {registry} instance.
307
318
endif::[]
308
319
309
320
[role="_additional-resources"]
310
321
== Additional resources
311
-
* {base-url}{access-mgmt-url-registry}[Managing account access in Red Hat OpenShift Service Registry^]
322
+
* {base-url}{access-mgmt-url-registry}[Managing account access in {product-long-registry}^]
312
323
* https://access.redhat.com/documentation/en-us/red_hat_openshift_service_registry/1[{product-long-registry} user documentation^]
313
-
* https://access.redhat.com/documentation/en-us/red_hat_openshift_streams_for_apache_kafka/1[OpenShift Streams for Apache Kafka user documentation^]
324
+
* https://access.redhat.com/documentation/en-us/red_hat_openshift_streams_for_apache_kafka/1[{product-long-kafka} user documentation^]
0 commit comments