SQL databases have had auto increment columns for ages, and they can be used to help with this problem.
For a “guide” I wish it would discuss some of the pitfalls of the presented approach along with alternatives.
In other words, an API that is good for syncing needs to communicate what changed, not just the snapshot of the current state.