I have a mySite.com/api/v1/listUsers.json.php
page that will return a list of users to be consumed in an app. However I would like to take advantage of this same page and create the following condition for development personnel: if a variable is sent AND the value of this variable is equal to "arr" the response will be an array. Only for developers to quickly see the values in the user table.
Exemplo: mySite.com/api/v1/listUsers.json.php?type=arr
.
For some reason it is not working. I'm trying to debug with xdebug but I'm not sure how to pass the type = arr parameter to be debugged.
I'm using xdebug in Netbeans.
How do I do this?