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_swaggerui in the file amsgce-runtime-<version>\samples\kubernetes\Application_Monitor\tea-agent.yaml.
  • To disable default Swagger UI validator, set VALIDATOR_URL to none in the tea-agent.yaml file.

    Procedure
  1. In the Application Monitor UI, click Applications. A list of all the applications is displayed.
  2. Select the com.tibco.restbt.sample.bookstore application.
  3. Click the Endpoints tab.

  4. 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.