123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- Ownersip
- - user yang membuat project otomatis menjadi owner dari project tsb -> spring
- - owner tidak dapat diubah -> put tidak merubah owner
- - rights owner:
- - owner dapat mengubah nama, deskripsi project -> /projects/id put
- - owner dapat menghapus project -> /projects/id delete
- - owner dapat menambah, mengubah dan menhapus platform project -> /platforms/id post, put, delete
- - owner dapat menambahkan dan menghapus member project -> /projects/member post, /projects/id/member delete
- Membership:
- - Member memiliki 3 macam role : 0:QC, 1: Programmer, 2:Admin
- - Tiap user bisa memiliki lebih dari 1 role dalam satu project. (contoh: user Joko bisa di daftarkan sebagai QC dan Admin)
- - Tiap Role mempunyai rights berbeda
- Rights Admin:
- - Admin dapat mengubah nama, deskripsi project -> /projects/id put
- - Admin dapat menambah, mengubah dan menhapus platform project -> /platforms/id post, put, delete
- - Admin dapat menambahkan dan menghapus member project -> /projects/member post, /projects/id/member delete
- - Admin tidak dapat menghapus member dengan role Admin ->
- Rights lain menyusul setelah ada table bug.
- insert into `user`(`user_id`,`name`,`password`,`username`) values
- (1,'test user','$2a$10$Y8LgDPJiAsbw7n5pURhGVOmi5.LWpfJaX7ZgSDbjsQXEnsCFPdhB2','user'),
- /projects
- get 200 ok
- 401 ok
- post 201 ok
- 400 ok
- 401 ok
- 409 ok
- 413 ok
- /projects/id
- get 200 ok
- 401 ok
- 404 ok
- put 200 ok
- 400 ok
- 401 ok
- 403 ok
- 409 ok
- 413 ok
- delete 200 ok
- 205 ok
- 401 ok
- 403 ok
- /projects/id/member
- get 200 ok
- 401 ok
- 404 ok
- post 201 ok
- 400 ok
- 401 ok
- 403 ok
- 404 ok
- 409 ok
- /projects/member/id
- get 200 ok
- 401 ok
- 404 ok
- delete 200 ok
- 401 ok
- 403 ok
- 404 ok
- /platforms
- get 200 ok
- 401 ok
- post 201 ok
- 400 ok
- 401 ok
- 403 ok
- 404 ok
- 409 ok
- 413 ok
- /platforms/id
- get 200 ok
- 401 ok
- 404 ok
- put 200 ok
- 400 ok
- 401 ok
- 403 ok
- 404 ok
- 409 ok
- 413 ok
- delete 200 ok
- 401 ok
- 403 ok
- 404 ok
- /users
- get 200 ok
- 401 ok
- post 201 ok
- 400 ok
- 401 ok
- 409 ok
- 413 ok
- /users/id
- get 200 ok
- 401 ok
- 404 ok
- put 200 ok
- 400 ok
- 401 ok
- 404 ok
- 409 ok
- 413 ok
- delete 200 ok
- 205 ok
- 401 ok
- 404 ok
- /users/id/password
- put 200 ok
- 400 ok
- 401 ok
- 403 ok
- 404 ok
|