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

Support custom resource API endpoints #1751

Open
slav0nic opened this issue Jan 15, 2020 · 3 comments
Open

Support custom resource API endpoints #1751

slav0nic opened this issue Jan 15, 2020 · 3 comments
Labels
enhancement stale For marking issues as stale. Labeled issues will be closed soon if label is not removed.

Comments

@slav0nic
Copy link

Kinto internally allow register custom colander based Resource, but i don't see any functionality related to this in kinto-http.js

all kinto-http.js API works only with bucket/collections, but what to do with endpoints like /mushrooms/ from this example?

If this possible, will be fine document it.

@dstaley
Copy link
Member

dstaley commented Jan 16, 2020

The documentation you linked is for kinto.core, which powers kinto, the server/API this library is designed for. I don't think kinto allows for defining custom resources (instead you'd set a schema on a collection), but I'll let @leplatrem confirm.

@slav0nic
Copy link
Author

But kinto also support plugins that internally have all of this, for example /accounts/ endpoint don't use bucket/collection, is it possible get listing via kinto-http.js for existing accounts for example?
#1757 related

@Natim
Copy link
Member

Natim commented Jan 16, 2020

It is true that Kinto gives a toolkit to be able to create Resources on other endpoints.

I don't think today kinto-http.js is able to configure totally custom urls. but it might be a nice addition indeed.

@dstaley dstaley reopened this Apr 9, 2020
@dstaley dstaley transferred this issue from Kinto/kinto-http.js Apr 4, 2022
@alexcottner alexcottner added the stale For marking issues as stale. Labeled issues will be closed soon if label is not removed. label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement stale For marking issues as stale. Labeled issues will be closed soon if label is not removed.
Projects
None yet
Development

No branches or pull requests

4 participants