~/talk

Type-Safe APIs - Syncing Back & Front End Types w/ Code Generation

Talkat All Things Open 2020 · 2020-10-19..10-20· [typescript]
slides:none on file

Claim: generate TypeScript API clients from backend OpenAPI/Swagger specs so front and back share one source of truth. Uses Springfox to emit specs, openapi-generator (the openapi-generator npm package) to produce axios/TypeScript clients, and publishes them as npm packages with CI & NPM versioning so multiple apps consume the same types. Outcome: builds fail fast when contracts change, IDEs get accurate completions, and POLITICO reports much less hand-rolled syncing pain when microservices evolve.

AI-written summary · about

  1. 0:00Start
  2. 0:05TYPE-SAFE APIS Syncing Back & Front End Types w/ Code Generation
  3. 1:452. A Remedy Type sharing w/ code generation
  4. 8:02how is it documented?
  5. 14:49A REMEDY Type sharing w code generation
  6. 17:01API Specification Describes endpoints, params, & responses
~/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.