add dataset function in restful