Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions fern/products/api-def/ferndef-pages/endpoints/sse.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,7 @@ types:
properties:
text: string
```

## API Explorer

The [API Explorer](/learn/docs/api-references/api-explorer/overview#streaming-endpoints) supports streaming endpoints, displaying responses in real-time.
4 changes: 4 additions & 0 deletions fern/products/api-def/openapi-pages/endpoints/sse.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,7 @@ components:
text:
type: string
```

## API Explorer

The [API Explorer](/learn/docs/api-references/api-explorer/overview#streaming-endpoints) supports streaming endpoints, displaying responses in real-time.
6 changes: 6 additions & 0 deletions fern/products/docs/pages/api-references/api-explorer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ Allow users to test their calls in a sandbox environment or select the environme

<div style="position: relative; padding-bottom: 50.63657407407407%; height: 0;"><iframe src="https://www.loom.com/embed/cb642161678e41cabcb677b900006f40?sid=5e45243c-3ba1-45cf-860b-72eee1970fc5?hide_owner=true&hide_share=true&hide_title=true&hideEmbedTopBar=true" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe></div>

## Streaming endpoints

The API Explorer supports streaming endpoints, including Server-Sent Events (SSE). When an endpoint is configured as streaming in your API specification, the API Explorer streams the response in real-time as data arrives ([example](https://dev.hume.ai/reference/text-to-speech-tts/synthesize-json-streaming?explorer=true)).

To configure a streaming endpoint, use the [`x-fern-streaming`](/learn/api-definitions/openapi/endpoints/sse) extension in your OpenAPI specification or the [`response-stream`](/learn/api-definitions/ferndef/endpoints/sse) key in your Fern Definition.

## WebSocket Playground

For APIs that support WebSocket connections, the API Explorer includes a **WebSocket**-specific Playground. The WebSocket Playground also allows users to establish a connection with the API, and send/receive messages in real-time.
Expand Down
Loading