[英]How to list all the project variables in a gitlab project via GitLab V4 api
[英]Local instance of gitlab does not respond to REST-calls from the API documentation located in "/gitlab/doc/api/v4"
I have undertaking a master thesis project that uses the openapi.yaml
files to auto generate test for REST-api web-services - This has lead me to host a local instance of gitlab, so that I can run the tool I am working on, on gitlab . 為此,我需要.yaml
文件,其中包含 API 調用的文檔。 此類文件可在 gitlab 源代碼中找到,但該調用似乎不起作用。
一些電話有效,即:
http://localhost/api/v4/version
http://localhost/api/v4/users
http://localhost/api/v4/projects
http://localhost/api/v4/groups
所有返回有意義的 JSON。
問題是文檔中的很多調用都不起作用(返回“404 not found”),即:
http://localhost/api/v4/metadata
http://localhost/api/v4/projects/{id}/access_tokens
以及文檔中指定的更多調用。
問題是很多有效的調用都沒有記錄(除了“版本”調用之外的所有調用)。 我真的試圖尋找一個替代的openapi.yaml
文件,但收效甚微,我也很困惑為什么留在實際源代碼中的文件不包含有意義的文檔。 我忽略了什么嗎? 我目前正在使用 postman 並提供 sudo 身份驗證令牌。
在此先感謝-我肯定忽略了一些東西!
目前,我試圖通過谷歌搜索和瀏覽 swaggerhub.com 來尋找替代的openapi.yaml
。 我查看了 gitlab 的文檔頁面,但我還沒有找到任何我沒有的東西。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.