[jboss-jira] [JBoss JIRA] (WFLY-7024) read-resource operation of jaxrs subsystem must provide more information about end-point

Lin Gao (JIRA) issues at jboss.org
Tue Nov 1 04:19:00 EDT 2016


     [ https://issues.jboss.org/browse/WFLY-7024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lin Gao updated WFLY-7024:
--------------------------
    Description: 
show-resources operation of jaxrs subsystem must provide more informations about end-point. Information about parameters and returned value should be provided.

Example:
{code:java}
    @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;
    }
{code}
Actual return value of {{/deployment=jaxrs-eap.war/subsystem=jaxrs:show-resources}}:
{noformat}
        {
            "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(...)"]
        },
{noformat}
There should be information about "boolean v" parameter and about returned type (Person).
---

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

-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)-


*NOTE*: after discussion, the show-resources() operation is deprecated, the output should be integrated into read-resource() operation in a child resource


  was:
show-resources operation of jaxrs subsystem must provide more informations about end-point. Information about parameters and returned value should be provided.

Example:
{code:java}
    @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;
    }
{code}
Actual return value of {{/deployment=jaxrs-eap.war/subsystem=jaxrs:show-resources}}:
{noformat}
        {
            "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(...)"]
        },
{noformat}
There should be information about "boolean v" parameter and about returned type (Person).
---

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

-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)-




> read-resource operation of jaxrs subsystem must provide more information about end-point
> ----------------------------------------------------------------------------------------
>
>                 Key: WFLY-7024
>                 URL: https://issues.jboss.org/browse/WFLY-7024
>             Project: WildFly
>          Issue Type: Feature Request
>          Components: REST
>            Reporter: Lin Gao
>            Assignee: Lin Gao
>            Priority: Critical
>   Original Estimate: 2 days
>  Remaining Estimate: 2 days
>
> show-resources operation of jaxrs subsystem must provide more informations about end-point. Information about parameters and returned value should be provided.
> Example:
> {code:java}
>     @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;
>     }
> {code}
> Actual return value of {{/deployment=jaxrs-eap.war/subsystem=jaxrs:show-resources}}:
> {noformat}
>         {
>             "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(...)"]
>         },
> {noformat}
> There should be information about "boolean v" parameter and about returned type (Person).
> ---
> -jax-rs subsystem should be able to collect some statistics about invocation of end-points (count of invocations, execution time, etc.)-
> -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)-
> *NOTE*: after discussion, the show-resources() operation is deprecated, the output should be integrated into read-resource() operation in a child resource



--
This message was sent by Atlassian JIRA
(v7.2.2#72004)


More information about the jboss-jira mailing list