Use javax.ws.rs.GET annotation avoiding default use of it.