I know that PUT should be idempotent, and the client should define the ID for the object to create. But there is something I don’t clearly understand: how does the client get an available ID? Should be there an other web service that provides one? Is there a best practice for this scenario?
I know that PUT should be idempotent, and the client should define the ID
Share
client should first
GETthe Resource Representationthen issue
PUTwith changes along with theidfrom above stepIt is also recommended to use
If-Modifiedtags to avoid a conflict