~/talk

Rswag: Automated API Documentation

Talkat RubyConf 2021 · 2021-11-08..11-10· [ruby, ruby-on-rails]
github:snreid
slides:none on file

Shows how rswag plugs into Rails specs and runs specs to generate an OpenAPI schema, then swaggerize writes swagger.yaml that reflects real responses. Demonstrates that tests execute real HTTP requests and captures real HTTP responses into examples, lets CI fail when docs drift, and drives a Swagger UI that can execute requests, generate mock servers and client code, validate JSON schemas, and handle auth. Practical demo includes adding/removing a field and immediately updating docs.

AI-written summary · about

  1. 0:00Start
  2. 7:50Our Documentation Struggle
  3. 9:25Criteria for Improvement
  4. 13:53Example: GET /articles
  5. 18:54Anatomy of an Rswag Spec
  6. 28:13Advanced Features
~/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.