Writing contentComponentsEndpoint request snippetCopy pageUse the <EndpointRequestSnippet> components to reference an endpoint request from your API Reference. Usage POST/chat/:domain1curl -X POST https://fai.buildwithfern.com/chat/domain \2 -H "Authorization: Bearer <token>" \3 -H "Content-Type: application/json" \4 -d '{5 "messages": [6 {7 "role": "user",8 "content": "string"9 }10 ]11}' Markdown1<EndpointRequestSnippet endpoint="POST /chat/{domain}" /> Reference particular examples 1Set the example name in your specOpenAPIopenapi.yml1paths:2 /pet:3 put:4 summary: Update an existing pet 5 operationId: pets_update6 requestBody: 7 content:8 application/json:9 schema:10 $ref: '#/components/schemas/Pet'11 examples:12 ExampleWithMarkley:13 value: 14 name: Markley15 id: 44Fern Definitionpets.yml1service:2 auth: true3 base-path: ""4 endpoints:5 update:6 docs: Update an existing pet 7 method: PUT8 path: /pet9 request: Pet10 examples:11 - name: ExampleWithMarkley12 request:13 name: Markley14 id: 442Directly reference the exampleMarkdown1 <EndpointRequestSnippet 2 endpoint="PUT /pet" 3 example="ExampleWithMarkley"4 />Referencing examplesIf the example includes a summary or docs field, use that for the example prop. If not summary is set, use the example name.