Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ to specify the path to the schema you want to reference. The available selectors

The following markdown:
```jsx
<EndpointSchemaSnippet endpoint="POST /snippets" selector="request" />
<EndpointSchemaSnippet endpoint="POST /chat/{domain}" selector="request" />
```
will be rendered as:
<br/>
<EndpointSchemaSnippet endpoint="POST /snippets" selector="request" />
<EndpointSchemaSnippet endpoint="POST /chat/{domain}" selector="request" />
</Card>
</Tab>
<Tab title="Path">
Expand All @@ -34,13 +34,11 @@ to specify the path to the schema you want to reference. The available selectors
<br/>
The following markdown:
```jsx
<EndpointSchemaSnippet endpoint="GET /plant/{plantId}" selector="request.path" />
<EndpointSchemaSnippet endpoint="POST /chat/{domain}" selector="request.path" />
```
will be rendered as:
<br/>
<h3>Path Parameters</h3>
<img src="./path-parameters.png" alt="Get plant by ID" className="ml-0 dark:hidden" />
<img src="./path-parameters-dark.png" alt="Get plant by ID" className="ml-0 hidden dark:block" />
<EndpointSchemaSnippet endpoint="POST /chat/{domain}" selector="request.path" />
</Card>
</Tab>
<Tab title="Query">
Expand All @@ -49,11 +47,11 @@ to specify the path to the schema you want to reference. The available selectors
<br/>
The following markdown:
```jsx
<EndpointSchemaSnippet endpoint="POST /snippets/load" selector="request.query" />
<EndpointSchemaSnippet endpoint="POST /discord/install" selector="request.query" />
```
will be rendered as:
<br/>
<EndpointSchemaSnippet endpoint="POST /snippets/load" selector="request.query" />
<EndpointSchemaSnippet endpoint="POST /discord/install" selector="request.query" />
</Card>
</Tab>
<Tab title="Body">
Expand All @@ -62,11 +60,11 @@ to specify the path to the schema you want to reference. The available selectors
<br/>
The following markdown:
```jsx
<EndpointSchemaSnippet endpoint="POST /snippets/load" selector="request.body" />
<EndpointSchemaSnippet endpoint="POST /chat/{domain}" selector="request.body" />
```
will be rendered as:
<br/>
<EndpointSchemaSnippet endpoint="POST /snippets/load" selector="request.body" />
<EndpointSchemaSnippet endpoint="POST /chat/{domain}" selector="request.body" />
</Card>
</Tab>
</Tabs>
Expand All @@ -82,11 +80,11 @@ to specify the path to the schema you want to reference. The available selectors

The following markdown:
```jsx
<EndpointSchemaSnippet endpoint="POST /snippets" selector="response" />
<EndpointSchemaSnippet endpoint="POST /chat/{domain}" selector="response" />
```
will be rendered as:
<br/>
<EndpointSchemaSnippet endpoint="POST /snippets" selector="response" />
<EndpointSchemaSnippet endpoint="POST /chat/{domain}" selector="response" />
</Card>
</Tab>
<Tab title="Body">
Expand All @@ -95,11 +93,11 @@ to specify the path to the schema you want to reference. The available selectors
<br/>
The following markdown:
```jsx
<EndpointSchemaSnippet endpoint="POST /snippets" selector="response.body" />
<EndpointSchemaSnippet endpoint="POST /chat/{domain}" selector="response.body" />
```
will be rendered as:
<br/>
<EndpointSchemaSnippet endpoint="POST /snippets" selector="response.body" />
<EndpointSchemaSnippet endpoint="POST /chat/{domain}" selector="response.body" />
</Card>
</Tab>
</Tabs>
Expand All @@ -111,11 +109,11 @@ to specify the path to the schema you want to reference. The available selectors
<br/>
Passing no selector will render the entire schema. The following markdown:
```jsx
<EndpointSchemaSnippet endpoint="POST /snippets" />
<EndpointSchemaSnippet endpoint="POST /chat/{domain}" />
```
will be rendered as:
<br/>
<EndpointSchemaSnippet endpoint="POST /snippets" />
<EndpointSchemaSnippet endpoint="POST /chat/{domain}" />
</Card>
</Tab>
</Tabs>
Expand Down