dkvc / pwcode

Get Latest Updates from PapersWithCode
https://pwcode.onrender.com/latest
Apache License 2.0
1 stars 1 forks source link

refactor: Add headers and failure checks for API calls #15

Closed dkvc closed 1 year ago

dkvc commented 1 year ago

The header accept: application/json requests the API to return response in JSON format. If server can provide JSON format, it will send back JSON data, else, it returns 406 Not Acceptable status code.

dkvc commented 1 year ago

Since this is a single commit, rebase and merge is preferred.