1: | <?php |
2: | |
3: | /** |
4: | * SPDX-License-Identifier: Apache-2.0 |
5: | * |
6: | * The OpenSearch Contributors require contributions made to |
7: | * this file be licensed under the Apache-2.0 license or a |
8: | * compatible open source license. |
9: | * |
10: | * Modifications Copyright OpenSearch Contributors. See |
11: | * GitHub history for details. |
12: | */ |
13: | |
14: | namespace OpenSearch\Endpoints\Sql; |
15: | |
16: | use OpenSearch\Endpoints\AbstractEndpoint; |
17: | |
18: | class CursorClose extends AbstractEndpoint |
19: | { |
20: | public function getParamWhitelist(): array |
21: | { |
22: | return []; |
23: | } |
24: | |
25: | public function getURI(): string |
26: | { |
27: | return '/_plugins/_sql/close'; |
28: | } |
29: | |
30: | public function getMethod(): string |
31: | { |
32: | return 'POST'; |
33: | } |
34: | } |
35: |