REST API does not support entities with composite primary key #49
Labels
state: fixed
Fixed by the developer
type: enhancement
New feature or request
ver: 7.2.3
Fixed in version
ver: 7.3.0
Fixed in version
Milestone
Since id of such entities is passed as object it's not possible to call some methods where id is used in path fragment
DELETE /entities/{entityName}/{entityId}
GET /entities/{entityName}/{entityId}
PUT /entities/{entityName}/{entityId}
Solution:
Represent composite key identifier as JSON string and apply base64 URL encoding.
Model:
Encoding sample:
{tenant : 1, entityId: 1}
e3RlbmFudCA6IDEsIGVudGl0eUlkOiAxfQ==
/entities/ref$CompositeKeyEntity/e3RlbmFudCA6IDEsIGVudGl0eUlkOiAxfQ==
Original issue: https://youtrack.haulmont.com/issue/PL-9444
The text was updated successfully, but these errors were encountered: