base = 'health'; $this->endpoint_callback = 'health_check'; $this->methods = WP_REST_Server::READABLE; $this->register_routes(); } /** * Get the merchant object from the API and return the status, and if exists, the disapproval rationale. * * @return array * * @throws \Exception PHP Exception. */ public function health_check() { return array( 'status' => 'approved', ); } }