4 ms·
how do you deal with id changes/renames in actual rest?
by ksjskskskkk 3y ago
how do you deal with id changes/renames in actual rest?
- deleted 3y ago[deleted]
- diggan 3y agoHave an internal ID and one "public" ID. The public one can be mutated with PUT/PATCH calls that are idempotent, the internal ID never ever changes.
- ksjskskskkk 3y agothat's technically a title change. real world systems might have to change actual ids. like the article. or say you grow to some other use case not covered before because of new regulation etc... 301 is the only rest way.