We currently have api calls that look something like:
Where <organization_resource> is a resource within that organization.
Users are members of one or more organizations.
I would like to simplify the url by removing the need for the organization_uuid in the url since the organization_resource_uuid should be unique, but I’m not having much luck.
We currently use the organization_uuid for an initial authorization check to make sure the user is part of the organization before we do the DB hit, as well as the database shard key to use to actually make the database call.
I’ve though about creating a new composite_organization_resource_uuid that is the combination of both the organization_uuid and the current organization_resource_uuid, but that would make our resource ids super long.
We’ve also thought about creating a mapping table that maps an organization_resource_uuid back to the organization_uuid and querying this table for each request, but that seems inefficient as well.
Has anyone solved a similar issue, and if so how?