~/talk

Stop Worrying About Routes With OpenAPI Generator

Talkat ServerSide.swift 2024 · 2024-09-26..09-27· [api-design, swift]
links:none on file
slides:none on file

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

  1. 0:00Introduction and speaker intro
  2. 1:56What is OpenAPI Generator
  3. 3:00Features from Swift OpenAPI Generator
  4. 4:30Making code production ready
  5. 5:58Demo: Adding business logic
  6. 7:25Error handling and validation
  7. 8:31Authentication challenges
  8. 9:13Postman demo and results
  9. 9:59Key takeaways and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.