Unified Data Model for API Calls Using URN Format #861
Labels
area/services
Issues related with api services and functionalities.
iteration
Improvement on an existing feature
Issue Overview
We currently have two separate data models for API calls related to relationships and permissions. This leads to minor code duplication, as two different data types/interfaces are needed for JSON serialization.
Proposed Enhancement
I suggest adopting a unified data model that utilizes a URN (Uniform Resource Name) format. This approach can streamline API calls and reduce the redundancy in our code.
Current Approach:
Suggested Data Model:
entity
: {}type
: "urn:relation:parent" or "urn:permission:edit" (replacing separate relationship and permission types)subject
: {}Benefits of the Proposed Change
Impact on Current System
The text was updated successfully, but these errors were encountered: