API First = Server Code Generation
summary
Argues that API First = Server Code Generation and shows a working alternative: specgen.io that generates server stubs and client libraries for Java, Kotlin (native generator), Spring, Node/Express, TypeScript, Go, Scala and Ruby. Criticizes OpenAPI for features that make server generation brittle, cites Smithy, JSON API, Fern and API Builder as other approaches, and describes a CI that generates servers and tests responses automatically so generated code works consistently across stacks in multiple companies.
AI-written summary · about
chapters (9)
- 0:00Introduction and background
- 1:04Defining API first approach
- 3:11Limitations of gRPC and GraphQL
- 3:54OpenAPI strengths and weaknesses
- 7:24Alternative API specification tools
- 8:05Custom specification and code generation
- 10:52SpecGen features and benefits
- 12:17Supported technologies and testing
- 13:00Conclusion and call to action
