From 16c555acc0af4929fefa298decab82c2fd434d4d Mon Sep 17 00:00:00 2001 From: Catherine Deskur <46695336+chdeskur@users.noreply.github.com> Date: Mon, 4 Nov 2024 11:54:07 -0500 Subject: [PATCH] chore(docs): document API Playground (#5089) --- fern/docs.yml | 10 ++++-- .../fern-docs/content/api-playground.mdx | 33 +++++++++++++++++++ 2 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 fern/pages/fern-docs/content/api-playground.mdx diff --git a/fern/docs.yml b/fern/docs.yml index 761ce377884..5b3ea8e04fd 100644 --- a/fern/docs.yml +++ b/fern/docs.yml @@ -448,6 +448,13 @@ navigation: - page: SDK Snippets icon: fa-regular fa-message-code path: ./pages/fern-docs/config/sdk-snippets.mdx + - section: API Playground + path: ./pages/fern-docs/content/api-playground.mdx + icon: fa-regular fa-square-terminal + contents: + - page: Customize API Playground + icon: fa-regular fa-wrench + path: ./pages/fern-docs/content/customize-api-playground.mdx - page: Endpoint Errors icon: fa-regular fa-exclamation-triangle path: ./pages/fern-docs/config/endpoint-errors.mdx @@ -457,9 +464,6 @@ navigation: - page: Write Markdown in API Reference icon: fa-regular fa-pencil path: ./pages/fern-docs/content/api-ref-content.mdx - - page: Customize API Playground - icon: fa-regular fa-square-terminal - path: ./pages/fern-docs/content/customize-api-playground.mdx - section: Integrations slug: integrations diff --git a/fern/pages/fern-docs/content/api-playground.mdx b/fern/pages/fern-docs/content/api-playground.mdx new file mode 100644 index 00000000000..1b2d116bb6b --- /dev/null +++ b/fern/pages/fern-docs/content/api-playground.mdx @@ -0,0 +1,33 @@ +--- +title: API Playground +subtitle: Reduce "time to 200" by allowing users to make real calls to your API from right within the API Reference. +--- + +This feature is available on the Business plan and above. [Contact us](https://buildwithfern.com/contact) to get set up. + +Fern's API Playground allows users to make authenticated requests to your API without ever leaving your documentation. + +### Auto-populate with examples +Fern will automatically populate the fields of the endpoint with the values set in your API specification. + +
+ +### Authenticated sessions +Once a user sets their authentication credentials once, their credentials persist throughout their entire exploration. + +
+ + +Authentication credentials are only stored client-side using cookies. No sensitive user information is collected or stored. + + +### Multiple environments +Allow users to test their calls in a sandbox environment or select the environment relevant to them. Users can switch between multiple environments. Once they've selected their environment, it persists throughout their entire exploration. + +
+ +### WebSocket Playground + +For APIs that support WebSocket connections, the API Playground 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. + +
\ No newline at end of file