Skip to content

Repositories

无闻 edited this page Aug 19, 2015 · 35 revisions

Repositories

List your repositories

List repositories that are accessible to the authenticated user.

This includes repositories owned by the authenticated user, repositories where the authenticated user is a collaborator, and repositories that the authenticated user has access to through an organization membership.

GET /user/repos
Response
Status: 200 OK
Content-Type: application/json
[
  {
    "id": 26,
    "owner": {
      "id": 1,
      "username": "unknwon",
      "full_name": "",
      "email": "[email protected]",
      "avatar_url": "/avatars/1"
    },
    "full_name": "unknwon/private-test",
    "private": true,
    "fork": false,
    "html_url": "http://localhost:3000/unknwon/private-test",
    "clone_url": "http://localhost:3000/unknwon/private-test.git",
    "ssh_url": "jiahuachen@localhost:unknwon/private-test.git",
    "permissions": {
      "admin": true,
      "push": true,
      "pull": true
    }
  },
  {
    "id": 17,
    "owner": {
      "id": 1,
      "username": "unknwon",
      "full_name": "",
      "email": "[email protected]",
      "avatar_url": "/avatars/1"
    },
    "full_name": "unknwon/diff-encoding",
    "private": true,
    "fork": false,
    "html_url": "http://localhost:3000/unknwon/diff-encoding",
    "clone_url": "http://localhost:3000/unknwon/diff-encoding.git",
    "ssh_url": "jiahuachen@localhost:unknwon/diff-encoding.git",
    "permissions": {
      "admin": true,
      "push": true,
      "pull": true
    }
  },
  {
    "id": 7,
    "owner": {
      "id": 1,
      "username": "unknwon",
      "full_name": "",
      "email": "[email protected]",
      "avatar_url": "/avatars/1"
    },
    "full_name": "unknwon/repo1",
    "private": false,
    "fork": false,
    "html_url": "http://localhost:3000/unknwon/repo1",
    "clone_url": "http://localhost:3000/unknwon/repo1.git",
    "ssh_url": "jiahuachen@localhost:unknwon/repo1.git",
    "permissions": {
      "admin": true,
      "push": true,
      "pull": true
    }
  },
  {
    "id": 10,
    "owner": {
      "id": 1,
      "username": "unknwon",
      "full_name": "",
      "email": "[email protected]",
      "avatar_url": "/avatars/1"
    },
    "full_name": "unknwon/flycheck-vala",
    "private": false,
    "fork": false,
    "html_url": "http://localhost:3000/unknwon/flycheck-vala",
    "clone_url": "http://localhost:3000/unknwon/flycheck-vala.git",
    "ssh_url": "jiahuachen@localhost:unknwon/flycheck-vala.git",
    "permissions": {
      "admin": true,
      "push": true,
      "pull": true
    }
  },
  {
    "id": 9,
    "owner": {
      "id": 1,
      "username": "unknwon",
      "full_name": "",
      "email": "[email protected]",
      "avatar_url": "/avatars/1"
    },
    "full_name": "unknwon/gogs",
    "private": false,
    "fork": true,
    "html_url": "http://localhost:3000/unknwon/gogs",
    "clone_url": "http://localhost:3000/unknwon/gogs.git",
    "ssh_url": "jiahuachen@localhost:unknwon/gogs.git",
    "permissions": {
      "admin": true,
      "push": true,
      "pull": true
    }
  },
  {
    "id": 2,
    "owner": {
      "id": 1,
      "username": "unknwon",
      "full_name": "",
      "email": "[email protected]",
      "avatar_url": "/avatars/1"
    },
    "full_name": "unknwon/macaron",
    "private": false,
    "fork": false,
    "html_url": "http://localhost:3000/unknwon/macaron",
    "clone_url": "http://localhost:3000/unknwon/macaron.git",
    "ssh_url": "jiahuachen@localhost:unknwon/macaron.git",
    "permissions": {
      "admin": true,
      "push": true,
      "pull": true
    }
  },
  {
    "id": 18,
    "owner": {
      "id": 2,
      "username": "org1",
      "full_name": "org1",
      "email": "[email protected]",
      "avatar_url": "/avatars/2"
    },
    "full_name": "org1/diff-encoding",
    "private": false,
    "fork": false,
    "html_url": "http://localhost:3000/org1/diff-encoding",
    "clone_url": "http://localhost:3000/org1/diff-encoding.git",
    "ssh_url": "jiahuachen@localhost:org1/diff-encoding.git",
    "permissions": {
      "admin": true,
      "push": true,
      "pull": true
    }
  },
  {
    "id": 8,
    "owner": {
      "id": 2,
      "username": "org1",
      "full_name": "org1",
      "email": "[email protected]",
      "avatar_url": "/avatars/2"
    },
    "full_name": "org1/gogs",
    "private": false,
    "fork": false,
    "html_url": "http://localhost:3000/org1/gogs",
    "clone_url": "http://localhost:3000/org1/gogs.git",
    "ssh_url": "jiahuachen@localhost:org1/gogs.git",
    "permissions": {
      "admin": true,
      "push": true,
      "pull": true
    }
  }
]
Clone this wiki locally