[api] Creation of an object does not return its final full name
I just realised that, when we create a new object, the API only returns an empty message with a 200 status code. It is not possible to be assertive about the full name the object will take on the other side. That would imply, at least, in 2 API calls (one for check_name
before the post), and hope for the best on the naming, including bumped version numbers accounting.
Ideally, the API should return the full name of the created object so that the client knows what is its final name. As a plus, it could also return the "view" URL, allowing the client to redirect to the final view of the just created object. As it can be expected, calculating the final view URL from javascript is not an easy task and may imply in too much hard-coding (as it is already). A change in the Django URLs and we're off into re-writing everything again.
In summary, all create APIs, new versions, forks, etc should return the final object created full name + at least the view URL of the object.