mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
1.0 KiB
1.0 KiB
Projects API
List projects
Get a list of visible projects for authenticated user. When accessed without authentication, only public projects are returned.
let projects = GitlabAPI.projects.all();
Parameters: List all projects
Get single project
Get a specific project. This endpoint can be accessed without authentication if the project is publicly accessible.
// From a project ID
let projectA = GitlabAPI.projects.show(21);
// From a projects url
let projectB = GitlabAPI.projects.show('diaspora/diaspora');
Parameters: Get single project
Create project
Creates a new project owned by the authenticated user.
// From a project ID
let projectA = GitlabAPI.projects.create({
// params
});
Parameters: Create project