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-339: Additional updates to Getting Started (#533)
* chore: JR-339: Adds RHOAD to the PR check file
* docs: JR-339: Adds optional steps for testing the design and comparing versions; updates the import section; other minor tweaks
* docs: JR-339: Moves the 'testing' steps into a new section; moves and renames the 'show changes' step; adds links to Service Registry doc; minor formatting tweaks
* docs: JR-339: Implements review comments
* docs: JR-339: Updates based on latest UI changes
@@ -88,7 +88,6 @@ For more overview information, see the https://access.redhat.com/documentation/e
88
88
ifndef::community[]
89
89
.Prerequisites
90
90
* You have a {org-name} account.
91
-
* You have a subscription to {product-long-kafka}.
92
91
* If you plan to store your designs in {product-long-registry}, you have a running {registry} instance (see {base-url}{getting-started-url-registry}[Getting started with {product-long-registry}^]).
93
92
//For more information about signing up, see *<@SME: Where to link?>*.
94
93
endif::[]
@@ -98,13 +97,13 @@ endif::[]
98
97
ifdef::qs[]
99
98
[#description]
100
99
====
101
-
Learn how to create your first {product-api-designer} design in {product-long-api-designer}.
100
+
Learn how to create your first API or schema design in {product-long-api-designer}.
102
101
====
103
102
104
103
[#introduction]
105
104
====
106
105
Welcome to the quick start for {product-long-api-designer}.
107
-
In this quick start, you'll learn how to ...
106
+
In this quick start, you'll learn how to create an API definition or event schema from a blank page or from a template, import an existing design to edit it, and export a finished design to {product-registry}.
108
107
====
109
108
endif::[]
110
109
@@ -116,60 +115,47 @@ Use the {product-long-api-designer} web console to create an OpenAPI or AsyncAPI
116
115
117
116
ifndef::qs[]
118
117
.Prerequisites
119
-
* You're logged in to the {product-api-designer} web console at {service-url-api-designer}[^].
118
+
* You're logged in to the {product-long-api-designer} web console at {service-url-api-designer}[^].
120
119
endif::[]
121
120
122
121
.Procedure
123
-
. In the {service-url-api-designer}[{product-api-designer} web console], click *Create a schema or API design*.
124
-
. Complete the form to provide the details of the new design:
125
-
.. *Name*: Enter a unique design name, such as `my-api-design`.
126
-
.. *Summary*: Optional: Enter a short description of the design.
127
-
.. *Type*: Accept the default value *OpenAPI*, or select another API type from the list.
128
-
.. *Version*: OpenAPI only: Accept the default value *3.0.2*, or select another version from the list.
129
-
.. *Template*: Select the *Pet Store Example* template, or select another template from the list.
130
-
+
131
-
[.screencapture]
132
-
.Creating an API design
133
-
image::create-api-designer-design.png[Image of page to create an API design]
134
-
+
122
+
. In the {service-url-api-designer}[{product-long-api-designer} web console^], click *Create design*.
123
+
. Complete the form to provide the following details for the new design:
124
+
* *Name*: Enter a unique design name, such as `my-api-design`.
125
+
* *Description* _(Optional)_: Enter a short description of the design.
126
+
* *Type*: Accept the default value *OpenAPI*, or select another API type from the list.
127
+
* *Version* _(OpenAPI only)_: Accept the default value *3.0.2*, or select another version from the list.
128
+
* *Template*: Select the *Pet Store Example* template, or select another template from the list.
135
129
. Click *Create*. The new API design opens in the design editor.
136
130
. Select the design title and click the pen icon. Change the design title to *Orders* and click the *Save changes* icon.
137
131
. Click the *Design* tab, and optionally edit the design as follows:
138
-
.. Provide a version number and a description.
139
-
.. AsyncAPI only: Define terms of service.
140
-
.. Add your contact information (name, email address, and URL).
141
-
.. Select a license.
142
-
.. OpenAPI only: Define tags.
143
-
.. Define one or more servers.
144
-
.. Configure a security scheme.
145
-
.. OpenAPI only: Specify security requirements.
146
-
.. OpenAPI only: Configure vendor extensions.
147
-
+
148
-
[.screencapture]
149
-
.Editing an API design
150
-
image::api-designer-editor.png[Image of API design editor]
151
-
+
152
-
. Click the *Source* tab to see a live preview of the design.
132
+
* Provide a version number and a description.
133
+
* _(AsyncAPI only)_ Define terms of service.
134
+
* Add your contact information: name, email address, and URL.
135
+
* Select a license.
136
+
* _(OpenAPI only)_ Define tags.
137
+
* Define one or more servers.
138
+
* Configure a security scheme.
139
+
* _(OpenAPI only)_ Specify security requirements.
140
+
* _(OpenAPI only)_ Configure vendor extensions.
141
+
. Click the *Source* tab, and review the live preview of the design.
153
142
The content of the *Source* tab automatically updates when you edit values on the editor page.
154
-
155
-
. Optional: In the left pane of the design editor, you can add the following items:
156
-
.. OpenAPI: Resource paths, data types, and responses
157
-
.. AsyncAPI: Channels, data types, messages, operation traits, and message traits
143
+
. _(Optional)_ To see the changes that you made since the last save, click *Actions > Show changes*.
144
+
. _(Optional)_ In the left pane of the design editor, you can add the following items:
145
+
* _(OpenAPI only)_ Resource paths, data types, and responses
146
+
* _(AsyncAPI only)_ Channels, data types, messages, operation traits, and message traits
158
147
. Click *Save*.
159
148
160
-
The new design is listed on the designs page. You can use the options icon (three vertical dots) to open the design editor, download the design to a file, or delete the design.
161
-
162
-
[.screencapture]
163
-
.{product-api-designer} design options menu
164
-
image::api-designer-design-options.png[Image of {product-api-designer} design options menu]
149
+
The new design is listed on the *API and Schema Designs* page.
150
+
You can use the options icon (three vertical dots) to view details about the design (including export and import events, and the edit history), rename the design, open the design editor, download the design to a file, export the design to {product-long-registry}, or delete the design.
165
151
166
152
.Verification
167
153
ifdef::qs[]
168
-
* Is the new design listed on the {product-api-designer} designs page?
154
+
* Is the new design listed on the designs page?
169
155
* Are the design details correct?
170
156
endif::[]
171
157
ifndef::qs[]
172
-
. Verify that the new design is listed on the {product-api-designer} designs page.
158
+
. Verify that the new design is listed on the designs page.
173
159
. Verify that the design details are correct.
174
160
endif::[]
175
161
@@ -181,38 +167,31 @@ Use the {product-long-api-designer} web console to create an Apache Avro, JSON S
181
167
182
168
ifndef::qs[]
183
169
.Prerequisites
184
-
* You're logged in to the {product-api-designer} web console at {service-url-api-designer}[^].
170
+
* You're logged in to the {product-long-api-designer} web console at {service-url-api-designer}[^].
185
171
endif::[]
186
172
187
173
.Procedure
188
-
. In the {service-url-api-designer}[{product-api-designer} web console], click *Create a schema or API design*.
189
-
. Complete the form to provide the details of the new design:
190
-
.. *Name*: Enter a unique design name, such as `my-schema-design`.
191
-
.. *Summary*: Optional: Enter a short description of the design.
192
-
.. *Type*: From the list, select *Apache Avro*, or select another schema type.
193
-
+
194
-
[.screencapture]
195
-
.Creating a schema design
196
-
image::create-schema-design.png[Image of page to create a schema design]
197
-
+
174
+
. In the {service-url-api-designer}[{product-long-api-designer} web console^], click *Create design*.
175
+
. Complete the form to provide the following details for the new design:
176
+
* *Name*: Enter a unique design name, such as `my-schema-design`.
177
+
* *Description* _(Optional)_: Enter a short description of the design.
178
+
* *Type*: From the list, select *Apache Avro*, or select another schema type.
198
179
. Click *Create*. The new schema design opens in the design editor.
199
180
. Edit the design source to provide your content.
200
-
+
201
-
[.screencapture]
202
-
.Editing a schema design
203
-
image::api-designer-schema-editor.png[Image of schema design editor]
204
-
+
181
+
. _(Optional)_ To see the changes that you made since the last save, click *Actions > Show changes*.
182
+
. _(Optional)_ For Apache Avro or JSON Schema designs, you can click *Actions > Format content* to insert spaces and tabs that align your design content correctly.
205
183
. Click *Save*.
206
184
207
-
The new design is listed on the designs page. You can use the options icon (three vertical dots) to open the design editor, download the design to a file, or delete the design.
185
+
The new design is listed on the *API and Schema Designs* page.
186
+
You can use the options icon (three vertical dots) to view details about the design (including export and import events, and the edit history), rename the design, open the design editor, download the design to a file, export the design to {product-long-registry}, or delete the design.
208
187
209
188
.Verification
210
189
ifdef::qs[]
211
-
* Is the new design listed on the {product-api-designer} designs page?
190
+
* Is the new design listed on the designs page?
212
191
* Are the design details correct?
213
192
endif::[]
214
193
ifndef::qs[]
215
-
. Verify that the new design is listed on the {product-api-designer} designs page.
194
+
. Verify that the new design is listed on the designs page.
216
195
. Verify that the design details are correct.
217
196
endif::[]
218
197
@@ -223,62 +202,107 @@ endif::[]
223
202
You can import an event schema or API definition into {product-long-api-designer} from a URL, from a file, or from an {product-long-registry} instance.
224
203
225
204
.Prerequisites
226
-
* You're logged in to the {product-api-designer} web console at {service-url-api-designer}[^].
227
-
* You can access a running {product-registry} instance in your organization, if you want to import from {registry}.
205
+
* You're logged in to the {product-long-api-designer} web console at {service-url-api-designer}[^].
206
+
* You can access a running {product-registry} instance in your organization, if you want to import from {product-long-registry}.
207
+
For more information, see {base-url}{getting-started-url-registry}[Getting started with {product-long-registry}^].
228
208
229
209
.Procedure
230
-
. In the {service-url-api-designer}[{product-api-designer} web console], click *Import a schema or API design*, and then click one of the following options:
231
-
.. *Import from file*: Click *Browse* and select a file, or drag and drop a file.
232
-
.. *Import from URL*: Enter a valid and accessible URL.
233
-
.. *Import from {registry}*: From the instances list, select a {registry} instance. Browse the list of artifacts for that instance, and select an artifact.
234
-
. Click *Import*. The design editor opens automatically.
235
-
236
-
When you finish editing, you can export the updated design to {registry} as a new artifact or as a new version of the existing artifact. You can also save your changes locally, or download the content to a file.
210
+
. In the {service-url-api-designer}[{product-long-api-designer} web console^], click *Import design*, and then click one of the following options:
211
+
* *Import from {registry}*: From the instances list, select a {registry} instance.
212
+
Browse the list of artifacts for that instance, and select an artifact.
213
+
* *Import from URL*: Enter a valid and accessible URL, and click *Fetch*.
214
+
* *Import from file*: Click *Browse* and select a file, or drag and drop a file.
215
+
. When prompted, provide additional information such as version (_OpenAPI only_), name, type, and description in the import dialog. You can overwrite any autopopulated values.
216
+
. Click *Import*.
217
+
The design editor opens automatically.
218
+
219
+
When you finish editing, you can export the updated design to {registry} as a new artifact or as a new version of the existing artifact.
220
+
You can export the design from the design editor or from the *API and Schema Designs* page.
221
+
You can also save your changes locally, or download the content to a file.
237
222
238
223
.Verification
239
224
ifdef::qs[]
240
-
* Is the imported design listed on the {product-api-designer} designs page?
225
+
* Is the imported design listed on the designs page?
241
226
* Are the design details correct?
242
227
endif::[]
243
228
ifndef::qs[]
244
-
. Verify that the imported design is listed on the {product-api-designer} designs page.
229
+
. Verify that the imported design is listed on the designs page.
245
230
. Verify that the design details are correct.
246
231
endif::[]
247
232
233
+
[id="proc-testing-schema-api-design_{context}"]
234
+
== Testing a schema or API design
235
+
236
+
[role="_abstract"]
237
+
You can test that your schema or API design content is valid and compatible with existing content by applying the rules of an existing {product-long-registry} instance.
238
+
You can test the design while working in the {product-long-api-designer} editor, without exporting the design to {product-long-registry}.
239
+
240
+
.Prerequisites
241
+
* You're logged in to the {product-long-api-designer} web console at {service-url-api-designer}[^].
242
+
* You've created or imported an {product-api-designer} design.
243
+
* You can access a running {product-registry} instance in your organization.
244
+
Within that instance, you know the artifact ID of an artifact with the required rules configured.
245
+
For more information, see {base-url}{getting-started-url-registry}[Getting started with {product-long-registry}^].
246
+
247
+
.Procedure
248
+
. On the *API and Schema Designs* page of the {service-url-api-designer}[{product-long-api-designer} web console^], select the design that you want to test.
249
+
. Click *Edit* to open the design editor.
250
+
. From the *Actions* menu, click *Test using Service Registry*.
251
+
. From the *Registry instance* list, select a {registry} instance.
252
+
. In the *Group* and *ID* fields, specify the artifact details.
253
+
. Click *Test*.
254
+
255
+
A new pane in the design editor window shows the registration issues found by the test:
256
+
257
+
* If the design content obeys the specified rules, the registration issues pane contains the following text:
258
+
`Registry Test completed with no issues`
259
+
260
+
* If the registration issues pane provides details of any issues, resolve the issues and click *Retry* to retest the content using the same rules.
261
+
262
+
.Verification
263
+
ifdef::qs[]
264
+
* Is the registration issues pane shown in the design editor?
265
+
* Are the test results correct?
266
+
endif::[]
267
+
ifndef::qs[]
268
+
. Verify that the registration issues pane is shown in the design editor.
269
+
. Verify that the test results are correct.
270
+
endif::[]
271
+
248
272
[id="proc-exporting-schema-api-design_{context}"]
249
273
== Exporting a schema or API design
250
274
251
275
[role="_abstract"]
252
276
When you're happy with your changes to an {product-long-api-designer} event schema or API definition, and you want to use the design in your application, you can export the content to an existing {product-long-registry} instance.
253
277
254
278
.Prerequisites
255
-
* You're logged in to the {product-api-designer} web console at {service-url-api-designer}[^].
279
+
* You're logged in to the {product-long-api-designer} web console at {service-url-api-designer}[^].
256
280
* You've created or imported an {product-api-designer} design.
257
281
* You can access a running {product-registry} instance in your organization.
282
+
For more information, see {base-url}{getting-started-url-registry}[Getting started with {product-long-registry}^].
258
283
259
284
.Procedure
260
-
. In the *{product-api-designer}* designs page of the web console, select the {product-api-designer} design that you want to export.
261
-
. Click *Edit* to open the design editor.
262
-
. From the *Actions* menu, click *Export to {registry}*.
263
-
. Complete the form to specify where the new design should be saved.
285
+
. On the *API and Schema Designs* page of the {service-url-api-designer}[{product-long-api-designer} web console^], select the design that you want to export.
286
+
. Click the options icon (three vertical dots), and click *Export to {registry}*.
287
+
. Complete the form to specify where to save the new design. Provide the following details:
264
288
+
265
-
NOTE: If the design was originally imported from {product-registry}, the fields are prepopulated with the details of the original {product-registry} instance, and the *Version* is incremented.
289
+
NOTE: If the design was originally imported from {product-long-registry}, the fields are prepopulated with the details of the original {product-registry} instance, and the *Version* is incremented.
266
290
+
267
-
.. *Registry instance*: Select the required instance from the list.
268
-
.. *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.
291
+
* *Registry Instance*: Select the required instance from the list.
292
+
* *Group* _(Optional)_: Enter a unique group name such as `my-org` to organize the artifact in a named collection.
293
+
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.
269
294
+
270
295
NOTE: Specifying a group is optional when using the web console: {registry} generates a `default` group automatically.
271
296
+
272
-
.. *Artifact ID*: Enter an optional unique ID for this artifact, such as `my-ID`. If you don't specify a unique artifact ID, {registry} generates one automatically as a UUID.
273
-
.. *Version*: Specify the version number.
274
-
+
275
-
[.screencapture]
276
-
.Exporting an API design
277
-
image::export-api-designer-design.png[Image of page to export an API design]
278
-
+
297
+
* *ID* _(Optional)_: Enter a unique ID for this artifact, such as `my-ID`.
298
+
If you don't specify a unique artifact ID, {registry} generates one automatically as a UUID.
299
+
* *Version* _(Optional)_: Specify the version number.
300
+
If you don't specify a version number, {registry} sets the version to 1.
279
301
. Click *Export*.
302
+
The exported design is listed on the artifacts page of the specified {registry} instance.
280
303
281
-
You can manage {product-long-api-designer} design versions in {product-long-registry}. You can also download {product-api-designer} designs to a file, either for local client code generation or to import the designs into {product-long-api-management}.
304
+
You can manage {product-long-api-designer} design versions in {product-long-registry}.
305
+
You can also download {product-api-designer} designs to a file, either for local client code generation or to import the designs into {product-long-api-management}.
282
306
283
307
.Verification
284
308
ifdef::qs[]
@@ -301,7 +325,7 @@ endif::[]
301
325
ifdef::qs[]
302
326
[#conclusion]
303
327
====
304
-
Congratulations! You successfully completed the {product-api-designer} Getting Started quick start, and are now ready to use the service.
328
+
Congratulations! You successfully completed the {product-long-api-designer} Getting Started quick start, and are now ready to use the service.
0 commit comments