RestController
class RestController
You'll extend you REST API Controller from this class.
Properties
protected string | $vendor | The vendor name and path | |
protected WP_REST_Request | $request | WP_REST_Request object |
Methods
__construct($request, $vendor)
No description
response($data, $status = 200)
Commodity method for the response.
responseError($code, $message, $status = 400)
Commodity method for an error response.
Details
at line 30
__construct($request, $vendor)
at line 39
response($data, $status = 200)
Commodity method for the response.
at line 47
responseError($code, $message, $status = 400)
Commodity method for an error response.