Debugging API

General discussion on Zend Studio

Moderator: natalia_b_zend

Debugging API

Postby mike6552 on Wed Feb 22, 2017 4:22 pm

I cannot for the life of me figure out how to debug an API. The debugger is working. I can debug a specific file, such as index.php or debug.php. But that doesn't do me any good debugging an API.

Specify A Path
When I use a path, such as http://localhost/users (users being a collection passed to a controller) it tries to download a file.

Include Auth Headers
No way to include authorization headers that I can find. This isn't a total deal breaker. I can always remove the auth requirement on the local machine and then add them back in on the remote one. Not an optimal solution, but at this point...

Other HTTP Methods
I can't figure out how to send methods other than GET. No PATCH, PUT, OPTIONS, etc

I am starting to feel really stupid, lol. Thanks.
mike6552
 
Posts: 1
Joined: Wed Feb 22, 2017 4:12 pm

Return to Zend Studio

Who is online

Users browsing this forum: Google [Bot] and 3 guests