Web Services API Versioning

前端 未结 5 1175
长情又很酷
长情又很酷 2020-12-31 01:34

I offer a small Web Services API to my clients which I plan to evolve over time. So I need some sort of versioning, but I can\'t find any information about how you do someth

5条回答
  •  被撕碎了的回忆
    2020-12-31 02:23

    I generally add the version string to the web service URL, giving me "versioned endpoints". The code implementing those endpoints can either be shared, if the differences are trivial and can be handled by the same code, or the code can be cloned, or somewhere in between.

    The different versioned endpoints could also use versioned XML Schemas, if that's what you need.

提交回复
热议问题