|
|
|
|
|
by rrgok
744 days ago
|
|
Looks interesting. One suggestion, don't make data validation and authnz an after thought. Something I'm missing from all these automatic API generation frameworks from schema is having different complex data validation rules for creating, updating and eventually deleting. It is nice to put simple data type constraints on fields, but is infinitely more useful to have a DSL that can express complex logic: field X cannot be Z when field Y and W have value V and U respectively. Or when mass inserting/updating validating that the aggregate of input field Z is greater than X or the aggregate is not already in DB. Same thing for relationship. Laravel validation rules is the closest that comes to this kind of input validation, but Laravel doesn't provide automatic API generation. |
|