Add sanitizing on viewset of API.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>