Skip to content

Commit fe84ee8

Browse files
authored
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
1 parent 7755770 commit fe84ee8

File tree

3 files changed

+117
-91
lines changed

3 files changed

+117
-91
lines changed

.github/workflows/modular-docs-check.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ jobs:
1818
- product: RHOSR
1919
- product: RHOAS
2020
- product: RHOC
21+
- product: RHOAD
2122

2223
steps:
2324
- uses: actions/checkout@v2
2425
name: Checkout Source
25-
- name: Use Node.js
26+
- name: Use Node.js
2627
uses: actions/setup-node@v2
2728
with:
2829
node-version: 16.6.2
@@ -38,7 +39,7 @@ jobs:
3839

3940
- run: npm --prefix .build install
4041
name: Install Node Dependencies
41-
42+
4243
- run: gem install asciidoctor tilt haml
4344
name: Install Asciidoctor
4445
- run: npm --prefix .build run generate:modular-docs

docs/api-designer/getting-started-api-designer/README.adoc

Lines changed: 113 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ For more overview information, see the https://access.redhat.com/documentation/e
8888
ifndef::community[]
8989
.Prerequisites
9090
* You have a {org-name} account.
91-
* You have a subscription to {product-long-kafka}.
9291
* 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}^]).
9392
//For more information about signing up, see *<@SME: Where to link?>*.
9493
endif::[]
@@ -98,13 +97,13 @@ endif::[]
9897
ifdef::qs[]
9998
[#description]
10099
====
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}.
102101
====
103102

104103
[#introduction]
105104
====
106105
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}.
108107
====
109108
endif::[]
110109

@@ -116,60 +115,47 @@ Use the {product-long-api-designer} web console to create an OpenAPI or AsyncAPI
116115

117116
ifndef::qs[]
118117
.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}[^].
120119
endif::[]
121120

122121
.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.
135129
. Click *Create*. The new API design opens in the design editor.
136130
. Select the design title and click the pen icon. Change the design title to *Orders* and click the *Save changes* icon.
137131
. 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.
153142
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
158147
. Click *Save*.
159148

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.
165151

166152
.Verification
167153
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?
169155
* Are the design details correct?
170156
endif::[]
171157
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.
173159
. Verify that the design details are correct.
174160
endif::[]
175161

@@ -181,38 +167,31 @@ Use the {product-long-api-designer} web console to create an Apache Avro, JSON S
181167

182168
ifndef::qs[]
183169
.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}[^].
185171
endif::[]
186172

187173
.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.
198179
. Click *Create*. The new schema design opens in the design editor.
199180
. 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.
205183
. Click *Save*.
206184

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.
208187

209188
.Verification
210189
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?
212191
* Are the design details correct?
213192
endif::[]
214193
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.
216195
. Verify that the design details are correct.
217196
endif::[]
218197

@@ -223,62 +202,107 @@ endif::[]
223202
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.
224203

225204
.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}^].
228208

229209
.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.
237222

238223
.Verification
239224
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?
241226
* Are the design details correct?
242227
endif::[]
243228
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.
245230
. Verify that the design details are correct.
246231
endif::[]
247232

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+
248272
[id="proc-exporting-schema-api-design_{context}"]
249273
== Exporting a schema or API design
250274

251275
[role="_abstract"]
252276
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.
253277

254278
.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}[^].
256280
* You've created or imported an {product-api-designer} design.
257281
* 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}^].
258283

259284
.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:
264288
+
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.
266290
+
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.
269294
+
270295
NOTE: Specifying a group is optional when using the web console: {registry} generates a `default` group automatically.
271296
+
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.
279301
. Click *Export*.
302+
The exported design is listed on the artifacts page of the specified {registry} instance.
280303

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}.
282306

283307
.Verification
284308
ifdef::qs[]
@@ -301,7 +325,7 @@ endif::[]
301325
ifdef::qs[]
302326
[#conclusion]
303327
====
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.
305329
====
306330
endif::[]
307331

docs/api-designer/getting-started-api-designer/quickstart.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ spec:
2323
- !snippet/proc README.adoc#proc-creating-api-design
2424
- !snippet/proc README.adoc#proc-creating-schema-design
2525
- !snippet/proc README.adoc#proc-importing-schema-api-design
26+
- !snippet/proc README.adoc#proc-testing-schema-api-design
2627
- !snippet/proc README.adoc#proc-exporting-schema-api-design
2728
conclusion: !snippet README.adoc#conclusion
2829
nextQuickStart:

0 commit comments

Comments
 (0)