AllSoapAndRestInterface.php 1.6 KB

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