1 Reply Latest reply on Sep 4, 2016 9:17 AM by jaikiran

    @Path regex not working as expected

    jlanza

      Hi all,

       

      I have the following code running in my webservice on localhost with Wildfly 10 and resteasy 3.0.19

       

      @Path("{name: resources|observations}")

      @GET

      public String findUserByName(@PathParam("name") String userName) {

        return "RESOURCE";

      }


      @Path("{name: .*}")

      @GET

      public String findUserByNameIdMix(@PathParam("name") String userName) {

        return "OTHERS";

      }

       

      When calling http://localhost:8080/resources, I get "OTHERS". The same code in Jersey is working ok. Could you please help me on that?