Skip to content

Commit 7a47383

Browse files
sidneymarieannem1guelpf
authored andcommitted
add crud methos to issue boards
1 parent 76d3138 commit 7a47383

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

lib/Gitlab/Api/IssueBoards.php

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,47 @@ public function all($project_id = null, array $parameters = [])
1717
return $this->get($path, $resolver->resolve($parameters));
1818
}
1919

20+
/**
21+
* @param int $project_id
22+
* @param int $board_id
23+
* @return mixed
24+
*/
25+
public function show($project_id, $board_id)
26+
{
27+
return $this->get($this->getProjectPath($project_id, 'boards/'.$this->encodePath($board_id)));
28+
}
29+
30+
/**
31+
* @param int $project_id
32+
* @param array $params
33+
* @return mixed
34+
*/
35+
public function create($project_id, array $params)
36+
{
37+
return $this->post($this->getProjectPath($project_id, 'boards'), $params);
38+
}
39+
40+
/**
41+
* @param int $project_id
42+
* @param int $board_id
43+
* @param array $params
44+
* @return mixed
45+
*/
46+
public function update($project_id, $board_id, array $params)
47+
{
48+
return $this->put($this->getProjectPath($project_id, 'boards/'.$this->encodePath($board_id)), $params);
49+
}
50+
51+
/**
52+
* @param int $project_id
53+
* @param int $board_id
54+
* @return mixed
55+
*/
56+
public function remove($project_id, $board_id)
57+
{
58+
return $this->delete($this->getProjectPath($project_id, 'boards/'.$this->encodePath($board_id)));
59+
}
60+
2061
/**
2162
* @param int $project_id
2263
* @param int $board_id

0 commit comments

Comments
 (0)