strazto / videoduplicatefinder

NOT MAINTAINED - Use https://github.com/0x90d/videoduplicatefinder -
15 stars 3 forks source link

Web-App - Endpoints Needed for parity with other apps #2

Open strazto opened 3 years ago

strazto commented 3 years ago

Environment

Endpoints

In fairness, database exploration is pretty buggy on native frontends anyway

strazto commented 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)}/.