Skip to content

Commit cb18740

Browse files
Update runnable-endpoint docs to use live example instead of image
- Replace Tabs component with actual RunnableEndpoint example - Follow same format as endpoint-request-snippet documentation - Use POST /snippets endpoint as the example - Show both the markdown code and rendered component Co-Authored-By: [email protected] <[email protected]>
1 parent 5c00dca commit cb18740

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

fern/products/docs/pages/component-library/default-components/runnable-endpoint.mdx

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,15 @@ description: Test API endpoints directly from your documentation with an interac
55

66
The `<RunnableEndpoint>` component enables users to make real HTTP requests to your APIs directly in the API Reference. It auto-detects endpoint definitions from your API specification and provides a request builder with inputs for headers, path parameters, query parameters, and request bodies.
77

8-
<Tabs>
9-
<Tab title="Example">
10-
11-
![Runnable Endpoint component example](runnable-endpoint.png)
12-
13-
</Tab>
14-
<Tab title="Markdown">
15-
````jsx
16-
<RunnableEndpoint endpoint="GET /api/users/{id}" />
17-
````
18-
</Tab>
19-
</Tabs>
8+
<CodeBlock title="Markdown">
9+
```jsx
10+
<RunnableEndpoint endpoint="POST /snippets" />
11+
```
12+
</CodeBlock>
13+
14+
will be rendered as:
15+
16+
<RunnableEndpoint endpoint="POST /snippets" />
2017

2118
## Features
2219

0 commit comments

Comments
 (0)