Skip to content
Theory · API and data model · lesson 1 of 7

From requirements to requests

A card index sorted by restaurant and day: GET /slots reads one card of time slots, and POST /book ticks a slot on the same card

The requirements are known, the load is estimated, and it is time to decide what the service does when a client asks. Take a service for booking restaurant tables. A user searches for a restaurant, looks at the free times for an evening and books a table. Later they see their bookings and can cancel one they no longer need. Before reading on, draw what stands behind these requests.

In this lesson

  • From requirement to call
  • What a call is made of
  • Which calls matter most
  • Common mistake
  • Key points