RocketChat / Rocket.Chat.Apps-engine

The Rocket.Chat Apps engine and definitions.

Home Page:https://rocketchat.github.io/Rocket.Chat.Apps-engine/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot extend REST API

fcharrier opened this issue · 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: RocketChat/feature-requests#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