In java RESTfull service can I define two methods in same path differentiate by http calling method.
EG : first method using GET and Second one using POST
@GET
@Produces("application/pdf")
public Response getFile(@Context HttpServletRequest req,@PathParam("search") final String search,Map<Object, Object> input) {
....}
@Post
@Produces("application/pdf")
public Response getFile(@Context HttpServletRequest req,@PathParam("search") final String search) {
....}