-
Notifications
You must be signed in to change notification settings - Fork 143
Expand file tree
/
Copy pathdeprecated.php
More file actions
43 lines (39 loc) · 1.22 KB
/
deprecated.php
File metadata and controls
43 lines (39 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* Deprecated functions and constants.
*
* @package optimization-detective
*
* @since 1.0.0
*
* @noinspection PhpUnused
*/
declare( strict_types = 1 );
// @codeCoverageIgnoreStart
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Namespace for optimization-detective.
*
* @since 0.1.0
* @access private
* @deprecated n.e.x.t This constant should not be used, instead use OD_REST_URL_Metrics_Store_Endpoint::ROUTE_NAMESPACE method.
* @var string
*/
const OD_REST_API_NAMESPACE = 'optimization-detective/v1';
/**
* Route for storing a URL Metric.
*
* Note the `:store` art of the endpoint follows Google's guidance in AIP-136 for the use of the POST method in a way
* that does not strictly follow the standard usage. Namely, submitting a POST request to this endpoint will either
* create a new `od_url_metrics` post, or it will update an existing post if one already exists for the provided slug.
*
* @since 0.1.0
* @access private
* @link https://google.aip.dev/136
* @deprecated n.e.x.t This constant should not be used, instead use OD_REST_URL_Metrics_Store_Endpoint::ROUTE_BASE method.
* @var string
*/
const OD_URL_METRICS_ROUTE = '/url-metrics:store';
// @codeCoverageIgnoreEnd