Rocket.Chat.Apps-engine icon indicating copy to clipboard operation
Rocket.Chat.Apps-engine copied to clipboard

Cannot extend REST API

Open fcharrier opened this issue 5 years ago • 0 comments

Hi,

I would like to use the "subscriptions.get" API, but I need to be able to sort & limit results (I proposed to make this dev here: https://github.com/RocketChat/feature-requests/issues/404). If this development does not match the roadmap, or does not make sense for the product, I thought I would be able to do it via an app.

I tried it, but the app does not allow the "secure" mode (only ApiSecurity.UNSECURE is available). I tried to make my own "security" check, but can't access to user "auth token" to check it. Even if I can make this check, it seems there is no way to access directly the mongo database, to return sorted and limited results.

Is there a way for an app to access RC "directly", without the given bridge?

Thanks, Fred

fcharrier avatar Oct 12 '20 14:10 fcharrier