AllSoapAndRestInterface.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\TestModule5\Service\V2;
  7. /**
  8. * Both SOAP and REST Version TWO
  9. * @package Magento\TestModule5\Service\V2
  10. */
  11. interface AllSoapAndRestInterface
  12. {
  13. /**
  14. * Retrieve existing item.
  15. *
  16. * @param int $id
  17. * @return \Magento\TestModule5\Service\V2\Entity\AllSoapAndRest
  18. * @throws \Magento\Framework\Webapi\Exception
  19. */
  20. public function item($id);
  21. /**
  22. * Retrieve a list of all existing items.
  23. *
  24. * @return \Magento\TestModule5\Service\V2\Entity\AllSoapAndRest[]
  25. */
  26. public function items();
  27. /**
  28. * Add new item.
  29. *
  30. * @param \Magento\TestModule5\Service\V2\Entity\AllSoapAndRest $item
  31. * @return \Magento\TestModule5\Service\V2\Entity\AllSoapAndRest
  32. */
  33. public function create(\Magento\TestModule5\Service\V2\Entity\AllSoapAndRest $item);
  34. /**
  35. * Update one item.
  36. *
  37. * @param \Magento\TestModule5\Service\V2\Entity\AllSoapAndRest $item
  38. * @return \Magento\TestModule5\Service\V2\Entity\AllSoapAndRest
  39. */
  40. public function update(\Magento\TestModule5\Service\V2\Entity\AllSoapAndRest $item);
  41. /**
  42. * Delete existing item.
  43. *
  44. * @param string $id
  45. * @return \Magento\TestModule5\Service\V2\Entity\AllSoapAndRest
  46. */
  47. public function delete($id);
  48. }