Skip to content

Updated RestAPI to allow setting of default fields for api requests

Craig Smith requested to merge feature/rest_default_fields into master

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.

Merge request reports