methods['ping_get']['limit'] = 500; // 500 requests per hour per user/key } /** * Responds to ping attempts of applications * @return string JSON which acknowledges the ping attempt * @example http://wsp.fortyseeds.at/backend/api/ping */ public function index_get() { $payload = [ 'success' => true, 'message' => 'ping received' ]; // Set the response and exit $this->response($payload, REST_Controller::HTTP_OK); } }