qc.txt 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. Ownersip
  2. - user yang membuat project otomatis menjadi owner dari project tsb -> spring
  3. - owner tidak dapat diubah -> put tidak merubah owner
  4. - rights owner:
  5. - owner dapat mengubah nama, deskripsi project -> /projects/id put
  6. - owner dapat menghapus project -> /projects/id delete
  7. - owner dapat menambah, mengubah dan menhapus platform project -> /platforms/id post, put, delete
  8. - owner dapat menambahkan dan menghapus member project -> /projects/member post, /projects/id/member delete
  9. Membership:
  10. - Member memiliki 3 macam role : 0:QC, 1: Programmer, 2:Admin
  11. - Tiap user bisa memiliki lebih dari 1 role dalam satu project. (contoh: user Joko bisa di daftarkan sebagai QC dan Admin)
  12. - Tiap Role mempunyai rights berbeda
  13. Rights Admin:
  14. - Admin dapat mengubah nama, deskripsi project -> /projects/id put
  15. - Admin dapat menambah, mengubah dan menhapus platform project -> /platforms/id post, put, delete
  16. - Admin dapat menambahkan dan menghapus member project -> /projects/member post, /projects/id/member delete
  17. - Admin tidak dapat menghapus member dengan role Admin ->
  18. Rights lain menyusul setelah ada table bug.
  19. insert into `user`(`user_id`,`name`,`password`,`username`) values
  20. (1,'test user','$2a$10$Y8LgDPJiAsbw7n5pURhGVOmi5.LWpfJaX7ZgSDbjsQXEnsCFPdhB2','user'),
  21. /projects
  22. get 200 ok
  23. 401 ok
  24. post 201 ok
  25. 400 ok
  26. 401 ok
  27. 409 ok
  28. 413 ok
  29. /projects/id
  30. get 200 ok
  31. 401 ok
  32. 404 ok
  33. put 200 ok
  34. 400 ok
  35. 401 ok
  36. 403 ok
  37. 409 ok
  38. 413 ok
  39. delete 200 ok
  40. 205 ok
  41. 401 ok
  42. 403 ok
  43. /projects/id/member
  44. get 200 ok
  45. 401 ok
  46. 404 ok
  47. post 201 ok
  48. 400 ok
  49. 401 ok
  50. 403 ok
  51. 404 ok
  52. 409 ok
  53. /projects/member/id
  54. get 200 ok
  55. 401 ok
  56. 404 ok
  57. delete 200 ok
  58. 401 ok
  59. 403 ok
  60. 404 ok
  61. /platforms
  62. get 200 ok
  63. 401 ok
  64. post 201 ok
  65. 400 ok
  66. 401 ok
  67. 403 ok
  68. 404 ok
  69. 409 ok
  70. 413 ok
  71. /platforms/id
  72. get 200 ok
  73. 401 ok
  74. 404 ok
  75. put 200 ok
  76. 400 ok
  77. 401 ok
  78. 403 ok
  79. 404 ok
  80. 409 ok
  81. 413 ok
  82. delete 200 ok
  83. 401 ok
  84. 403 ok
  85. 404 ok
  86. /users
  87. get 200 ok
  88. 401 ok
  89. post 201 ok
  90. 400 ok
  91. 401 ok
  92. 409 ok
  93. 413 ok
  94. /users/id
  95. get 200 ok
  96. 401 ok
  97. 404 ok
  98. put 200 ok
  99. 400 ok
  100. 401 ok
  101. 404 ok
  102. 409 ok
  103. 413 ok
  104. delete 200 ok
  105. 205 ok
  106. 401 ok
  107. 404 ok
  108. /users/id/password
  109. put 200 ok
  110. 400 ok
  111. 401 ok
  112. 403 ok
  113. 404 ok