如何在gitlab中检查项目的ID [英] HOW to check id of project in gitlab

查看:167
本文介绍了如何在gitlab中检查项目的ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用GitLab API来获取项目的内容.网址是这样的:

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

我已经创建了专用令牌,但是找不到项目的ID.

I have already created the private token, but I can not find my project's ID.

正在寻找答复!

推荐答案

您可以使用以下方法获取项目的ID,并插入应进行URL编码的项目路径.

You can use the following to get the project's ID, inserting the project path which should be URL encoded.

示例:

https://gitlab.com/api/v4/projects/[project path URL encoded]

这篇关于如何在gitlab中检查项目的ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆