# elementor/4.3.0-beta3/modules/system-info/rest/rest-api.php

Elementor Website Builder – more than just a page builder, version 4.3.0-beta3. 32 lines.

- Page: https://pluginprobe.com/plugins/elementor/4.3.0-beta3/code/modules/system-info/rest/rest-api.php
- Raw: https://pluginprobe.com/plugins/elementor/4.3.0-beta3/raw/modules/system-info/rest/rest-api.php
- Modified: 2026-09-01T11:47:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elementor/4.3.0-beta3/code/modules/system-info/rest/rest-api.php#L10-L20`.

```php
<?php
namespace Elementor\Modules\System_Info\Rest;

use Elementor\Core\Utils\Api\Response_Builder;
use Elementor\Plugin;
use WP_REST_Server;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Rest_Api {
	const API_NAMESPACE = 'elementor/v1';
	const API_BASE = 'system-info';

	public function register_routes(): void {
		register_rest_route( self::API_NAMESPACE, '/' . self::API_BASE, [
			'methods' => WP_REST_Server::READABLE,
			'callback' => [ $this, 'get_system_info' ],
			'permission_callback' => [ $this, 'check_permission' ],
		] );
	}

	public function check_permission(): bool {
		return current_user_can( 'manage_options' );
	}

	public function get_system_info() {
		return Response_Builder::make( Plugin::$instance->system_info->get_reports_data() )->build();
	}
}

```
