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

Directing url with slash to resoruce representing by url without slash #3

Open
arkadiusz-wieczorek opened this issue Sep 13, 2015 · 1 comment

Comments

@arkadiusz-wieczorek
Copy link
Member

  • Method GET for /api/something receives positive response
  • Method GET for /api/something/ receives 404

In my opinion if developer sends get to url api with slash he should receive positive response.

@arkadiusz-wieczorek arkadiusz-wieczorek changed the title Directing url with slash to url without slash Directing url with slash to resoruce representing by url without slash Sep 13, 2015
@kuba-orlik
Copy link
Member

Although originally trailing slash in REST urls changed what the request means, I think it wouldn't hurt to create such redirection. It would be tricky to implement it with our current http handling structure (hapi) and most of the time REST paths are being accessed programatically, not by humans, so I don't consider the redirection high-priority

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

2 participants