added success & failture example for validator api document