Ambiguous rest entrypoint | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Ambiguous rest entrypoint

Is it possible to specify 2 entrypoints with the same path at all when the function signature is different? Eg @Path("/mydata") @GET public MyResource getMyResource(){....} @Path("/mydata") @GET public MyResource getMyResource( @QueryParam("id") long id){....}

29th Sep 2020, 3:12 PM
ifl
ifl - avatar
1 Answer
+ 1
I know it could be done differently, what i am asking here is whether it would work, and more importantly, why or why not...
29th Sep 2020, 3:13 PM
ifl
ifl - avatar