Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-7132

[DOC RFE] read-resource operation of jaxrs subsystem must provide more informations about end-point

XMLWordPrintable

      read-resource operation of jaxrs subsystem must provide more informations about end-point. Information about parameters and returned value should be provided.

      Example:

          @GET
          @Path("entity/get")
          @Produces(MediaType.APPLICATION_JSON)
          public Person post3(@QueryParam("boolean") @DefaultValue("false") boolean v) {
              Person per = new Person();
              per.setName("per");
              per.setFamily("son");
              return per;
          }
      

      Actual return value of /deployment=jaxrs-eap.war/subsystem=jaxrs:show-resources:

              {
                  "resource-class" => "org.resteasy.simple.deployment.AdvancedService",
                  "resource-path" => "/sample/entity/get",
                  "resource-methods" => ["GET /jaxrs-eap/a/sample/entity/get - org.resteasy.simple.deployment.AdvancedService.post3(...)"]
              },
      

      There should be information about "boolean v" parameter and about returned type (Person).

      Show-resources operation needs to be mark as deprecated.

      jax-rs subsystem should be able to collect some statistics about invocation of end-points (count of invocations, execution time, etc.)

      There needs to be option to enable or disable collecting of these statistics, because collecting of statistics does probably some performance drop.

      Some statistics could be be activated and printed, only if end-point is also EJB bean, example:

      /subsystem=ejb3:write-attribute(name=enable-statistics,value=true)
      /deployment=cdiexp-1.0-SNAPSHOT.jar/subsystem=ejb3/stateless-session-bean=Servicer:read-resource(include-runtime=true)

      Move statistics part to EAP7-606

              rhn-engineering-nchaudha Nidhi Chaudhary
              rhn-engineering-jpallich Jiri Pallich
              Marek Kopecky Marek Kopecky
              Marek Kopecky Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: