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
 
I encountered an interesting result with the extension. I am monitoring for a few days and grabbing the values hourly for a specific user group via the new endpoint that gets granted and revoked automatically from users depending on different interactions. The API count is currently 300 less than in the XenForo AP when i search for users. The XF AP count is 20.000 and the API count is 19700.

Edit: I figured that the difference is because the API returns only perfectly Valid users, which makes sense overall. It would be great to widen that filter to monitor the different user states as well, as this is seemingly lacking fromt he official API (as so much more other user criteria)

1773736502985.webp
 
Last edited:
Back
Top Bottom