How can I read a resource only by their id (cid, uid, tid etc.) rather than the name or name+id?
-
Hey @baris, what's the status on this? I don't mind doing it and just making a PR to branch
0.7.x
. It's just going to a carbon copy of the changes in your commit here: https://github.com/NodeBB/NodeBB/commit/c139dfa843b87bdb246a2804946e8e5502a4719e -
@truetuna If you need only users, you could use this plugin: https://github.com/NicolasSiver/nodebb-plugin-ns-api
I have made it to expose users with user id, also I have cleared user object, so it will be more suffice for external API/integrations.
-
Thanks Nicholas, but according to the comments above, there already exists an endpoint to get users
/api/user/uid/:uid
so I don't need to install any additional plugins (phew!). I'm in the process of writing a Python wrapper so although I only need users right now, I'm going to eventually need support for others.@baris, will do! I'll see if I can get it done tomorrow.