~/talk

Designing a REST-ful API using Spring 3

Talkat SpringOne2GX 2012 · 2012-10-01..10-03· [api-design, java]
name:Ben Hale
links:none on file
slides:none on file

Design shows concrete choices: use Spring 3 MVC controllers, Jackson for JSON, and Rest Shell for manual demos; return 201 with a Location header when creating games and 202 for long tasks; model actions as state changes (PUT a door’s status) instead of inventing verbs; expose navigable HATEOAS links produced by resource assemblers so clients never hardcode URIs; test the web layer with MockMvc tests to assert status codes, JSON payloads and link relations.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:24What is REST?
  3. 10:55HTTP verbs and their use
  4. 20:56Designing the API interaction model
  5. 30:51Implementing with Spring MVC
  6. 45:01Status codes and error handling
  7. 54:18Hypermedia and HATEOAS
  8. 1:11:04Spring HATEOAS and links
  9. 1:20:56Testing REST APIs
  10. 1:27:17Q&A and summary
~/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.