code: @GET
  	@Produces(MediaType.APPLICATION_JSON)
  	@Path("/shared")
  	@Description("Returns all shared dashboards.")
  	public List<DashboardDto> getSharedDashboards(@Context HttpServletRequest req,
  									@QueryParam("ownername") String ownerName,
  									@QueryParam("limit")  Integer limit,
                                      @QueryParam("version") String version){
  		PrincipalUser owner = null;
  		if(ownerName != null){
  			owner = userService.findUserByUsername(ownerName);
  			if(owner == null){
  				throw new WebApplicationException("Owner not found", Response.Status.NOT_FOUND);
  			}
  		}
  		List<Dashboard> result = getSharedDashboardsObj(false, owner, limit,version);
  		return DashboardDto.transformToDto(result);
  	}
docs: Returns all shared dashboards with filtering.
  
  @param   req            The HTTP request.
  @param   ownerName      The owner of shared dashboards to filter on. It is optional.
  @param   limit          The maximum number of results to return. It is optional.
  @param   version        The version of the dashboard to return. It is either null or not empty.
  
  @return  The list of all shared dashboards. Will never be null but may be empty.