ProductController.php 981 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace UsingRefs;
  3. /**
  4. * @SWG\Path(
  5. * path="/products/{product_id}",
  6. * @SWG\Parameter(ref="#/parameters/product_id_in_path_required")
  7. * )
  8. */
  9. class ProductController {
  10. /**
  11. * @SWG\Get(
  12. * tags={"Products"},
  13. * path="/products/{product_id}",
  14. * @SWG\Response(response="default", ref="#/responses/product")
  15. * )
  16. */
  17. public function getProduct($id) {
  18. }
  19. /**
  20. * @SWG\Patch(
  21. * tags={"Products"},
  22. * path="/products/{product_id}",
  23. * @SWG\Parameter(ref="#/parameters/product_in_body"),
  24. * @SWG\Response(response="default", ref="#/responses/product")
  25. * )
  26. */
  27. public function updateProduct($id) {
  28. }
  29. /**
  30. * @SWG\Post(
  31. * tags={"Products"},
  32. * path="/products",
  33. * @SWG\Parameter(ref="#/parameters/product_in_body"),
  34. * @SWG\Response(response="default", ref="#/responses/product")
  35. * )
  36. */
  37. public function addProduct($id) {
  38. }
  39. }