Open strazto opened 3 years ago
duplicate api notes:
I've been considering how to provide some consistent API view for manipulating duplicates, as the current GET just fetches them by whatever order they show up in the list.
I think the best approach is probably to return a view of them grouped by GroupId
, which can be transformed client-side (though, most likely, it's the most useful view anyway), and itemized API requested can be done through /api/duplicate/{gid}/{index_in_group}/
(? maybe - though index_in_group
still feels unstable if multiple clients were connected) so possibly /api/duplicate/{gid}/{hash(path)}/
.
Environment
Endpoints
In fairness, database exploration is pretty buggy on native frontends anyway