AlgoViz

REST

easy 26 min

REST is a style for network APIs: everything worth naming gets an address, and a small shared set of HTTP methods acts on it.

What each level should show

The same question is judged differently for mid, senior and staff.

  • Mid

    Must show

    • Nouns in URLs, verbs in methods
    • Right status codes
    • Paged lists

    Will be probed on

    • PUT against PATCH
    • 401 against 403

    Stands out

    Uses Location, ETag and Retry-After without being asked.

  • Senior

    Must show

    • Idempotent creates
    • Lost update protection
    • Cache headers on purpose

    Will be probed on

    • What a retry does
    • Evolving without breaking

    Stands out

    Shows the SQL condition behind If-Match.

  • Staff

    Must show

    • Contract and deprecation policy across teams
    • Choosing REST, GraphQL or gRPC by need
    • Limits and cost per client

    Will be probed on

    • Who owns the gateway
    • How an old version is retired

    Stands out

    Has a measured reason for each style and a plan to leave it.