Gitリポジトリの取得

Gitリポジトリを取得します。

実行可能な権限

管理者 
一般ユーザー 

メソッド

GET 

URL

/api/v2/projects/:projectIdOrKey/git/repositories/:repoIdOrName 

URL パラメーター

パラメーター名 内容
projectIdOrKey 文字列 プロジェクトのID または プロジェクトキー
repoIdOrName 文字列 リポジトリのID または リポジトリ名

レスポンス例

ステータスライン / レスポンスヘッダ

HTTP/1.1 200 OK 
Content-Type:application/json;charset=utf-8 

レスポンスボディ

{ 
    "id":1, 
    "projectId":151, 
    "name":"app", 
    "description":"", 
    "hookUrl":null, 
    "httpUrl":"https://xx.backlog.jp/git/BLG/app.git", 
    "sshUrl":"xx@xx.git.backlog.jp:/BLG/app.git", 
    "displayOrder":0, 
    "pushedAt":null, 
    "createdUser": { 
        "id": 1, 
        "userId": "admin", 
        "name": "admin", 
        "roleType": 1, 
        "lang": "ja", 
        "nulabAccount": {
            "nulabId": "Prm9ZD9DQD5snNWcSYSwZiQoA9WFBUEa2ySznrSnSQRhdC2X8G",
            "name": "admin",
            "uniqueId": "admin"
        },
        "mailAddress": "eguchi@nulab.example",
        "lastLoginTime": "2022-09-01T06:35:39Z"
    }, 
    "created": "2013-05-30T09:11:36Z", 
    "updatedUser": { 
        "id": 1, 
        "userId": "admin", 
        "name": "admin", 
        "roleType": 1, 
        "lang": "ja", 
        "nulabAccount": {
            "nulabId": "Prm9ZD9DQD5snNWcSYSwZiQoA9WFBUEa2ySznrSnSQRhdC2X8G",
            "name": "admin",
            "uniqueId": "admin"
        },
        "mailAddress": "eguchi@nulab.example",
        "lastLoginTime": "2022-09-01T06:35:39Z"
    }, 
    "updated": "2013-05-30T09:11:36Z" 
}