routes.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?php
  2. //
  3. // Allow indentation with tab(s).
  4. //
  5. // http://www.doctrine-project.org/jira/browse/DCOM-255
  6. // https://github.com/zircote/swagger-php/issues/168
  7. // https://github.com/zircote/swagger-php/issues/203
  8. //
  9. // @codingStandardsIgnoreStart
  10. //
  11. /**
  12. *
  13. * @SWG\Put(
  14. * path="/users/{id}",
  15. * tags={"users"},
  16. * operationId="updateUser",
  17. * summary="Update user entry",
  18. * @SWG\Parameter(
  19. * name="id",
  20. * in="path",
  21. * required=true,
  22. * type="string",
  23. * description="UUID",
  24. * ),
  25. * @SWG\Parameter(
  26. * name="user",
  27. * in="body",
  28. * required=true,
  29. * @SWG\Schema(ref="#/definitions/User"),
  30. * ),
  31. * @SWG\Response(
  32. * response=200,
  33. * description="success",
  34. * ),
  35. * @SWG\Response(
  36. * response="default",
  37. * description="error",
  38. * @SWG\Schema(ref="#/definitions/Error"),
  39. * ),
  40. * )
  41. * @SWG\Options(
  42. * path="/users/{id}",
  43. * @SWG\Response(response=200,description="Some CORS stuff")
  44. * )
  45. */
  46. Route::put('/users/{user_id}', 'UserController@update');
  47. /**
  48. *
  49. * @SWG\Delete(
  50. * path="/users/{id}",
  51. * tags={"users"},
  52. * operationId="deleteUser",
  53. * summary="Remove user entry",
  54. * @SWG\Parameter(
  55. * name="id",
  56. * in="path",
  57. * required=true,
  58. * type="string",
  59. * description="UUID",
  60. * ),
  61. * @SWG\Response(
  62. * response=200,
  63. * description="success",
  64. * ),
  65. * @SWG\Response(
  66. * response="default",
  67. * description="error",
  68. * @SWG\Schema(ref="#/definitions/Error"),
  69. * ),
  70. * )
  71. *
  72. */
  73. Route::delete('/users/{user_id}', 'UserController@destroy');
  74. /**
  75. *@SWG\Head(path="/users/{id}",@SWG\Response(response=200,description="Only checking if it exists"))
  76. */
  77. Route::get('/users/{user_id}', 'UserController@show');
  78. /**
  79. * @SWG\Definition(definition="Error")
  80. * @SWG\Definition(definition="User")
  81. */
  82. //
  83. // @codingStandardsIgnoreEnd
  84. //