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

Mixed trailing slashes #95

Open
lewisdiamond opened this issue Nov 14, 2014 · 1 comment
Open

Mixed trailing slashes #95

lewisdiamond opened this issue Nov 14, 2014 · 1 comment

Comments

@lewisdiamond
Copy link

Consider this API:
site.com/api/collection/item to get an item
site.com/api/collection/ to get the whole collection

Currently, either everything ends with a / or nothing does. Typically, if it ends with a / it means it's a collection.

@ncolton
Copy link

ncolton commented Feb 13, 2015

At work the group choice ended up being:

  • site.com/api/items/id – to get a single item by id
  • site.com/api/items – to get all items

Not disregarding your note, just wanting to make sure this scenario is considered as part of the discussion.

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