I want to add my custom validation code in tool generated APIs. Can you please provide the steps to achieve the same.
Example : I want to validate email property of my model. If email already exists, I should not create a new record and display a message saying “Email already exists”.
While you can perform validation in the OnXXXCreated partial method there currently isn’t a way to return a result to the end user. We however have a task to add support for that. It will probably be done next week.