Looking for some advice. In my project’s api (currently non JSON:API), I conceal the primary key and instead am using a sequenced, organisation and entity scoped identifier.
Organisation 1
process/1
process/2
process/3
system/1
system/2
system/3
Organisation 2
process/1
process/2
process/3
system/1
system/2
system/3
Side note: My app will validate a resource using on the currently authenticated organisation and the entity’s identifier. The reason for this design stemmed from wanting to keep entities easily trackable for system users, the id is used for ordering records in tables and record links.
I read that:
“an object’s type
and id
pair MUST identify a single, unique resource.”
How could such a schema be handled?