网址的类型为:http://localhost:8080/mdnd_myshelfService_V1.0/myshelf/authenticateUserAndGetHospitalDetails?username=85010352:password=asddddsad2342#$
在控制器类中,将使用以下方法对用户名进行身份验证和获取医院数据。
@GET
@Path("/authenticateUserAndGetHospitalDetails")
//@path is not complete should be something like /authenticateUserAndGetHospitalDetails?{username}:{password}
@Produces(MediaType.APPLICATION_JSON)
public Hospital getAllHospitalData(@PathParam("userId") String userId) {
log.error("in getAllHospitalData.. " + userId + " | " );
//need to get parameter values of username and password from url
}