Rest API filters – invalid parameters
-
In the
RestController
classresponse
method is declared as:protected function response($success, $data, $route, $code = 200)
but whenever it is invoked, the last 2 arguments are swapped in order – example of invalid usage:return $this->response(true, $licenseData, 200, 'v2/licenses/activate/{license_key}');
Thus, it is not possible to properly use thelmfwc_rest_api_pre_response
hook.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Rest API filters – invalid parameters’ is closed to new replies.