Testing the REST Service in Application Monitor
In TIBCO ActiveMatrix Service Grid, you can generate the swagger from (REST Binding Type) endpoint exposed in an application. Similarly, in ActiveMatrix Service Grid - Container Edition, you can view the Swagger response of the exposed REST endpoint. By using this feature, you can validate the response generation of the REST request by using Swagger UI.
Before you begin
- You must have Swagger UI hosted externally.
- You must provide the link to the Swagger UI hosted externally by using the environment variable
amxce_swaggeruiin the fileamsgce-runtime-<version>\samples\kubernetes\Application_Monitor\tea-agent.yaml. -
To disable default Swagger UI validator, set
VALIDATOR_URLto none in thetea-agent.yamlfile.
- Procedure
- In the Application Monitor UI, click Applications. A list of all the applications is displayed.
- Select the com.tibco.restbt.sample.bookstore application.
-
Click the Endpoints tab.
- Click the Swagger UI icon
next to REST Service Binding.
Swagger UI is generated for the selected REST Binding.
You can also access Swagger UI from the Service Discovery page.