Using a Simple HTTP Client

Test an API without leaving your editor by writing requests in a .http file and running them from IntelliJ or VS Code.

Journeyman · Spring Boot · REST API · Updated

IntelliJ includes a simple HTTP Client tool for quickly testing APIs. Plugins such as REST Client are also available in the VS Code marketplace.

These text-based HTTP Clients do not have all the features of Insomnia, but they allow you to inspect an API call quickly without leaving your development environment.

To test an API, simply add a new file to your project directory and give it a .http extension.

A categories.http file added at the root of the Spring Boot project, next to pom.xml

Each file can contain multiple requests that can each be run individually, or all can be run at once.

A .http file with three requests, GET all categories, GET category 11 and POST a new category, each with its own run button and one button to run them all