Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add Stainless integration guide #336

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dgellow
Copy link

@dgellow dgellow commented Feb 26, 2025

No description provided.

Copy link

netlify bot commented Feb 26, 2025

Deploy Preview for bump-content-hub ready!

Name Link
🔨 Latest commit e513c4a
🔍 Latest deploy log https://app.netlify.com/sites/bump-content-hub/deploys/67bf1a549a854b0008ffe14e
😎 Deploy Preview https://deploy-preview-336--bump-content-hub.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

@dtmeadows dtmeadows left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few comments / suggestions but overall this looks really great! Thanks so much @dgellow!

date: 2025-02-26
---

Every developer wants to get up and running with an API as quickly as possible, and that means seeing code examples in their preferred language. With Stainless SDK integration in your bump.sh docs, you can automatically display idiomatic SDK code samples alongside your API reference documentation.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Every developer wants to get up and running with an API as quickly as possible, and that means seeing code examples in their preferred language. With Stainless SDK integration in your bump.sh docs, you can automatically display idiomatic SDK code samples alongside your API reference documentation.
Every developer wants to get up and running with an API as quickly as possible, and that means seeing code examples in their preferred language. With an integration between [Stainless](https://www.stainless.com/) and your bump.sh docs, you can automatically display idiomatic SDK code samples alongside your API reference documentation.

2. Stainless decorates your OpenAPI with code samples for each endpoint
3. bump.sh renders these samples in your API reference documentation

The result is an interactive documentation that shows both raw HTTP requests and language-specific SDK examples developers can copy-paste and

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The result is an interactive documentation that shows both raw HTTP requests and language-specific SDK examples developers can copy-paste and
The result is interactive documentation that shows both raw HTTP requests and language-specific SDK examples that developers can copy-paste and


Before starting, make sure you have:

- An account on [Stainless](https://app.stainless.com/)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- An account on [Stainless](https://app.stainless.com/)
- An account on [Stainless](https://app.stainlessapi.com/signup)


The Stainless Studio provides an immediate preview of your SDK structure based on your API's resources, endpoints, and models.

![Stainless SDK Studio showing SDK preview](/images/guides/stainless-integration/studio-preview.png)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might add a callout here to our docs too!


![Stainless SDK Studio showing SDK preview](/images/guides/stainless-integration/studio-preview.png)

### Configure Your SDK Resources

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might omit this section and just link to our own getting started guide?


## Connecting Stainless with bump.sh

The most efficient way to keep your SDK in sync with your documentation is through CI/CD automation.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might just link to our own docs here so we don't have to maintain multiple places describing how to set up the github action?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh nvm now I see this has bump step in it!


This workflow:

1. Upload your OpenAPI specification file to Stainless, triggering new builds of your SDKs

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. Upload your OpenAPI specification file to Stainless, triggering new builds of your SDKs
1. Uploads your OpenAPI specification file to Stainless, triggering a new update to your SDKs

This workflow:

1. Upload your OpenAPI specification file to Stainless, triggering new builds of your SDKs
2. Deploys the expetend specification file to bump.sh

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
2. Deploys the expetend specification file to bump.sh
2. Deploys the extended specification file to bump.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants