~/talk

Documenting RESTful APIs with Spring REST Docs

Talkat SpringOne Platform 2017 · 2017-12-04..12-07· [api-design, documentation]
slides:none on file

A test-driven workflow that uses Spring REST Docs plus Asciidoctor to generate real request/response snippets from integration tests, hooked into Gradle or Maven, produces HTML/PDF docs and pushes to GitHub Pages. Example app: a greetings API with POST/GET endpoints, generated curl/postman examples, and reusable snippet templates; tests fail when fields change so documentation stays accurate. Works with WebFlux, Ratpack and REST-assured, and integrates with Postman or curl.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 3:46Understanding API documentation needs
  3. 7:06Common API documentation challenges
  4. 13:54Documentation tooling landscape
  5. 19:37Problems with Swagger
  6. 25:43Test-driven documentation concept
  7. 28:54Spring REST Docs overview
  8. 31:53Setting up Spring REST Docs
  9. 35:43Writing tests with WebTestClient
  10. 40:49Generating documentation snippets
  11. 45:55Integrating snippets into docs
  12. 49:37Customizing documentation output
  13. 52:10Publishing documentation
  14. 54:37Using REST Docs with other frameworks
  15. 55:45Conclusion and resources
~/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.