01Users own documents, named by an x-user header; only the owner sees a document through the owner routes.
02The owner creates share links granting view or edit access to anyone holding the token, each with an expiry.
03Through a link anyone reads the document; an edit link may also update it, and a link holder may re-share it.
04The owner lists a document's links with their status (active, expired, revoked) and revokes any of them.
05Time comes from an x-now header when present; 400 invalid input, 403 not allowed, 404 unknown id or token.
What the hidden tests check
Everything the interviewer tells you is checked.
Expiry is checked to the second, through every route a link can reach.
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.