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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.6, 3.1.2
    • JAX-RS
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: