Test RESTful Web services
There are two main use cases when you need to compose and run requests to a RESTful Web service:
When you have developed and deployed a RESTful Web service and want to make sure it works as expected, is accessible in compliance with the specification, and responds correctly.
When you are developing an application that addresses a RESTful Web service. In this case it is helpful to investigate the access to the service and the required input data before you start the development. During the development, you may also call the Web service from outside your application. This may help locate errors when your application results in unexpected output while no logical errors are detected in your code and you suspect that the bottleneck is the interaction with the Web service.
Testing a RESTful Web service includes the following checks:
That URL addresses are constituted correctly based on the service deployment end-point and the method annotations.
That the generated server requests call the corresponding methods.
That the methods return acceptable data.
IntelliJ IDEA enables you to run these checks directly from the IntelliJ IDEA code editor.