Kamalisk / arkhamdb

147 stars 84 forks source link

[API] /api/public/decklists/by_date/{date} does not return data #329

Open FStriewski opened 4 years ago

FStriewski commented 4 years ago

Although the request is formally correct (returns status code 200), the response body is empty for any given date:

Request URL
GET /api/public/decklists/by_date/2020-01-01.json?_format=json

Response Headers [Expand] 
200 OK

Response Body [Raw]
{}

Is this endpoint still supposed to be public & could it be fixed?

If I try the same request with thronesdb, I do get data.

zzorba commented 4 years ago

I'm fairly certain this API endpoint has never been modified to work with ArkhamDB (just a holdover from ThronesDB that was not removed).

I think some work would need to be done to update it appropriately.

FStriewski commented 4 years ago

This is a very interesting data visualization project, running some statistics with decks created over time: https://gravyanecdote.com/category/arkhamhorror/

I am pretty certain that this wouldn't have been possible without the endpoint, unless maybe some massive scraping was involved (which I'd doubt). The last data is from 2019 however.

FStriewski commented 4 years ago

I've opened a pull request for this issue. Turns out that the endpoint indeed never worked before. The project I've mentioned used some scraping software to retrieve the data.

I'd be grateful if the changes could be reviewed and merged. :slightly_smiling_face: