Change in the management of relations between MP entities
Currently, the entity create and update methods do not take into account relationships between entities. It means that in any methods POST /api/tools
, PUT /api/tools/{id}
(POST /api/training-materials
, PUT /api/training-materials/{id}
, etc. - generally POST /api/{entity-type}
, PUT /api/{entity-type}/{id}
) there is no possibility to add/remove relationships between created/updated entities and other existing entities. Now, there are dedicated methods POST /api/items-relations/{subjcetId}/{objectId}
and DELETE /api/items-relations/{subjcetId}/{objectId}
to manage these relations.
But, edit forms (https://xd.adobe.com/view/4b453f47-eca4-4bb2-7306-2907abb26bdb-3d74/screen/452827a8-f9f0-487f-b9ce-6258165b55f4/) need to save all data of a given entity in one request. So I want to replace methods POST /api/items-relations/{subjcetId}/{objectId}
and DELETE /api/items-relations/{subjcetId}/{objectId}
with separate fields in POST /api/{entity-type}
and PUT /api/{entity-type}/{id}
.
Does anyone have comments or concerns about this change? @matej.durco @klaus.illmayer @sotiris.karampatakis @stefan.probst