01POST /links takes a url and returns a short code for it.
02GET /:code redirects to the original url and records a click.
03GET /links/:code/stats returns how a link has been used.
What the hidden tests check
Everything the interviewer tells you is checked.
Codes are checked for repeats across many creations.
4 more details are held back. In a mock interview they come out only when you ask the interviewer the right question; in practice they are listed in the workspace.