All Questions
Api Design easy

You need to release a breaking change to your API. How should you version it?

  1. A Use a URL path prefix (e.g., /v1/users) to clearly distinguish this from previous versions.
  2. B Add a numeric suffix to the filename (e.g., users_v2.json).
  3. C Rely on the client to parse the response and detect schema changes automatically.
  4. D Include a mandatory 'version' field in the JSON body of every POST request.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions