Sort Adjustment
Interfaces for adjusting the display order of entities.
Move Position
Adjust the sorting order of an entity (e.g., move up, move down, drag and drop sort).
- URL:
/api/app/{entity-name}/{id}/move - Method:
POST - Request Body:
{
"targetId": "uuid-of-target-item",
"position": "Above" // or "Below"
}
Implementation
Sorting typically relies on a SortOrder integer field in the database entity. The service layer calculates the new SortOrder value based on the target position and updates the relevant records.