-
Notifications
You must be signed in to change notification settings - Fork 502
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2956 from pwright/min-docs-api-controller
minimal api-controller-docs
- Loading branch information
Showing
3 changed files
with
152 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
[id="proc-creating-api-draft"] | ||
= Creating an API draft | ||
|
||
[role="_abstract"] | ||
Use the {studio-long} web console to create an OpenAPI or AsyncAPI definition. | ||
|
||
.Prerequisites | ||
* You're logged in to the {studio} web console. | ||
|
||
.Procedure | ||
. In the {studio} web console, click *Create draft*. | ||
. Complete the wizard to provide the following details for the new draft: | ||
|
||
.. Specify the *Draft Coordinates* and click *Next*: | ||
+ | ||
* *Group ID & Draft ID*: Use the default empty settings to automatically generate an Draft ID and add the Draft to the `default` Draft group. Alternatively, you can enter an optional Group ID or Draft ID. | ||
* *Version number*: Optionally specify a version number. | ||
* *Type*: Use the default *Auto-Detect* setting to automatically detect the Draft type (not allowed if creating an empty Draft), or select the Draft type from the list, for example, *OpenAPI*. | ||
|
||
|
||
.. Specify the *Draft Content* and click *Next*: | ||
+ | ||
** *From template*: Choose from the list of templates. | ||
* *From local file*: Click *Browse*, and select a file, or drag and drop a file. For example, `my-openapi.json` or `my-schema.proto`. Alternatively, you can enter the file contents in the text box. | ||
* *From URL*: Enter a valid and accessible URL, and click *Fetch*. For example: `\https://petstore3.swagger.io/api/v3/openapi.json`. | ||
|
||
|
||
.. Specify the *Draft Metadata*: | ||
+ | ||
** *Name*: Enter an optional friendly name for the first artifact version. | ||
** *Description*: Enter an optional description for the first artifact version. | ||
|
||
. Click *Create* to create the draft. | ||
The Draft details view is displayed. | ||
|
||
. To edit the draft, click *Edit draft*. | ||
+ | ||
.. Click the *Design* tab, and optionally edit the draft as follows: | ||
* Provide a version number and a description. | ||
* _(AsyncAPI only)_ Define terms of service. | ||
* Add your contact information: name, email address, and URL. | ||
* Select a license. | ||
* _(OpenAPI only)_ Define tags. | ||
* Define one or more servers. | ||
* Configure a security scheme. | ||
* _(OpenAPI only)_ Specify security requirements. | ||
* _(OpenAPI only)_ Configure vendor extensions. | ||
.. Click the *Source* tab, and review the live preview of the draft. | ||
The content of the *Source* tab automatically updates when you edit values on the editor page. | ||
.. _(Optional)_ To see the changes that you made since the last save, click *Actions > Show draft changes*. | ||
.. _(Optional)_ In the left pane of the draft editor, you can add the following items: | ||
* _(OpenAPI only)_ Resource paths, data types, and responses | ||
* _(AsyncAPI only)_ Channels, data types, messages, operation traits, and message traits | ||
.. Click *Save*. | ||
.. Use the breadcrumbs to navigate back to the *Drafts* page. | ||
|
||
The new draft is listed on the *Drafts* page using the Group ID and Draft ID. | ||
You can use the options icon (three vertical dots) to view the draft details, edit the draft content, finalize the draft, view the draft in {registry}, or delete the draft. | ||
|
||
.Additional information | ||
|
||
See xref:proc-finalizing-draft[] |
50 changes: 50 additions & 0 deletions
50
docs/modules/ROOT/partials/proc-creating-schema-draft.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
[id="proc-creating-schema-draft"] | ||
= Creating a schema draft | ||
|
||
[role="_abstract"] | ||
Use the {studio-long} web console to create an Apache Avro, JSON Schema, or Google Protocol Buffers (Protobuf) event schema. | ||
|
||
.Prerequisites | ||
* You're logged in to the {studio} web console. | ||
|
||
.Procedure | ||
. In the {studio} web console, click *Create draft*. | ||
. Complete the wizard to provide the following details for the new draft: | ||
|
||
.. Specify the *Draft Coordinates* and click *Next*: | ||
+ | ||
* *Group ID & Draft ID*: Use the default empty settings to automatically generate an Draft ID and add the Draft to the `default` Draft group. Alternatively, you can enter an optional Group ID or Draft ID. | ||
* *Version number*: Optionally specify a version number. | ||
* *Type*: Use the default *Auto-Detect* setting to automatically detect the Draft type (not allowed if creating an empty Draft), or select the Draft type from the list, for example, *Apache Avro*. | ||
|
||
|
||
.. Specify the *Draft Content* and click *Next*: | ||
+ | ||
** *From template*: Choose from the list of templates. | ||
* *From local file*: Click *Browse*, and select a file, or drag and drop a file. For example, `my-openapi.json` or `my-schema.proto`. Alternatively, you can enter the file contents in the text box. | ||
* *From URL*: Enter a valid and accessible URL, and click *Fetch*. For example: `\https://petstore3.swagger.io/api/v3/openapi.json`. | ||
|
||
|
||
.. Specify the *Draft Metadata*: | ||
+ | ||
** *Name*: Enter an optional friendly name for the first artifact version. | ||
** *Description*: Enter an optional description for the first artifact version. | ||
|
||
. Click *Create* to create the draft. | ||
The Draft details view is displayed. | ||
|
||
. To edit the draft, click *Edit draft*. | ||
+ | ||
.. Click the *Design* tab, and edit the draft. | ||
.. _(Optional)_ To see the changes that you made since the last save, click *Actions > Show draft changes*. | ||
.. _(Optional)_ In the left pane of the draft editor, you can add the following items: | ||
.. Click *Save*. | ||
.. Use the breadcrumbs to navigate back to the *Drafts* page. | ||
|
||
The new draft is listed on the *Drafts* page using the Group ID and Draft ID. | ||
You can use the options icon (three vertical dots) to view the draft details, edit the draft content, finalize the draft, view the draft in {registry}, or delete the draft. | ||
|
||
|
||
.Additional information | ||
|
||
See xref:proc-finalizing-draft[] |