Design the endpoints
Each exercise describes a real system and a list of requests. For every request, pick the HTTP method, the path and, where asked, the status code the server should return. Check, read why, fix the red ones.
-
Online shop: catalogue, cart and orders
Products, a shopping cart and orders: eight requests to map onto methods, paths and status codes.
8 requests -
Hotel booking: no double bookings
Search, book, move and cancel hotel rooms, including what the server answers when two guests want the same room.
7 requests -
Payments: retries, refunds and reports
Charge cards safely under retries, refund part of a payment, build a slow report, and handle a token without the right scope.
8 requests