mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
ab1ab39f98
Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.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://www.stainless.com/docs/docs-integrations/mintlify) 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>
|