Given a use case, write the endpoint yourself: method, path, body, and status code, then compare with the one a reviewer would approve.
You design the endpoint before you see one. The reveal shows the endpoint a reviewer would approve, why it wins, and a rubric for your level, and the design considerations are there as hints if you need them. Cards are scheduled with spaced repetition: missed cards return sooner, and known cards space out.
You're designing the cart service for an e-commerce app. The frontend needs to add a specific item to a logged-in…
You're building a payments API. Clients sometimes retry after a timeout and you cannot double-charge. Pick the best…
You're shipping the first public version of your API. You know breaking changes are inevitable and you need a…
Your blog API needs to let an author delete one of their posts. Pick the best endpoint and response.
Your storefront needs to list products filtered by category, price range, and in-stock status, with a free-text search…
Two editors open the same document and both save changes a few seconds apart. You need to detect and reject the second…
Earlier you exposed POST /v1/exports to start an export job. Now you need to let the user cancel an in-progress job…
Your platform sends webhook events to subscribers when a payment succeeds. You're designing the outbound HTTP call…
A signup request fails validation: the email is malformed and the password is too short. The web and mobile clients…
Mobile clients download a 200 KB app configuration document on every launch, but it changes about once a week. Pick the…
A third-party scheduling app wants to read your users' calendar events so it can suggest meeting times. It must never…
Two internal services exchange about 40,000 small requests per second: the pricing service asks the inventory service…