rest - Restful versioning -


in restful or application versioning see versioning done adding version url of endpoint, e.g.:

http://app/api/customers/1234
http://app/api/v3/customers/1234
http://app/api/v4/customers/1234

does mean app deployed different servers , 3 maintained or how achieved?

it depends. may handled twofold:

  1. via proxy server (e.g. nginx, apache) using domain.

in scenario proxy server recognizes url , using version part of domain decides forward request. basically, far know, if version located in path (e.g. http://app/api/v3/customers/1234) scenario used. it's used more if version located in domain (e .g. http://v3.app/api//customers/1234)

  1. in application itself.

application exposes endpoints , handles version resolution internally.

no matter how it's handled still need synchronize resources internally - in db e.g.


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -