Skip to content

API should switch to UUIDs for entity Identification #21

@from-nibly

Description

@from-nibly

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions