Writing a web app that can be used as an application as well as service to return a employee detail object. Method takes 2 objects as input and one boolean variable. I want below method to be used in the app and the same method to serve as restful service.
Is this correct approach or do I need to do anything else? Also I need to know how I can test with the browser or any client? When I am trying to access it to with the below url it gives me 404 -not found error.
http://localhost:7001/jersey/detail/result
@GET
@Path("/result")
@Produces( { "text/xml"})
public EmployeeDetail getResult(@Context Employee employee, @Context User user, @Context boolean isSSNRequired) throws Exception {
return employeeDetail;
}