-
Notifications
You must be signed in to change notification settings - Fork 36
Description
A binary ID is cumbersome and nonstandard on the web. From looking through the other issues this seems to be a leaky abstraction of the implementation detail; the ID's in the database are encoded into binary values to increase indexing speed. While fine to use such an optimization on the database side of things it seems unwise to leak that to the API. Much more easily the API can consume UUID values and convert them to whatever you want.
UUIDs are the only type of IDs, that I know of, which are expected for an external user to generate before creating. It is not really possible for a user to keep track of an index of IDs outside of the database in order to create an ID other than generating it randomly anyway.
So if UUIDs are the expected id type then the API should explain that with it's contract not with it's documentation.