Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

raise fault if request is missing with the required fields and their values.

HI There,

I wan to trigger a custom fault in json, if email and username is missing in the request.could you pls provide a sample how to achieve this.

{ "username":"abcde" ,

"lastname":"xyz",

"email" : "afdsdf@gmail.com",

"terms": "yes" }

0 8 683
8 REPLIES 8