Stop Worrying About Routes With OpenAPI Generator
summary
Swift OpenAPI Generator produces Swift models, HTTP clients and server stubs from an OpenAPI spec, wiring base URL, timeouts and error enum handling automatically. It generates Vapor routes generated as placeholders that require adding database calls and business logic, and client code that performs requests out of the box. Production gaps are integration with a DB, explicit input validation and auth — validation must be added by hand and auth still manual and brittle. Demo requests via Postman show list, get-by-id and create work, with create returning validation errors when fields are missing.
AI-written summary · about
chapters (9)
- 0:00Introduction and speaker intro
- 1:56What is OpenAPI Generator
- 3:00Features from Swift OpenAPI Generator
- 4:30Making code production ready
- 5:58Demo: Adding business logic
- 7:25Error handling and validation
- 8:31Authentication challenges
- 9:13Postman demo and results
- 9:59Key takeaways and closing
related talks
37mWhy to Use Design First and Server Side Swift if Everything Works Anyway
26mOpenAPI Generator - The Babel Fish of the API World
19mSecure and accelerate APIs' lifecycle with the OpenAPI specification
35mAPI-First! Contract-First! Make API development great again!
23mGenerate OpenAPI Schema from Golang Code with the Fuego Framework.
39mAPI Development in 2017
26mGenerating OpenAPIs from business models
35mFake It Before You Make It: Mocking Your Way to Better HTTP APIs
