Generating a custom SDK for your web service or Rails API
summary
Generates a custom Ruby SDK for a Rails API using Smithy Ruby and a rails_json protocol, building a sample HighScore Rails app, a Smithy model for CRUD operations, and running smithy build to emit a gem with lib and RBS. The generated client uses middleware, retries (demo shows three requests during retries), stub responses, interceptors, plugins, waiters and paginators. The demo exercises list create and delete and returns a modeled UnprocessableEntity error and a not found error as expected.
AI-written summary · about
chapters (21)
- 0:00Introduction and speaker
- 1:12Why use Smithy Ruby
- 2:55Setting up the Rails API
- 3:57What is Smithy
- 4:39Defining the service model
- 6:47Generating the SDK
- 7:29SDK usage demo
- 8:34How the SDK works
- 9:17Public features overview
- 10:20Types and logging
- 11:01Error handling
- 12:47Custom HTTP client
- 13:29Retry strategies
- 14:53Stubbing for testing
- 15:34Interceptors
- 16:38Plugins
- 17:19Waiters
- 18:21Pagination support
- 19:25Authentication
- 20:27SDK internals deep dive
- 22:12Conclusion and resources








