Model Rules over REST


(Yiiframework) #1

I’m developing an app that uses Yii2 for the backend and Vue.js for the frontend.

There are many form validators for Vue.js, but I’d like to avoid manually setting up validator rules for each and every field in the forms.

Has anybody implemented (or thought about) exposing the rules of Yii2 models through a REST API?