~/talk

Test-driven documentation with Spring REST Docs

Talkat Spring I/O 2016 · 2016-05-19..05-20· [documentation, testing]
links:none on file
slides:none on file

Introduces Spring REST Docs as a test-driven pipeline that hooks into integration tests (MockMvc or REST Assured), produces reusable snippets, and injects them into prose written with Asciidoctor or Markdown. Tests generate curl and HTTPie examples, response/request field tables, headers and hypermedia links; tests fail if documented fields don’t match actual requests or responses, and relaxed snippets allow partial examples. Build plugins (Maven/Gradle) produce HTML/PDF and can bundle docs into the service jar for serving.

AI-written summary · about

  1. 0:00Start
  2. 19:53HTTP request
  3. 20:11Path parameters
  4. 21:08Response fields Pothi Type Description
  5. 21:35Asciidoctor
  6. 23:33Other snippets
~/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.