I created a project and repo on my gitlab.com account, generated a private key, now I'm trying to make an API call to get a list of commits.
Now I want to get a list of projects through the API, from the documentation https://docs.gitlab.com/ce/api/projects.html#list-projects
GET /projects
So i do
curl --header "PRIVATE-TOKEN: XXXXXXX -c" "https://gitlab.com/projects"
And getting 404. I tried several combinations and cannot find the correct base URL.
The same for fixing the repository, the documentation https://docs.gitlab.com/ce/api/commits.html says
https:
ok i try (with myusername / projectname as project id) https://gitlab.com/api/v3/projects/myusername/projectname/repository/commits
And got 404 as well
source
share