1 · Is anything alive?
GET /api/health — the server queries the database before answering.
checking…
2 · Data from the database
GET /api/planets — filtering and sorting happen in SQL, on the server.
In v1 this was a hard-coded JavaScript array.
3 · One record, joined with another table
GET /api/planets/:slug — two queries, never one-per-fact.
Click any planet above.
nothing selected
4 · A question with no fixed answer
GET /api/moon?date= — the only endpoint that cannot be pre-computed,
because you choose the date. Pick any day, past or future.
pick a date
5 · Something you send TO the server
GET /api/quiz/levels/:id then POST /api/quiz/attempts —
the questions come down without their answers, and the marking happens on the
server. Look in DevTools: the correct answers are genuinely not in the response.