Info.php 712 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace Elasticsearch\Endpoints\Remote;
  3. use Elasticsearch\Endpoints\AbstractEndpoint;
  4. /**
  5. * Class Info
  6. *
  7. * @category Elasticsearch
  8. * @package Elasticsearch\Endpoints\Cluster\Nodes
  9. * @author Zachary Tong <zach@elastic.co>
  10. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
  11. * @link http://elastic.co
  12. */
  13. class Info extends AbstractEndpoint
  14. {
  15. /**
  16. * @return string
  17. */
  18. public function getURI()
  19. {
  20. return "/_remote/info";
  21. }
  22. /**
  23. * @return string[]
  24. */
  25. public function getParamWhitelist()
  26. {
  27. return array();
  28. }
  29. /**
  30. * @return string
  31. */
  32. public function getMethod()
  33. {
  34. return 'GET';
  35. }
  36. }