| 1 |
<?php |
| 2 |
|
| 3 |
/* |
| 4 |
* This file is part of the WindPress package. |
| 5 |
* |
| 6 |
* (c) Joshua Gugun Siagian <suabahasa@gmail.com> |
| 7 |
* |
| 8 |
* For the full copyright and license information, please view the LICENSE |
| 9 |
* file that was distributed with this source code. |
| 10 |
*/ |
| 11 |
declare (strict_types=1); |
| 12 |
namespace WindPress\WindPress\Api; |
| 13 |
|
| 14 |
interface ApiInterface |
| 15 |
{ |
| 16 |
/** |
| 17 |
* Get the API endpoint prefix. |
| 18 |
*/ |
| 19 |
public function get_prefix(): string; |
| 20 |
/** |
| 21 |
* Register custom REST API endpoints as described in the [WordPress REST API Handbook](https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/). |
| 22 |
* |
| 23 |
* @see https://developer.wordpress.org/reference/functions/register_rest_route/ |
| 24 |
*/ |
| 25 |
public function register_custom_endpoints(): void; |
| 26 |
} |
| 27 |
|