Level 1 · Apprentice0 XP
Resources, status codes, DTOs and pagination that clients can rely on.
Step 1 / 6
ProblemEvery endpoint is a POST with a verb in the path. They return 200 even on errors, with an error flag in the body. One returns the JPA entity directly, so a new database column appeared in the public API and a mobile client broke.
← → step
Before this: Configuration and profiles
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Design the endpoints for a small library: list books (paginated), get one, add one, change one, delete one, and borrow one. For each, write the method, the path, the success status and one error status. Then implement the list and the create.