IntelliJ IDEA 2021.3 Help

RESTful web services

IntelliJ IDEA lets you develop, debug and test RESTful Web Services. The REpresentational State Transfer (REST) specification JSR-339 specification version 2.0 and Jersey reference implementation are supported.

Because RESTful Web services can be of various types, there is no definite workflow to develop them. In this section we will outline some specific tasks that can be performed when developing a REST application in IntelliJ IDEA.

Developing RESTful Web services

  1. Make sure that the RESTful Web Services plugin is enabled. Create a new project or module for the service development, or enable the RESTful Web Services development support for an existing module.

    For more information, see Getting started with REST development.

  2. Populate the RESTful Web service module with the necessary classes and methods.

  3. Configure the artifacts to deploy.

  4. Create a run configuration. On the Deployment tab, specify the artifacts to deploy.

  5. Deploy the Web service on an HTTP server and start the server.

  6. Run the application locally or on a remote host.

  7. Test the RESTful Web service using the built-in HTTP client.

Last modified: 01 August 2022