I have a RESTful API with Spring HATEOAS. I try to stick to Level 3. And now I have a resource and operations that can be performed on it. One of them is related to Profile resource. Profiles can be cloned. And now I wonder how to do it properly. Clone operation already creates new profile. I was thinking about:
api/profile/{id}/clone- POST. url contains id of the profile that should be cloned. Other required parameters are in request bodyapi/profile/clone- POST. all information is in request body.
Which is better? Or maybe both are not proper ways of implementing this actions and other approach should be used?
/clonefrom the second alternative, then you have it. - a better oliver