GitLab REST API
APIManage GitLab projects, repositories and merge requests over REST
- Erişim
- Access token for private projects
Hakkında
GitLab's versioned REST API lets applications read and manage projects, repository files, branches, issues and merge requests on GitLab.com or a self-managed instance. Access depends on the token's scopes and the user's project permissions. This card covers the REST API.
Neler yapabilirsin
- List and create GitLab projects from an internal developer portal
- Read repository files and create branches or merge requests for code changes
- Sync GitLab issues with an external project management system
Başlarken
- Create a personal access token with the needed scopes
- Use your host's /api/v4; GitLab.com project tokens need Premium or Ultimate
- Send the token in the PRIVATE-TOKEN header for protected resources
Örnek kod
curl --request GET \
--header "PRIVATE-TOKEN: $GITLAB_ACCESS_TOKEN" \
"https://gitlab.com/api/v4/projects"Ayrıntılar
- Barındırma
- Hazır hizmet (bulut), Kendi sunucunda
- Kullanılabildiği yerler
- Tüm dünya
- MCP sunucusu
- Yok