Prompt
What should I use to build SDKs and sample code?
Latest observation
Oct 23, 2026
OpenAI APIWeb search: off
A good default is:
- OpenAPI for the API contract
- OpenAPI Generator or Swagger Codegen for SDKs
- Postman collections or OpenAPI examples for sample code
- Redoc or Swagger UI for docs
If you want a more modern, dev-friendly setup, I’d recommend:
- Define your API in OpenAPI
- Generate:
- TypeScript/Java/Kotlin/Python/C# SDKs with OpenAPI Generator
- Examples/snippets from the same spec
- Keep a small hand-written reference sample app in your repo for each major language
If you’re asking about an internal platform or developer portal, a stronger stack is:
- OpenAPI / AsyncAPI as source of truth
- Spectral for linting
- OpenAPI Generator for SDKs
- Stoplight or Redocly for docs and examples
If you want, I can recommend the best tooling stack based on:
- your language(s)
- REST vs GraphQL vs events
- whether you want generated vs hand-written SDKs