~/talk

From annotations to code: describing HTTP endpoints with Tapir

Talkat GeeCON 2019 · 2019-05-15..05-17· [web-platform, scala]
slides:none on file

Live-coding shows replacing annotation-driven HTTP mappings with immutable Scala values using the Tapir library, building two endpoints: GET /books (optional year filter and limit) and GET /books/{UUID}, plus a Year codec and a BookFilter case class to keep type safety and reuse. Endpoints compile to Akka HTTP integration routes, run on localhost:8080, and generate OpenAPI/Swagger docs (with examples). The demo actually serves JSON, enforces types at compile time, and returns 404-like error strings when not found.

AI-written summary · about

  1. 0:00Introduction
  2. 10:46Modeling HTTP endpoints
  3. 21:50Extracting common patterns
  4. 31:44Exposing endpoints as server
  5. 41:56Generating documentation
  6. 46:15Functional programming basics
  7. 49:50Tapir library overview
  8. 51:55Q&A 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.