XF 2.2 API endpoint to fetch all prefix_id's

bob2bob

Member
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?
 
Top Bottom