~/talk

5 Mistakes Developers Make When Building Java APIs (and How to Fix Them)

Talkat Commit Your Code 2026 · 2026-09-02..09-04· [java, api-design]
links:none on file
slides:none on file

Five concrete API mistakes with Java and Spring Boot come with specific fixes and a demo repo: inconsistent naming (use kebab-case URLs), misplaced validation (move checks to controller/DTOs with @NotNull validation and return 400s not 500s), inconsistent error handling (centralize with a ControllerAdvice centralized exception handler), returning JPA entities (introduce DTOs instead of entities), and missing versioning. Examples show before/after code and Postman screenshots proving clearer error responses, reduced coupling, and easier future changes.

AI-written summary · about

  1. 0:00Five Java API mistakes
  2. 2:40Inconsistent naming issues
  3. 10:57Misplaced validation risks
  4. 13:21Fixing error handling
  5. 14:22Raw DB entities risks
  6. 15:29API versioning benefits
  7. 17:35Poor API design effects
  8. 19:21Intentional API design
~/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.