项目

    响应示例

    1. Status: 200 OK
    2. {
    3. "code": 0,
    4. "data": {
    5. "list": [
    6. {
    7. "created_at": 1553840847675,
    8. "backend_project_path": "/user/sunzhaoyao/project/dev-demo",
    9. "description": "开发者示例项目",
    10. "git_url": "git://git.coding.net/sunzhaoyao/dev-demo.git",
    11. "ssh_url": "git@git.coding.net:sunzhaoyao/dev-demo.git",
    12. "svn_url": "svn+ssh://svn@svn.coding.net/sunzhaoyao/dev-demo",
    13. "is_public": false,
    14. "https_url": "https://git.coding.net/sunzhaoyao/dev-demo.git",
    15. "vcs_type": "git",
    16. "subversion_url": "subversion.coding.net/sunzhaoyao/dev-demo",
    17. "id": 4260817,
    18. "name": "dev-demo",
    19. "display_name": "示例项目",
    20. "owner_id": 2169331,
    21. "owner_user_name": "sunzhaoyao",
    22. "owner_user_picture": "https://coding-net-production-static-ci.codehub.cn/WM-TEXT-AVATAR-AShcXtEmwkLlMcZJSQtz.jpg",
    23. "owner_user_home": "<a href=\"https://coding.net/u/sunzhaoyao\">sunzhaoyao</a>",
    24. "project_path": "/u/sunzhaoyao/p/dev-demo",
    25. "status": 1,
    26. "type": 2,
    27. "updated_at": 1553840847675,
    28. "fork_count": 0,
    29. "star_count": 0,
    30. "watch_count": 0,
    31. "download_count": 0,
    32. "pin": false,
    33. "depot_path": "/u/sunzhaoyao/p/dev-demo/git",
    34. "forked": false,
    35. "un_read_activities_count": 0,
    36. "icon": "https://dn-coding-net-production-pp.codehub.cn/79a8bcc4-d9cc-4061-940d-5b3bb31bf571.png",
    37. "current_user_role_id": 0,
    38. "stared": false,
    39. "watched": false,
    40. "recommended": 0,
    41. "shared": false,
    42. "is_member": false,
    43. "max_member": 20,
    44. "groupId": 0,
    45. "plan": 1,
    46. "isTeam": false,
    47. "isDemo": true
    48. }
    49. ],
    50. "page": 1,
    51. "pageSize": 10,
    52. "totalPage": 6,
    53. "totalRow": 54
    54. }
    55. }

    响应示例

    1. Status: 200 OK
    2. {
    3. "code": 0,
    4. "data": {
    5. "list": [
    6. {
    7. "created_at": 1507771905000,
    8. "backend_project_path": "/user/coding/project/Comments",
    9. "description": "A comment system based on Coding.net",
    10. "git_url": "git://git.coding.net/coding/Comments.git",
    11. "ssh_url": "git@git.coding.net:coding/Comments.git",
    12. "svn_url": "svn+ssh://svn@svn.coding.net/coding/Comments",
    13. "is_public": true,
    14. "https_url": "https://git.coding.net/coding/Comments.git",
    15. "vcs_type": "git",
    16. "subversion_url": "subversion.coding.net/coding/Comments",
    17. "id": 1454826,
    18. "owner_id": 93,
    19. "owner_user_name": "coding",
    20. "owner_user_picture": "https://dn-coding-net-production-static.codehub.cn/512b2a62-956b-4ef8-8e84-b3c66e71468f.png?imageMogr2/auto-orient/format/png/crop/!300x300a0a0",
    21. "owner_user_home": "<a href=\"https://coding.net/u/coding\">coding</a>",
    22. "project_path": "/u/coding/p/Comments",
    23. "status": 1,
    24. "type": 1,
    25. "updated_at": 1530611471000,
    26. "last_updated": 1530611471000,
    27. "fork_count": 4,
    28. "star_count": 17,
    29. "watch_count": 24,
    30. "download_count": 0,
    31. "pin": false,
    32. "depot_path": "/u/coding/p/Comments/git",
    33. "forked": false,
    34. "un_read_activities_count": 0,
    35. "icon": "/static/project_icon/scenery-4.png",
    36. "current_user_role_id": 0,
    37. "owner": {
    38. "tags_str": "云计算追随者, 技术风向标",
    39. "tags": "19,32",
    40. "job_str": "产品",
    41. "job": 2,
    42. "sex": 0,
    43. "location": "广东 深圳",
    44. "company": "Coding.net",
    45. "slogan": "",
    46. "website": "",
    47. "introduction": "",
    48. "avatar": "https://dn-coding-net-production-static.codehub.cn/512b2a62-956b-4ef8-8e84-b3c66e71468f.png?imageMogr2/auto-orient/format/png/crop/!300x300a0a0",
    49. "gravatar": "",
    50. "lavatar": "https://dn-coding-net-production-static.codehub.cn/512b2a62-956b-4ef8-8e84-b3c66e71468f.png?imageMogr2/auto-orient/format/png/crop/!300x300a0a0",
    51. "created_at": 1403329814000,
    52. "last_logined_at": 1553703523000,
    53. "last_activity_at": 1553868240927,
    54. "global_key": "coding",
    55. "name": "coding",
    56. "name_pinyin": "",
    57. "updated_at": 1553703524000,
    58. "path": "/u/coding",
    59. "status": 1,
    60. "is_member": 0,
    61. "id": 93,
    62. "vip": 4,
    63. "vip_expired_at": 1562256000000,
    64. "follows_count": 0,
    65. "fans_count": 0,
    66. "tweets_count": 0,
    67. "followed": false,
    68. "follow": false,
    69. "is_tencent_user": false
    70. },
    71. "stared": false,
    72. "watched": false,
    73. "recommended": 0,
    74. "shared": false,
    75. "is_member": false,
    76. "max_member": 20,
    77. "groupId": 0,
    78. "plan": 1,
    79. "isTeam": false,
    80. "isDemo": false
    81. }
    82. ],
    83. "page": 1,
    84. "pageSize": 10,
    85. "totalPage": 1,
    86. "totalRow": 1
    87. }
    88. }

    响应示例

    1. Status: 200 OK
    2. {
    3. "code": 0,
    4. "data": {
    5. "created_at": 1418376096000,
    6. "git_url": "git://git.coding.net/coding/Coding-iOS.git",
    7. "ssh_url": "git@git.coding.net:coding/Coding-iOS.git",
    8. "svn_url": "svn+ssh://svn@svn.coding.net/coding/Coding-iOS",
    9. "is_public": false,
    10. "https_url": "https://git.coding.net/coding/Coding-iOS.git",
    11. "vcs_type": "git",
    12. "subversion_url": "subversion.coding.net/coding/Coding-iOS",
    13. "id": 38894,
    14. "name": "Coding-iOS",
    15. "display_name": "Coding-iOS",
    16. "owner_id": 93,
    17. "owner_user_name": "coding",
    18. "owner_user_picture": "https://dn-coding-net-production-static.codehub.cn/512b2a62-956b-4ef8-8e84-b3c66e71468f.png?imageMogr2/auto-orient/format/png/crop/!300x300a0a0",
    19. "owner_user_home": "<a href=\"https://coding.net/u/coding\">coding</a>",
    20. "project_path": "/u/coding/p/Coding-iOS",
    21. "status": 1,
    22. "type": 2,
    23. "updated_at": 1534908304000,
    24. "last_updated": 1534908304000,
    25. "fork_count": 978,
    26. "star_count": 1042,
    27. "watch_count": 943,
    28. "download_count": 355,
    29. "pin": false,
    30. "depot_path": "/u/coding/p/Coding-iOS/git",
    31. "forked": false,
    32. "un_read_activities_count": 15,
    33. "icon": "https://dn-coding-net-production-static.codehub.cn/198b9af0-5396-4cd6-b160-8f5dd078145d.png",
    34. "current_user_role_id": 100,
    35. "current_user_role": "owner",
    36. "owner": {
    37. "tags_str": "云计算追随者, 技术风向标",
    38. "tags": "19,32",
    39. "job_str": "产品",
    40. "job": 2,
    41. "sex": 0,
    42. "location": "广东 深圳",
    43. "company": "Coding.net",
    44. "slogan": "",
    45. "website": "",
    46. "introduction": "",
    47. "avatar": "https://dn-coding-net-production-static.codehub.cn/512b2a62-956b-4ef8-8e84-b3c66e71468f.png?imageMogr2/auto-orient/format/png/crop/!300x300a0a0",
    48. "gravatar": "",
    49. "lavatar": "https://dn-coding-net-production-static.codehub.cn/512b2a62-956b-4ef8-8e84-b3c66e71468f.png?imageMogr2/auto-orient/format/png/crop/!300x300a0a0",
    50. "created_at": 1403329814000,
    51. "last_logined_at": 1553703523000,
    52. "last_activity_at": 1553866775280,
    53. "global_key": "coding",
    54. "name": "coding",
    55. "name_pinyin": "",
    56. "updated_at": 1553703524000,
    57. "path": "/u/coding",
    58. "status": 1,
    59. "is_member": 0,
    60. "id": 93,
    61. "vip": 4,
    62. "vip_expired_at": 1562256000000,
    63. "follows_count": 0,
    64. "fans_count": 0,
    65. "tweets_count": 0,
    66. "followed": false,
    67. "follow": false,
    68. "is_tencent_user": false
    69. },
    70. "stared": false,
    71. "watched": false,
    72. "recommended": 0,
    73. "shared": true,
    74. "is_member": true,
    75. "max_member": 20,
    76. "groupId": 0,
    77. "plan": 1,
    78. "isTeam": false,
    79. "isDemo": false,
    80. "test": [
    81. "code-search"
    82. ]