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

Let different endpoint handle the same collection #2

Open
teone opened this issue Mar 5, 2016 · 1 comment
Open

Let different endpoint handle the same collection #2

teone opened this issue Mar 5, 2016 · 1 comment

Comments

@teone
Copy link
Owner

teone commented Mar 5, 2016

For example:

/posts and /articles should both manage the text collection. A possible approach is:

[
  {
    "url": "post",
    "base": "api/",
    "methods": ["GET", "POST"],
    "param": "id",
    "collection": "text"
  },
  {
    "url": "SCA_ETH_FDFr_EC",
    "base": "api/",
    "methods": ["GET", "POST"],
    "param": "id",
    "collection": "text"
  }
]
@teone
Copy link
Owner Author

teone commented Mar 21, 2016

Consider also how to handle similar endpoints (eg: api/user/devices, api/other/devices).
Now they'll look for the same definition file devices.json. Probably adding an optional filename to the config should work.

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

No branches or pull requests

1 participant