Testing the speakers' API routes
As we saw in the previous chapters, to include data on the API, we use Postman. Now, we will see another way to accomplish RESTful tests and how to insert data without being logged in.
This time, we will use the WebStorm IDE to test the RESTful API.
To trigger the RESTful tests panel, click on Tools and then on Test RESTful Web Service; this will activate the test panel.
With the panel enabled, let's insert some data, an HTTP method, a host, and a path, which in our case is /speakers.
First, we test the POST method. For this, we must fill some information in the Request Parameters pane, as shown in the following screenshot:
Note that the necessary credentials for this operation are on the Cookies tab, as shown in the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access