mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
f14cca3b52
* Standardize style: 'Click' to 'Select' for Mintlify UI; split long sentences Generated-By: mintlify-agent * Revert 'select' back to 'click' for UI interactions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Fix select→click for UI elements across docs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
---
|
|
title: "Stainless"
|
|
description: "Display autogenerated SDK code samples from Stainless in your API playground with type-safe examples across Python, TypeScript, and other SDKs."
|
|
keywords: ["Stainless SDK", "SDK generation", "API client libraries", "type-safe SDKs"]
|
|
boost: 3
|
|
---
|
|
|
|
## Prerequisites
|
|
|
|
* Have a [Stainless](https://app.stainless.com) account.
|
|
|
|
## Set up the integration
|
|
|
|
<Steps>
|
|
<Step title="Set up OpenAPI decoration in Stainless.">
|
|
In your `stainless.yml` config file, add `openapi.code_samples: 'mintlify'`. See the [Stainless documentation](https://app.stainless.com/docs/guides/integrate-docs) for more information.
|
|
</Step>
|
|
<Step title="Publish the URL to your OpenAPI spec.">
|
|
In your Stainless project:
|
|
|
|
1. Click the **Release** tab.
|
|
2. Click **Setup OpenAPI publishing**.
|
|
3. Copy the URL to your publicly accessible OpenAPI spec.
|
|
|
|
<img
|
|
src="/images/stainless-public-OpenAPI-spec.png"
|
|
alt="Stainless release page with the OpenAPI spec URL highlighted with a green box."
|
|
/>
|
|
</Step>
|
|
<Step title={<>Add your OpenAPI spec URL to your <code>docs.json</code>.</>}>
|
|
In your `docs.json` file, add the URL from Stainless to the `openapi` field. See [OpenAPI Setup](/api-playground/openapi-setup) for more information.
|
|
</Step>
|
|
</Steps>
|