Closed aubi closed 1 year ago
Huh, I hadn't noticed this and I'm not sure if it's valid - would need to check the Jakarta RESTful WS spec for that - but it at least seems unnecessary to test something so confusing here.
Before changing it or removing one of the methods, we'd have to go through and check if any tests are expecting these entries to be present and update or remove those tests.
In UserResource, two methods have the same path (e.g. refusing to deploy):
and
The only difference is, that
getUserById
defines the parameter asint
, while the first asString
.Is the path parameter type enough to distinguish the methods? So if the parameter is convertible to int, use
getUserById
; usegetUserByName
otherwise? To me it seems wrong, becausegetUserByName
will never work for username made from digits.