@@ -16,7 +16,7 @@ public function all(?int $group_id = null, array $parameters = [])
1616 {
1717 $ resolver = $ this ->createOptionsResolver ();
1818
19- $ path = null === $ group_id ? 'boards ' : $ this -> getGroupPath ($ group_id, ' boards ') ;
19+ $ path = null === $ group_id ? 'boards ' : ' groups/ ' . self :: encodePath ($ group_id). ' / boards ' ;
2020
2121 return $ this ->get ($ path , $ resolver ->resolve ($ parameters ));
2222 }
@@ -29,7 +29,7 @@ public function all(?int $group_id = null, array $parameters = [])
2929 */
3030 public function show (int $ group_id , int $ board_id )
3131 {
32- return $ this ->get ($ this -> getGroupPath ($ group_id, ' boards/ ' .self ::encodePath ($ board_id) ));
32+ return $ this ->get (' groups/ ' . self :: encodePath ($ group_id). ' / boards/ ' .self ::encodePath ($ board_id ));
3333 }
3434
3535 /**
@@ -40,7 +40,7 @@ public function show(int $group_id, int $board_id)
4040 */
4141 public function create (int $ group_id , array $ params )
4242 {
43- return $ this ->post ($ this -> getGroupPath ($ group_id, ' boards ') , $ params );
43+ return $ this ->post (' groups/ ' . self :: encodePath ($ group_id). ' / boards ' , $ params );
4444 }
4545
4646 /**
@@ -52,7 +52,7 @@ public function create(int $group_id, array $params)
5252 */
5353 public function update (int $ group_id , int $ board_id , array $ params )
5454 {
55- return $ this ->put ($ this -> getGroupPath ($ group_id, ' boards/ ' .self ::encodePath ($ board_id) ), $ params );
55+ return $ this ->put (' groups/ ' . self :: encodePath ($ group_id). ' / boards/ ' .self ::encodePath ($ board_id ), $ params );
5656 }
5757
5858 /**
@@ -63,7 +63,7 @@ public function update(int $group_id, int $board_id, array $params)
6363 */
6464 public function remove (int $ group_id , int $ board_id )
6565 {
66- return $ this ->delete ($ this -> getGroupPath ($ group_id, ' boards/ ' .self ::encodePath ($ board_id) ));
66+ return $ this ->delete (' groups/ ' . self :: encodePath ($ group_id). ' / boards/ ' .self ::encodePath ($ board_id ));
6767 }
6868
6969 /**
@@ -74,7 +74,7 @@ public function remove(int $group_id, int $board_id)
7474 */
7575 public function allLists (int $ group_id , int $ board_id )
7676 {
77- return $ this ->get ($ this -> getGroupPath ($ group_id, ' boards/ ' .self ::encodePath ($ board_id ).'/lists ' ) );
77+ return $ this ->get (' groups/ ' . self :: encodePath ($ group_id). ' / boards/ ' .self ::encodePath ($ board_id ).'/lists ' );
7878 }
7979
8080 /**
@@ -86,7 +86,7 @@ public function allLists(int $group_id, int $board_id)
8686 */
8787 public function showList (int $ group_id , int $ board_id , int $ list_id )
8888 {
89- return $ this ->get ($ this -> getGroupPath ($ group_id, ' boards/ ' .self ::encodePath ($ board_id ).'/lists/ ' .self ::encodePath ($ list_id) ));
89+ return $ this ->get (' groups/ ' . self :: encodePath ($ group_id). ' / boards/ ' .self ::encodePath ($ board_id ).'/lists/ ' .self ::encodePath ($ list_id ));
9090 }
9191
9292 /**
@@ -102,7 +102,7 @@ public function createList(int $group_id, int $board_id, int $label_id)
102102 'label_id ' => $ label_id ,
103103 ];
104104
105- return $ this ->post ($ this -> getGroupPath ($ group_id, ' boards/ ' .self ::encodePath ($ board_id ).'/lists ' ) , $ params );
105+ return $ this ->post (' groups/ ' . self :: encodePath ($ group_id). ' / boards/ ' .self ::encodePath ($ board_id ).'/lists ' , $ params );
106106 }
107107
108108 /**
@@ -119,7 +119,7 @@ public function updateList(int $group_id, int $board_id, int $list_id, int $posi
119119 'position ' => $ position ,
120120 ];
121121
122- return $ this ->put ($ this -> getGroupPath ($ group_id, ' boards/ ' .self ::encodePath ($ board_id ).'/lists/ ' .self ::encodePath ($ list_id) ), $ params );
122+ return $ this ->put (' groups/ ' . self :: encodePath ($ group_id). ' / boards/ ' .self ::encodePath ($ board_id ).'/lists/ ' .self ::encodePath ($ list_id ), $ params );
123123 }
124124
125125 /**
@@ -131,6 +131,6 @@ public function updateList(int $group_id, int $board_id, int $list_id, int $posi
131131 */
132132 public function deleteList (int $ group_id , int $ board_id , int $ list_id )
133133 {
134- return $ this ->delete ($ this -> getGroupPath ($ group_id, ' boards/ ' .self ::encodePath ($ board_id ).'/lists/ ' .self ::encodePath ($ list_id) ));
134+ return $ this ->delete (' groups/ ' . self :: encodePath ($ group_id). ' / boards/ ' .self ::encodePath ($ board_id ).'/lists/ ' .self ::encodePath ($ list_id ));
135135 }
136136}
0 commit comments