4 ms·
But, in practice, how often does a service change an URI only, without changing the input or output parameters (causing you to have to re-factor your client any
by stevenwei 16y ago
But, in practice, how often does a service change an URI only, without changing the input or output parameters (causing you to have to re-factor your client anyway)?
- drewp 16y agoOften merely moving from the dev environment to the release environment changes the URIs. Sure, you could try to minimize the part that changes between environments and teach all your clients to form correct URIs between environments, but it's still coupling. And dev/prod is hardly the only thing people find themselves adjusting in URIs; it was just an example.
- wahnfrieden 16y agoOne example, if you move domains, all you'd need to do is redirect the single entry point URL to the new one without having to force clients to change anything and with having to redirect every single API request. You can also allow other sites to implement the same API and clients would only have to select a different entry point. Look at AtomPub for instance.