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 ...

Get Learning Single-page Web Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.