Updated RestAPI to allow setting of default fields for api requests
You can now set an api endpoints default fields in the rest controller
How to test
- using an api endpoint add for example
protected $default_fields = array(
'index_get' => 'id,name'
);
- hit the api endpoint and confirm those are the only fields returned
- remove and confirm all fields are returned.