Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GET to API endpoints should return "405 method not allowed" #57

Open
dbrgn opened this issue Nov 16, 2020 · 0 comments
Open

GET to API endpoints should return "405 method not allowed" #57

dbrgn opened this issue Nov 16, 2020 · 0 comments

Comments

@dbrgn
Copy link
Contributor

dbrgn commented Nov 16, 2020

When doing a GET request to https://validator.spaceapi.io/v2/validateJSON or https://validator.spaceapi.io/v2/validateURL, a HTTP "404 not found" response is returned. A RESTful service should return "405 method not allowed" instead.

(In theory every unsupported method should return a HTTP 405, but if that's too complicated to do, simply returning 405 to a GET request for those two endpoints would already improve usability/discoverability of the API. I opened the endpoint in the web browser and was confused to get a 404 back 🙂)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant