GrafeasGroup / blossom

The website. The app. The everything.
6 stars 3 forks source link

Add `/find/` endpoint #186

Closed TimJentzsch closed 2 years ago

TimJentzsch commented 3 years ago

Add an endpoint to find a submission or transcription based on a URL.

This functionality has already been implemented in Buttercup. However, I think it makes sense to move it to Blossom:

The response should return all data available for that URL:

The following URLs should be valid for the search:

For the links, all common forms of Reddit URLs must be accepted, e.g. Old or New Reddit.

The relevant Buttercup code is available here: https://github.com/GrafeasGroup/buttercup/blob/master/buttercup/cogs/find.py