You must reject all requests that click the endpoint /users/
. First of all, for security reasons (at the database level), and secondly, this is not a client task for generating / proposing identifiers.
So, the answer is to reject the request as invalid along with the corresponding status code ( 400
) and a message explaining the reason for the rejection.
, , ID (, , ), , . , PUT
, / - .
RESTful - upsert REST - POST
. - .