I want to use GitLab API to get the contents of my project. The URL is like this:
https://gitlab.com/api/v4/projects/:id/repository/files/:file_path?private-token=xxxxx
I have already created the private token, but I can not find my project's ID.
Looking for reply!
Since GitLab 11.2 (August 22nd, 2018), it is easier to check out one's project ID, thanks to Tuğçe Nur Taş.
See "Show project ID on project overview":
GitLab projects are associated with an auto-generated, unique project ID upon creation. This information is available in the General project settings and via our API.
With this release, we have added the project ID to the project overview page, so that users without Maintainer permissions also have access to this ID when needed.

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With