Hello. I want to generate an api for retrieve news. My plugin' model has title(string), text(string), is_active(int), publish_date(datetime)
On apigenerator I'm setting {"fillable":"title,text,publish_date"} I would like to retrive only active=1 and publish_date<=today, but I'm getting all data. Is there an way I could filter this result?
I made the plugin So If it is not possible to do it by api generator I could do it on my code but please tell me where do I have to change.
Thank you.