~/talk

REST & GraphQL: Adventures in schema-first API development

Talkat DevConf.US 2024 · 2024-08-14..08-16· [api-design, web-platform]
links:none on file
links:none on file
slides:none on file

Pyxis is a Python MongoDB service serving millions of requests per day with ~100 external and ~150 internal endpoints; it moves from duplicated OpenAPI, marshmallow and GraphQL schemas to a single central schema that a Python generator turns into OpenAPI, marshmallow validators, GraphQL SDL and DB index specs. Schema-attached directives implement auth, validation, encryption and DB ops in order. REST becomes a thin REST adapter that translates HTTP to GraphQL. Migration uses generated integration test data and a flip-the-field cutover and results in far less duplication, easier onboarding and smoother releases.

AI-written summary · about

  1. 0:00Intro
  2. 0:19Agenda
  3. 1:23Pixes
  4. 6:16Schema first approach
  5. 12:42Documentation
  6. 18:23Lessons Learned
  7. 22:48How we build REST
  8. 26:03Questions
~/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.