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
Copy file name to clipboardExpand all lines: api-playground/asyncapi/playground.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: "Websockets Playground"
3
3
description: "Enable users to interact with your websockets"
4
4
---
5
5
6
-
Autogenerating pages from your AsyncAPI spec will create pages for each channel that display message data that can be sent and received. In the API Playground for websockets, you can connect to websocket servers to send and receive messages.
6
+
Autogenerating pages from your AsyncAPI schema will create pages for each channel that display message data that can be sent and received. In the API Playground for websockets, you can connect to websocket servers to send and receive messages.
7
7
8
8

9
9
(this should be a nice image of messages in the API playground)
Copy file name to clipboardExpand all lines: api-playground/asyncapi/setup.mdx
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,12 @@ description: "Reference AsyncAPI endpoints in your docs pages"
5
5
6
6
## Add an AsyncAPI specification file
7
7
8
-
To begin to create pages for your websockets, make sure you have a valid AsyncAPI document in either JSON or YAML format that follows the [AsyncAPI specification](https://www.asyncapi.com/docs/reference/specification/v3.0.0). Your document must follow AsyncAPI specification 3.0+.
9
-
<Tip>To make sure your AsyncAPI spec is valid, you can paste it into the [AsyncAPI Studio](https://studio.asyncapi.com/)</Tip>
8
+
To begin to create pages for your websockets, make sure you have a valid AsyncAPI schema document in either JSON or YAML format that follows the [AsyncAPI specification](https://www.asyncapi.com/docs/reference/specification/v3.0.0). Your schema must follow AsyncAPI specification 3.0+.
9
+
<Tip>To make sure your AsyncAPI schema is valid, you can paste it into the [AsyncAPI Studio](https://studio.asyncapi.com/)</Tip>
10
10
11
11
## Auto-populate websockets pages
12
12
13
-
You can add an `asyncapi` field to any tab or group in the navigation of your `docs.json`. This field can contain either the path to an AsyncAPI document in your docs repo, or the URL of a hosted AsyncAPI document. Mintlify will automatically generate a page for each AsyncAPI webhook channel.
13
+
You can add an `asyncapi` field to any tab or group in the navigation of your `docs.json`. This field can contain either the path to an AsyncAPI schema document in your docs repo, the URL of a hosted AsyncAPI schema document, or an array of links to AsyncAPI schema documents. Mintlify will automatically generate a page for each AsyncAPI websocket channel.
14
14
15
15
**Examples with Tabs:**
16
16
```json {5}
@@ -29,11 +29,11 @@ You can add an `asyncapi` field to any tab or group in the navigation of your `d
29
29
"navigation": {
30
30
"tabs": [
31
31
{
32
-
"tab": "API Reference",
32
+
"tab": "AsyncAPI",
33
33
"groups": [
34
34
{
35
-
"group": "Endpoints",
36
-
"openapi": {
35
+
"group": "Websockets",
36
+
"asyncapi": {
37
37
"source": "/path/to/asyncapi.json",
38
38
"directory": "api-reference"
39
39
}
@@ -46,4 +46,4 @@ You can add an `asyncapi` field to any tab or group in the navigation of your `d
46
46
47
47
<Note>The directory field is optional. If not specified, the files will be placed in the **api-reference** folder of the docs repo.</Note>
48
48
49
-
The metadata for the generated pages will contain the key `asyncapi` with a path to the original spec and the channel id so that the page can be generated per channel and display data about all websocket messages sent and received on that channel.
49
+
The metadata for the generated pages will contain the key `asyncapi` with a path to the original spec and the channel id so that the page can be generated per channel and display data about all websocket messages sent and received on that channel. Learn more about interacting with websockets with generated AsyncAPI pages in the playground [here](api-playground/asyncapi/playground).
0 commit comments