I’m building e-commerce application. Path to the order looks like /Orders/Details/{orderId}.
However I don’t want expose orderId to the end-user.
How can I identify order, not using database identifier?
Is it necessary to generate some random unique string like GUID?
I’m building e-commerce application. Path to the order looks like /Orders/Details/{orderId} . However I
Share
You would need to assign some other identifier to the entity that you didn’t mind users seeing (some kind of alternate key).
Alternatively you could use encrypted or obfuscated IDs, and have your application handle decryption or de-obfuscation.