I need to send a value like app/role
as parameter through rest webservice url from angularjs
In controller.js
var roleName = 'app/role';
checkRole.check({'roleName': roleName}, function(data){}
In model.js
popModel.factory('checkRole', function ($resource) {
return $resource('./rest/checkRole/:roleName',{roleName:'@roleName'},{
check: {'method':'GET'},
});
});
The rest webservice call in java
@GET
@Path("/checkRole/{roleName}")
@Produces(MediaType.APPLICATION_JSON)
public Response checkRole(@Context HttpServletRequest request, @PathParam("roleName") String roleName);
When i pass it i am getting browser console error as
Bad request response from the server.
For normal parameter values like 'Test', 'Solution', 'Application' etc
. If i use with /
as a parameter no process is done and i am getting error.