Open rlskoeser opened 7 years ago
In some cases, I got empty non-error pages (200 OK) for what I think were invalid urls - that makes it harder to figure out what's going wrong when experimenting with the API. These kinds of urls should either return a 404 or redirect somewhere useful.
Notes from my last round of testing after updates were made:
On my initial tests, API requests returned 500 errors when no data was loaded; it should have error handling throughout.
magazines/id
should return a 404 Not Found when the referenced id is not foundissues/id
should return a 404 Not Found when the referenced id is not foundAny other API endpoints that reference ids should return 404s if the id is not found in the loaded data.
Any requested URL that doesn't match a valid API endpoint should return a 404.