i would like to know what’s your opinion on how to do validation on the REST API layer.
Let’s imagine i’ve a Class customer that has a telephone number which should be a valid telephone number. In the UI layer i’d create a Class that
, but how do i do this in case of the generic API usage?
I could imagine something like using an Entity Listener or use the feature to call services via the API and not use the Entity API layer at all. Interesting for me would be to see what’s your take on that to get a maximal code reuse?