Sergey Beryozkin created CXF-6499:
-------------------------------------

             Summary: WADL Generator should optionally ignore path params for 
the same path method evaluation
                 Key: CXF-6499
                 URL: https://issues.apache.org/jira/browse/CXF-6499
             Project: CXF
          Issue Type: Improvement
          Components: JAX-RS
            Reporter: Sergey Beryozkin
            Assignee: Sergey Beryozkin
            Priority: Minor
             Fix For: 3.0.6, 3.1.2


Given 
{code:java}
@GET
@Path("{a}")
public Response get(@PathParam("a") String a) {}

and

@PUT
@Path("{a}")
public Response put(SomeContent content) {}

{code}

where both PUT and GET share the same path but PUT has no PathParam in the 
signature, WADL will have two resources, one per GET and one per PUT, with the 
PUT one having no template parameter.
It may be preferred that in the above case both methods share the same root 
resource - but note that in this case a reverse generation would produce a PUT 
method with a PathParam.





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to