REST api versioning (only version the representation, not the resource itself)

前端 未结 7 855
-上瘾入骨i
-上瘾入骨i 2020-12-04 06:39

I had a look at Best practices for API versioning?, but am not quite convinced of the answer, so I am question the versioning part again with a more specific example. I am h

7条回答
  •  清歌不尽
    2020-12-04 07:11

    I completely agree; a URI expresses identity, identity doesn't change when a new version is introduced. There might be new URIs for additional concepts, of course, and existing URIs might redirect … but including a "v2" in the URI smells RPCish to me.

    Note that this has got nothing to do with REST, really, as from a REST perspective it's all just characters.

提交回复
热议问题