We have a Spring REST environment which is producing json response. Below is the code which is used to send the json response
@GET
@Path("/userinfo.json/{userid}")
@Produces("application/json")
public List<UserinfoBean> getUserAllInformation(@PathParam("userid") String userid)
{
return openServicesAPI.getUserAllInformation(userid);
}
Can anyone let me know how I can set the request/response attribute and if at all possible create an HTTPsession here.