Resource icon

REST API Extension Kit 1.2

No permission to download

kolakube

Well-known member
Licensed customer
kolakube submitted a new resource:

REST API Extensions Kit - Adds additional endpoints and forum data to your website's REST API.

New Scopes:
  1. apikit_user_group:read - Makes the new user-groups endpoint accessible
  2. apikit_thread_prefix:read - Makes the new thread-prefixes endpoint accessible

New Endpoints:
  1. user-groups - List of XF Usergroups:
    PHP:
    Array(
        [0] => stdClass Object
            (...

Read more about this resource...
 
Last edited:
Wondering if this can be used to expose moderation endpoint. Oddly you can delete stuff but not put it in moderation?
 
Wondering if this can be used to expose moderation endpoint. Oddly you can delete stuff but not put it in moderation?
I don't think I've seen a moderation endpoint, care to expand?

This addon is actually very simple and mostly just takes lists of data from the XF finder and makes it readable over the API.
 
I think there's a slight problem when passing both primary group id and secondary group id's. The SQL query essentially comes to:
(user_group_id = X) AND (sec matches id1) OR (sec matches id2) OR .... So you get users who have primary and id1 OR id2 ? When it should be primary AND (id1 OR id2)?
 
Nice spot, is this preventing you from getting your expected results? I have not found an issue with the code as-is.
 
Not really currently, just something that might cause problems to somebody at some point
 
Back
Top Bottom