~/talk

Documenting RESTful APIs with Spring REST Docs and RAML

Talkat Spring I/O 2018 · 2018-05-24..05-25· [api-design, documentation]
slides:none on file

Spring REST Docs plus restdocs-raml turns test-driven snippets into a machine-readable RAML API (API.raml) and JSON Schemas, extracting request/response fields, links and examples from MockMVC tests and failing builds when documentation and payload diverge. CI collects per-service snippets into a single RAML for the public developer portal. Outputs feed raml2html, the API Console, and converters (APIMatic → Postman), enabling interactive docs and usable artifacts from existing tests. test-driven snippets fail tests on mismatch restdocs-raml generates API.raml and JSON Schema raml2html and API Console produce interactive docs

AI-written summary · about

  1. 0:00Start
  2. 2:31Why Spring REST Docs?
  3. 18:47Aggregate Documentation
  4. 22:22A machine readable API description?
  5. 44:38Conclusion
~/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.