XF 2.2 API endpoint to fetch all prefix_id's

Forumly

Member
Licensed customer
We use the multi-prefix add-on for our forum in order to allow posts with multi-prefixes.
That add-on adds this JSON to the return when requesting a specific thread:

Code:
"sv_prefix_ids" : [
      14,
      155
    ],
Ideally, we would be able to fetch all the prefix_ids that we have setup so that we can map those prefix_ids to their respective titles and don't have to hardcode that into the mobile app that we are building with the API. The challenge with hardcoding is that we do not want to have to update the mobile app every time we make a change to the prefixes.

Is there a way to do this?
 
@markymark you're going to have to make a plugin to do this unless the multi-prefix plugin adds this feature. You can then add that endpoint.
 
the multi-prefix addon doesn't have an endpoint for this (or anything last I checked) so you need to make an additional addon to extend it with an additional endpoint.

 
Back
Top Bottom