Updated Built-in REST Client in PhpStorm 7

Building a REST API? Need to test a call to a web application? Look no further! Earlier this year we bundled a REST client plugin with which we can test HTTP-based APIs right from within our IDE. Since then we’ve added a number of features to it—features that you have requested through our issue tracker. Let’s explore these new features!

This functionality is available in IntelliJ IDEA, PyCharm, WebStorm, PhpStorm, RubyMine and AppCode.

This functionality is available in IntelliJ IDEA, PyCharm, WebStorm, PhpStorm, RubyMine and AppCode.

The REST Client can be found under Tools | Test RESTful Web Service. A new tab will be opened which gives us the possibility to craft an HTTP request that can call a web application or an API running on a local machine, intranet or Internet server.

Generate Authorization Header

Many APIs require us to provide credentials. We can manually add an Authorization header to the request, or have PhpStorm generate a header based on the username/password entered. No more need to do that base64 encoding manually:

Generate Authorization Header

Importing and Exporting Requests

Every HTTP request that is crafted through the REST Client can be exported and imported again later on. This allows us to create a series of HTTP requests that can be used during development, whenever needed. Create it once, export and reuse. We can also add these exports to VCS so team members can benefit from them:

Importing and Exporting Requests

An exported HTTP request is stored in an XML file which roughly looks like the following. When building an API yourself, why not generate a bunch of sample HTTP requests and distribute them together with your project? That would mean customers and users of our API can run some sample requests from within their IDE:

An exported HTTP request is stored in an XML file

Recent Requests

When an HTTP request has been executed, the REST Client will keep it available from the Recent Requests list, available from the toolbar. From here, we can replay HTTP requests that have been issued in the past, making it easier to work with a series of HTTP requests and switch between them:

Recent Requests

In addition to these new features, we’ve added a number of other improvements. For example, there’s now support for compressed responses and Chinese character sets. Want more? Let us hear your feature requests through the issue tracker, the comments below or in our forums!

Develop with pleasure!
– JetBrains PhpStorm Team

This entry was posted in Cool Feature and tagged , , , . Bookmark the permalink.

8 Responses to Updated Built-in REST Client in PhpStorm 7

  1. Elijah Lynn says:

    Really like this feature! Didn’t even realize you could export them to code, good tip!

  2. Henning Groß says:

    There is already a pretty nice and open description for rest apis. Its called swagger. You should have used that format instead of proprietary XML. Users could auto-generate from code and also use swagger-ui to Display to non-devs…

  3. Dirk Helbert says:


    a good Tool for testing restful api’s. But is there a possibility to auth with digest instead of basic?


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">