-
Notifications
You must be signed in to change notification settings - Fork 13
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for bump-content-hub ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 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. | ||
|
||
 |
There was a problem hiding this comment.
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!
|
||
 | ||
|
||
### Configure Your SDK Resources |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2. Deploys the expetend specification file to bump.sh | |
2. Deploys the extended specification file to bump.sh |
No description provided.