user1032531
user1032531

Reputation: 26281

How to troubleshoot Slim REST API by simulating HTTP

I am new to http://www.slimframework.com/, but it is easy and I have the basics working. Now I wish to go through some of my script which is initiated by slimframework using an IDE (PhpED).

I suppose I could just set the URL as needed for a GET request, and make a HTML form and submit it for POST requests.

I expect there has to be a better way. How can I specify the method, url, and body so that I can troubleshoot the script?

Upvotes: 0

Views: 55

Answers (1)

Yolo
Yolo

Reputation: 1579

You can look into a handy tool called Postman.

Once downloaded and open, you can specify URL, body, method and much more, send the request and look at the response. Parsed or unparsed. It lets you add collections so you can actually rebuild your entire API calls.

Upvotes: 1

Related Questions