Business tool · Edition 2

Full-stack concepts

Model the data and sketch an API. Full-stack execution is not available.

Before you begin

Recognise a client, a fictional API request/response and one permission decision.

The practical problem

Design a bookings prototype for a fictional photography studio. Two members may request the same slot; a browser form cannot be the authority on whether both requests succeed.

Build it step by step

  1. Model slots, bookings and fictional members. Write which actions a signed-in member and administrator should be allowed to take.
  2. Sketch request and response examples for a successful request, an already-taken slot and an unauthorised caller.
  3. Use a local mock to display each outcome. Draw where an atomic server decision, privacy filter and audit record would belong.

Acceptance criteria

  • The model identifies one authoritative booking record per slot.
  • A conflict, invalid request and unauthorised request are distinguishable.
  • Your mock uses no server, credentials or personal information, and explains what it cannot prove.

Common mistake

Checking a slot and changing it in separate uncoordinated steps invites duplicate bookings. A hidden browser button does not enforce permissions.

How to assess your work

Run the checks below and write down what you expected, what happened, and one change you can demonstrate. Self-checks are practice evidence, not a verified grade.

Build

Sketch a booking form for a fictional studio. Define entities, who may edit each field, and example HTTP responses. Use static mock data only.

Test

Walk through two people trying to reserve the same slot. Document which request succeeds and what error the other person sees.

Reflect

Which decisions belong on the server rather than in the browser?

Starter project and AI hint

Model slots, bookings, and members. Sketch how two people attempting the same time would be handled. No server is required.

Ask for help identifying which actions require server-side authorisation. Keep the example conceptual.