簡體   English   中英

卷曲URL以獲取我的存儲庫中存在問題的json文件

[英]curl url to get the json file for issues in my repository

我剛剛開始使用github api從我們的存儲庫中提取問題記錄。 當我打

curl -k -H "Content-Type: application/json" https://2b9e36bvb9e36b82d38b9c0ab2b9e36b82d3:x-oauth-basic@rnd.git.corp/newlands/hello-world/issues

我得到以下輸出。

> <html><body>You are being <a
> href="https://rnd.git.corp/login?return_to=https%3A%2F%2Frnd.git.corp%2Fnewlands%2Fhello-world%2Fissues">redirected</a>.</body></html>

我的curl命令有什么問題嗎? 理想情況下,應該按照git api doc在我的存儲庫中打印問題列表。 感謝對此的任何幫助。

如果rnd.git.corp是根據URL來api.github.com ,你也許只是錯過/repos ,如https://rnd.git.corp/repos/newlands/hello-world/issues

謝謝@吸血鬼。 我想我已經解決了。 我們在Org中安裝了企業github ,其api訪問URL略有不同

因此,對於GitHub Enterprise,URL應該是這樣的,

https://rnd.git.corp/api/v3/newlands/hello-world/issues

如果有人想添加更多或更正此答案,請放心。 和平!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM