How to contribute to rest API


(Rabba Zabba) #1

Hello, I have upgraded to FreePBX 15.0.16.73 and I’m experimenting with the API feature.

I would like to develop a rest function to put members to queues. Under

/var/www/html/admin/modules/queues/Api/Rest/Queue.php

I found several get functions that worked. Can anyone tell me how/where I can contribute to developing further rest functions on the queues module please? Thank you!


(Lorne Gaetz) #2

Current development efforts on the API module are focused on GraphQL. There are no GraphQL features yet in the Queues module, but you can see a coding example by looking in the Do Not Disturb module:

/var/www/html/admin/modules/donotdisturb/Api/Gql

(Rabba Zabba) #3

Thank you Lorne :slight_smile: if I make changes in

/var/www/html/admin/modules/queues/Api/Rest/Queues.php

for example, will freePBX overwrite the file at some point?


(Lorne Gaetz) #4

Yes, that file will be overwritten whenever you update the Queues module.