With eXo IDE, you cannot only write and deploy services, but launch these services and view service response in the Output tab. You can view WADL-description of methods, make requests with your ownheader, query, path parameters and body content using one of the supported methods. To do that, simply click on the toolbar,
Or, go to
→ from the top menu as follows:Select the deployed REST Service.
Click on the toolbar to get the REST Service form which is relied on the WADL-description of REST Service.
Select and type the path to the service in the Path field. Path parameters are enclosed in curly braces.
Select one of the supported methods from the Method combo-box.
Select the appropriate Request Media Type.
Check the Response Media Type.
Uncheck the redundant query parameters and set values of the rest in the table at the bottom of the dialog window.
Go to the Header Parameters middle tab and set appropriate values.
Set request with the body content within the Body tab. This tab is disabled for the GET request.
Click
.You will receive a success message if the path is verified to be correct or an error message in the Output tab.
To learn about launching REST Service, see the REST Service operations illustration above.
The following table shows annotations of reproducing service in the Launch REST Service form:
REST Service Annotation | Element of Launch REST Service form |
---|---|
@Path | The Path field |
@GET, @POST,... | The Method field. |
@Consumes | The Request Media Type field. |
@Produces | The Response Media Type field. |
@PathParam | The path parameters figured in curly braces, for example, /service/{ param}/{paramList: .+}. |
@HeaderParam | The Header Parameter tab of the bottom table. |
@QueryParam | The Query Parameter tab of the bottom table. |
@DefaultValue | The By default column of the bottom table. |