Skip to content

Commit 03e8025

Browse files
Remove standalone 'Reference particular examples' section
1 parent 2009fd4 commit 03e8025

1 file changed

Lines changed: 0 additions & 37 deletions

File tree

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

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -16,43 +16,6 @@ The `<RunnableEndpoint>` component lets users make real HTTP requests to your AP
1616
<RunnableEndpoint endpoint="POST /chat/{domain}" />
1717
```
1818

19-
## Reference particular examples
20-
21-
<Steps>
22-
### Set the example name in your spec
23-
24-
```yaml openapi.yml {12}
25-
paths:
26-
/pet:
27-
put:
28-
summary: Update an existing pet
29-
operationId: pets_update
30-
requestBody:
31-
content:
32-
application/json:
33-
schema:
34-
$ref: '#/components/schemas/Pet'
35-
examples:
36-
ExampleWithMarkley:
37-
value:
38-
name: Markley
39-
id: 44
40-
```
41-
42-
### Directly reference the example
43-
44-
```jsx Markdown {3}
45-
<RunnableEndpoint
46-
endpoint="PUT /pet"
47-
example="ExampleWithMarkley"
48-
/>
49-
```
50-
51-
<Note title="Referencing examples">
52-
If the example includes a `summary` or `docs` field, use that for the `example` prop. If no summary is set, use the example name.
53-
</Note>
54-
</Steps>
55-
5619
## Variants
5720

5821
### Collapse by default

0 commit comments

Comments
 (0)