kinto.js icon indicating copy to clipboard operation
kinto.js copied to clipboard

Support custom resource API endpoints

Open slav0nic opened this issue 5 years ago • 3 comments

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.

slav0nic avatar Jan 15 '20 18:01 slav0nic

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.

dstaley avatar Jan 16 '20 02:01 dstaley

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? Kinto/kinto.js#1757 related

slav0nic avatar Jan 16 '20 08:01 slav0nic

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.

Natim avatar Jan 16 '20 09:01 Natim