API endpoint should use url based version, passed as part of path.
Enpoints looks like this:
Default:
api.cdp-rb.com/profile
(alias to default version)
v1 version:
api.cdp-rb.com/v1/profile
v1.1 version:
api.cdp-rb.com/v1.1/profile
If current default version is v1.1 that means that:
api.cdp-rb.com/profile
will execute api.cdp-rb.com/v1.1/profile
Its recomended that every target service should be deployed per version.
For example if profile-service will service versions v1,v1.1 - deployed two separated versions.
Applications should define endpoint without versioning part.
Add Comment