1: <?php
2:
3: declare(strict_types=1);
4:
5: /**
6: * Copyright OpenSearch Contributors
7: * SPDX-License-Identifier: Apache-2.0
8: *
9: * The OpenSearch Contributors require contributions made to
10: * this file be licensed under the Apache-2.0 license or a
11: * compatible open source license.
12: */
13:
14: namespace OpenSearch\Endpoints\Ml;
15:
16: use OpenSearch\Endpoints\AbstractEndpoint;
17:
18: class GetConnectors extends AbstractEndpoint
19: {
20: /**
21: * @return string[]
22: */
23: public function getParamWhitelist(): array
24: {
25: return [];
26: }
27:
28: /**
29: * @return string
30: */
31: public function getURI(): string
32: {
33: return '/_plugins/_ml/connectors/_search';
34: }
35:
36: /**
37: * @return string
38: */
39: public function getMethod(): string
40: {
41: return 'POST';
42: }
43: }
44: