Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6499

WADL Generator should optionally ignore path params for the same path method evaluation

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.6, 3.1.2
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Given

      @GET
      @Path("{a}")
      public Response get(@PathParam("a") String a) {}
      
      and
      
      @PUT
      @Path("{a}")
      public Response put(SomeContent content) {}
      
      

      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.

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              sergey_beryozkin Sergey Beryozkin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: