Commit a49b1c22 authored by Ben Boeckel's avatar Ben Boeckel

gitlab: update project methods for API v4

The "all" query has disappeared and searching for owned repositories is
now done with a parameter rather than a path.
parent 42673dda
......@@ -132,14 +132,7 @@ impl Gitlab {
/// Get all owned projects.
pub fn owned_projects(&self) -> Result<Vec<Project>> {
self._get_paged("projects/owned")
}
/// Get all projects.
///
/// Requires administrator privileges.
pub fn all_projects(&self) -> Result<Vec<Project>> {
self._get_paged("projects/all")
self._get_paged_with_param("projects", &[("owned", "true")])
}
/// Find a project by id.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment