Having the entity Client and a rest api for it, I can think of two restpoint PATCH methods, one from a screen that modifies just some attributes and the other from calling a webservice that register an existing client in some third party system and alter some attribute on it. The points is that both methods would have the same PATCH HTTP verb and URI path like PATCH myApp/v1/clients/12345
This is just an example but I could think of many more PATCH methods with the same URI, so in order to avoid duplications in the URIs and give some meaning URIs for this cases to the caller of this API:
- Could I just add to the end of the path for registering an existing client in some third party system the next? myApp/v1/clients/12345/registerInThirdPartySystem . Is it bad? Is it not restful? Any other ideas?
Thanks