First version of getlegend service doc