gitee.com/openeuler/go-gitee@v0.0.0-20220530104019-3af895bc380c/api/swagger.yaml (about)

     1  ---
     2  swagger: "2.0"
     3  info:
     4    version: "5.3.2"
     5    title: "码云 Open API"
     6  host: "gitee.com"
     7  basePath: "/api"
     8  tags:
     9  - name: "Repositories"
    10    description: "Operations about Repositories"
    11  - name: "Git Data"
    12    description: "Operations about Git Data"
    13  - name: "Issues"
    14    description: "Operations about Issues"
    15  - name: "Labels"
    16    description: "Operations about Labels"
    17  - name: "Milestones"
    18    description: "Operations about Milestones"
    19  - name: "Miscellaneous"
    20    description: "Operations about Miscellaneous"
    21  - name: "Pull Requests"
    22    description: "Operations about Pull Requests"
    23  - name: "Webhooks"
    24    description: "Operations about Webhooks"
    25  - name: "Activity"
    26    description: "Operations about Activities"
    27  - name: "Users"
    28    description: "Operations about Users"
    29  - name: "Organizations"
    30    description: "Operations about Organizations"
    31  - name: "Enterprises"
    32    description: "Operations about Enterprises"
    33  - name: "Gists"
    34    description: "Operations about Gists"
    35  - name: "Search"
    36    description: "Operations about Searches"
    37  produces:
    38  - "application/json"
    39  - "text/plain"
    40  paths:
    41    /v5/repos/{owner}/{repo}/branches:
    42      get:
    43        tags:
    44        - "Repositories"
    45        summary: "获取所有分支"
    46        description: "获取所有分支"
    47        operationId: "getV5ReposOwnerRepoBranches"
    48        consumes:
    49        - "application/json"
    50        - "multipart/form-data"
    51        produces:
    52        - "application/json"
    53        parameters:
    54        - name: "access_token"
    55          in: "query"
    56          description: "用户授权码"
    57          required: false
    58          type: "string"
    59          x-exportParamName: "AccessToken"
    60          x-optionalDataType: "String"
    61        - name: "owner"
    62          in: "path"
    63          description: "仓库所属空间地址(企业、组织或个人的地址path)"
    64          required: true
    65          type: "string"
    66          x-exportParamName: "Owner"
    67        - name: "repo"
    68          in: "path"
    69          description: "仓库路径(path)"
    70          required: true
    71          type: "string"
    72          x-exportParamName: "Repo"
    73        responses:
    74          200:
    75            description: "返回格式"
    76            schema:
    77              type: "array"
    78              items:
    79                $ref: "#/definitions/Branch"
    80      post:
    81        tags:
    82        - "Repositories"
    83        summary: "创建分支"
    84        description: "创建分支"
    85        operationId: "postV5ReposOwnerRepoBranches"
    86        consumes:
    87        - "application/json"
    88        - "multipart/form-data"
    89        produces:
    90        - "application/json"
    91        parameters:
    92        - name: "owner"
    93          in: "path"
    94          description: "仓库所属空间地址(企业、组织或个人的地址path)"
    95          required: true
    96          type: "string"
    97          x-exportParamName: "Owner"
    98        - name: "repo"
    99          in: "path"
   100          description: "仓库路径(path)"
   101          required: true
   102          type: "string"
   103          x-exportParamName: "Repo"
   104        - in: "body"
   105          name: "body"
   106          description: "新建分支内容"
   107          required: true
   108          schema:
   109            $ref: "#/definitions/CreateBranchParam"
   110          x-exportParamName: "Body"
   111        responses:
   112          201:
   113            description: "返回格式"
   114            schema:
   115              $ref: "#/definitions/CompleteBranch"
   116    /v5/repos/{owner}/{repo}/branches/{branch}:
   117      get:
   118        tags:
   119        - "Repositories"
   120        summary: "获取单个分支"
   121        description: "获取单个分支"
   122        operationId: "getV5ReposOwnerRepoBranchesBranch"
   123        consumes:
   124        - "application/json"
   125        - "multipart/form-data"
   126        produces:
   127        - "application/json"
   128        parameters:
   129        - name: "access_token"
   130          in: "query"
   131          description: "用户授权码"
   132          required: false
   133          type: "string"
   134          x-exportParamName: "AccessToken"
   135          x-optionalDataType: "String"
   136        - name: "owner"
   137          in: "path"
   138          description: "仓库所属空间地址(企业、组织或个人的地址path)"
   139          required: true
   140          type: "string"
   141          x-exportParamName: "Owner"
   142        - name: "repo"
   143          in: "path"
   144          description: "仓库路径(path)"
   145          required: true
   146          type: "string"
   147          x-exportParamName: "Repo"
   148        - name: "branch"
   149          in: "path"
   150          description: "分支名称"
   151          required: true
   152          type: "string"
   153          x-exportParamName: "Branch"
   154        responses:
   155          200:
   156            description: "返回格式"
   157            schema:
   158              $ref: "#/definitions/Branch"
   159    /v5/repos/{owner}/{repo}/branches/{branch}/protection:
   160      put:
   161        tags:
   162        - "Repositories"
   163        summary: "设置分支保护"
   164        description: "设置分支保护"
   165        operationId: "putV5ReposOwnerRepoBranchesBranchProtection"
   166        consumes:
   167        - "application/json"
   168        - "multipart/form-data"
   169        produces:
   170        - "application/json"
   171        parameters:
   172        - name: "owner"
   173          in: "path"
   174          description: "仓库所属空间地址(企业、组织或个人的地址path)"
   175          required: true
   176          type: "string"
   177          x-exportParamName: "Owner"
   178        - name: "repo"
   179          in: "path"
   180          description: "仓库路径(path)"
   181          required: true
   182          type: "string"
   183          x-exportParamName: "Repo"
   184        - name: "branch"
   185          in: "path"
   186          description: "分支名称"
   187          required: true
   188          type: "string"
   189          x-exportParamName: "Branch"
   190        - in: "body"
   191          name: "body"
   192          description: "设置分支保护参数"
   193          required: true
   194          schema:
   195            $ref: "#/definitions/BranchProtectionPutParam"
   196          x-exportParamName: "Body"
   197        responses:
   198          200:
   199            description: "返回格式"
   200            schema:
   201              $ref: "#/definitions/CompleteBranch"
   202      delete:
   203        tags:
   204        - "Repositories"
   205        summary: "取消保护分支的设置"
   206        description: "取消保护分支的设置"
   207        operationId: "deleteV5ReposOwnerRepoBranchesBranchProtection"
   208        consumes:
   209        - "application/json"
   210        - "multipart/form-data"
   211        produces:
   212        - "application/json"
   213        parameters:
   214        - name: "access_token"
   215          in: "query"
   216          description: "用户授权码"
   217          required: false
   218          type: "string"
   219          x-exportParamName: "AccessToken"
   220          x-optionalDataType: "String"
   221        - name: "owner"
   222          in: "path"
   223          description: "仓库所属空间地址(企业、组织或个人的地址path)"
   224          required: true
   225          type: "string"
   226          x-exportParamName: "Owner"
   227        - name: "repo"
   228          in: "path"
   229          description: "仓库路径(path)"
   230          required: true
   231          type: "string"
   232          x-exportParamName: "Repo"
   233        - name: "branch"
   234          in: "path"
   235          description: "分支名称"
   236          required: true
   237          type: "string"
   238          x-exportParamName: "Branch"
   239        responses:
   240          204:
   241            description: "取消保护分支的设置"
   242    /v5/repos/{owner}/{repo}/commits:
   243      get:
   244        tags:
   245        - "Repositories"
   246        summary: "仓库的所有提交"
   247        description: "仓库的所有提交"
   248        operationId: "getV5ReposOwnerRepoCommits"
   249        consumes:
   250        - "application/json"
   251        - "multipart/form-data"
   252        produces:
   253        - "application/json"
   254        parameters:
   255        - name: "access_token"
   256          in: "query"
   257          description: "用户授权码"
   258          required: false
   259          type: "string"
   260          x-exportParamName: "AccessToken"
   261          x-optionalDataType: "String"
   262        - name: "owner"
   263          in: "path"
   264          description: "仓库所属空间地址(企业、组织或个人的地址path)"
   265          required: true
   266          type: "string"
   267          x-exportParamName: "Owner"
   268        - name: "repo"
   269          in: "path"
   270          description: "仓库路径(path)"
   271          required: true
   272          type: "string"
   273          x-exportParamName: "Repo"
   274        - name: "sha"
   275          in: "query"
   276          description: "提交起始的SHA值或者分支名. 默认: 仓库的默认分支"
   277          required: false
   278          type: "string"
   279          x-exportParamName: "Sha"
   280          x-optionalDataType: "String"
   281        - name: "path"
   282          in: "query"
   283          description: "包含该文件的提交"
   284          required: false
   285          type: "string"
   286          x-exportParamName: "Path"
   287          x-optionalDataType: "String"
   288        - name: "author"
   289          in: "query"
   290          description: "提交作者的邮箱或个人空间地址(username/login)"
   291          required: false
   292          type: "string"
   293          x-exportParamName: "Author"
   294          x-optionalDataType: "String"
   295        - name: "since"
   296          in: "query"
   297          description: "提交的起始时间,时间格式为 ISO 8601"
   298          required: false
   299          type: "string"
   300          x-exportParamName: "Since"
   301          x-optionalDataType: "String"
   302        - name: "until"
   303          in: "query"
   304          description: "提交的最后时间,时间格式为 ISO 8601"
   305          required: false
   306          type: "string"
   307          x-exportParamName: "Until"
   308          x-optionalDataType: "String"
   309        - name: "page"
   310          in: "query"
   311          description: "当前的页码"
   312          required: false
   313          type: "integer"
   314          default: 1
   315          format: "int32"
   316          x-exportParamName: "Page"
   317          x-optionalDataType: "Int32"
   318        - name: "per_page"
   319          in: "query"
   320          description: "每页的数量,最大为 100"
   321          required: false
   322          type: "integer"
   323          default: 20
   324          format: "int32"
   325          x-exportParamName: "PerPage"
   326          x-optionalDataType: "Int32"
   327        responses:
   328          200:
   329            description: "返回格式"
   330            schema:
   331              type: "array"
   332              items:
   333                $ref: "#/definitions/RepoCommit"
   334    /v5/repos/{owner}/{repo}/commits/{sha}:
   335      get:
   336        tags:
   337        - "Repositories"
   338        summary: "仓库的某个提交"
   339        description: "仓库的某个提交"
   340        operationId: "getV5ReposOwnerRepoCommitsSha"
   341        consumes:
   342        - "application/json"
   343        - "multipart/form-data"
   344        produces:
   345        - "application/json"
   346        parameters:
   347        - name: "access_token"
   348          in: "query"
   349          description: "用户授权码"
   350          required: false
   351          type: "string"
   352          x-exportParamName: "AccessToken"
   353          x-optionalDataType: "String"
   354        - name: "owner"
   355          in: "path"
   356          description: "仓库所属空间地址(企业、组织或个人的地址path)"
   357          required: true
   358          type: "string"
   359          x-exportParamName: "Owner"
   360        - name: "repo"
   361          in: "path"
   362          description: "仓库路径(path)"
   363          required: true
   364          type: "string"
   365          x-exportParamName: "Repo"
   366        - name: "sha"
   367          in: "path"
   368          description: "提交的SHA值或者分支名"
   369          required: true
   370          type: "string"
   371          x-exportParamName: "Sha"
   372        responses:
   373          200:
   374            description: "返回格式"
   375            schema:
   376              $ref: "#/definitions/RepoCommit"
   377    /v5/repos/{owner}/{repo}/compare/{base}...{head}:
   378      get:
   379        tags:
   380        - "Repositories"
   381        summary: "两个Commits之间对比的版本差异"
   382        description: "两个Commits之间对比的版本差异"
   383        operationId: "getV5ReposOwnerRepoCompareBase...Head"
   384        consumes:
   385        - "application/json"
   386        - "multipart/form-data"
   387        produces:
   388        - "application/json"
   389        parameters:
   390        - name: "access_token"
   391          in: "query"
   392          description: "用户授权码"
   393          required: false
   394          type: "string"
   395          x-exportParamName: "AccessToken"
   396          x-optionalDataType: "String"
   397        - name: "owner"
   398          in: "path"
   399          description: "仓库所属空间地址(企业、组织或个人的地址path)"
   400          required: true
   401          type: "string"
   402          x-exportParamName: "Owner"
   403        - name: "repo"
   404          in: "path"
   405          description: "仓库路径(path)"
   406          required: true
   407          type: "string"
   408          x-exportParamName: "Repo"
   409        - name: "base"
   410          in: "path"
   411          description: "Commit提交的SHA值或者分支名作为对比起点"
   412          required: true
   413          type: "string"
   414          x-exportParamName: "Base"
   415        - name: "head"
   416          in: "path"
   417          description: "Commit提交的SHA值或者分支名作为对比终点"
   418          required: true
   419          type: "string"
   420          x-exportParamName: "Head"
   421        responses:
   422          200:
   423            description: "返回格式"
   424            schema:
   425              $ref: "#/definitions/Compare"
   426    /v5/repos/{owner}/{repo}/keys:
   427      get:
   428        tags:
   429        - "Repositories"
   430        summary: "获取仓库已部署的公钥"
   431        description: "获取仓库已部署的公钥"
   432        operationId: "getV5ReposOwnerRepoKeys"
   433        consumes:
   434        - "application/json"
   435        - "multipart/form-data"
   436        produces:
   437        - "application/json"
   438        parameters:
   439        - name: "access_token"
   440          in: "query"
   441          description: "用户授权码"
   442          required: false
   443          type: "string"
   444          x-exportParamName: "AccessToken"
   445          x-optionalDataType: "String"
   446        - name: "owner"
   447          in: "path"
   448          description: "仓库所属空间地址(企业、组织或个人的地址path)"
   449          required: true
   450          type: "string"
   451          x-exportParamName: "Owner"
   452        - name: "repo"
   453          in: "path"
   454          description: "仓库路径(path)"
   455          required: true
   456          type: "string"
   457          x-exportParamName: "Repo"
   458        - name: "page"
   459          in: "query"
   460          description: "当前的页码"
   461          required: false
   462          type: "integer"
   463          default: 1
   464          format: "int32"
   465          x-exportParamName: "Page"
   466          x-optionalDataType: "Int32"
   467        - name: "per_page"
   468          in: "query"
   469          description: "每页的数量,最大为 100"
   470          required: false
   471          type: "integer"
   472          default: 20
   473          format: "int32"
   474          x-exportParamName: "PerPage"
   475          x-optionalDataType: "Int32"
   476        responses:
   477          200:
   478            description: "返回格式"
   479            schema:
   480              type: "array"
   481              items:
   482                $ref: "#/definitions/SSHKey"
   483      post:
   484        tags:
   485        - "Repositories"
   486        summary: "为仓库添加公钥"
   487        description: "为仓库添加公钥"
   488        operationId: "postV5ReposOwnerRepoKeys"
   489        consumes:
   490        - "application/json"
   491        - "multipart/form-data"
   492        produces:
   493        - "application/json"
   494        parameters:
   495        - name: "access_token"
   496          in: "formData"
   497          description: "用户授权码"
   498          required: false
   499          type: "string"
   500          x-exportParamName: "AccessToken"
   501          x-optionalDataType: "String"
   502        - name: "owner"
   503          in: "path"
   504          description: "仓库所属空间地址(企业、组织或个人的地址path)"
   505          required: true
   506          type: "string"
   507          x-exportParamName: "Owner"
   508        - name: "repo"
   509          in: "path"
   510          description: "仓库路径(path)"
   511          required: true
   512          type: "string"
   513          x-exportParamName: "Repo"
   514        - name: "key"
   515          in: "formData"
   516          description: "公钥内容"
   517          required: true
   518          type: "string"
   519          x-exportParamName: "Key"
   520        - name: "title"
   521          in: "formData"
   522          description: "公钥名称"
   523          required: true
   524          type: "string"
   525          x-exportParamName: "Title"
   526        responses:
   527          201:
   528            description: "返回格式"
   529            schema:
   530              $ref: "#/definitions/SSHKey"
   531    /v5/repos/{owner}/{repo}/keys/available:
   532      get:
   533        tags:
   534        - "Repositories"
   535        summary: "获取仓库可部署的公钥"
   536        description: "获取仓库可部署的公钥"
   537        operationId: "getV5ReposOwnerRepoKeysAvailable"
   538        consumes:
   539        - "application/json"
   540        - "multipart/form-data"
   541        produces:
   542        - "application/json"
   543        parameters:
   544        - name: "access_token"
   545          in: "query"
   546          description: "用户授权码"
   547          required: false
   548          type: "string"
   549          x-exportParamName: "AccessToken"
   550          x-optionalDataType: "String"
   551        - name: "owner"
   552          in: "path"
   553          description: "仓库所属空间地址(企业、组织或个人的地址path)"
   554          required: true
   555          type: "string"
   556          x-exportParamName: "Owner"
   557        - name: "repo"
   558          in: "path"
   559          description: "仓库路径(path)"
   560          required: true
   561          type: "string"
   562          x-exportParamName: "Repo"
   563        - name: "page"
   564          in: "query"
   565          description: "当前的页码"
   566          required: false
   567          type: "integer"
   568          default: 1
   569          format: "int32"
   570          x-exportParamName: "Page"
   571          x-optionalDataType: "Int32"
   572        - name: "per_page"
   573          in: "query"
   574          description: "每页的数量,最大为 100"
   575          required: false
   576          type: "integer"
   577          default: 20
   578          format: "int32"
   579          x-exportParamName: "PerPage"
   580          x-optionalDataType: "Int32"
   581        responses:
   582          200:
   583            description: "返回格式"
   584            schema:
   585              type: "array"
   586              items:
   587                $ref: "#/definitions/SSHKeyBasic"
   588    /v5/repos/{owner}/{repo}/keys/enable/{id}:
   589      put:
   590        tags:
   591        - "Repositories"
   592        summary: "启用仓库公钥"
   593        description: "启用仓库公钥"
   594        operationId: "putV5ReposOwnerRepoKeysEnableId"
   595        consumes:
   596        - "application/json"
   597        - "multipart/form-data"
   598        produces:
   599        - "application/json"
   600        parameters:
   601        - name: "access_token"
   602          in: "formData"
   603          description: "用户授权码"
   604          required: false
   605          type: "string"
   606          x-exportParamName: "AccessToken"
   607          x-optionalDataType: "String"
   608        - name: "owner"
   609          in: "path"
   610          description: "仓库所属空间地址(企业、组织或个人的地址path)"
   611          required: true
   612          type: "string"
   613          x-exportParamName: "Owner"
   614        - name: "repo"
   615          in: "path"
   616          description: "仓库路径(path)"
   617          required: true
   618          type: "string"
   619          x-exportParamName: "Repo"
   620        - name: "id"
   621          in: "path"
   622          description: "公钥 ID"
   623          required: true
   624          type: "integer"
   625          format: "int32"
   626          x-exportParamName: "Id"
   627        responses:
   628          204:
   629            description: "已启用"
   630          403:
   631            description: "没有启用权限"
   632      delete:
   633        tags:
   634        - "Repositories"
   635        summary: "停用仓库公钥"
   636        description: "停用仓库公钥"
   637        operationId: "deleteV5ReposOwnerRepoKeysEnableId"
   638        consumes:
   639        - "application/json"
   640        - "multipart/form-data"
   641        produces:
   642        - "application/json"
   643        parameters:
   644        - name: "access_token"
   645          in: "query"
   646          description: "用户授权码"
   647          required: false
   648          type: "string"
   649          x-exportParamName: "AccessToken"
   650          x-optionalDataType: "String"
   651        - name: "owner"
   652          in: "path"
   653          description: "仓库所属空间地址(企业、组织或个人的地址path)"
   654          required: true
   655          type: "string"
   656          x-exportParamName: "Owner"
   657        - name: "repo"
   658          in: "path"
   659          description: "仓库路径(path)"
   660          required: true
   661          type: "string"
   662          x-exportParamName: "Repo"
   663        - name: "id"
   664          in: "path"
   665          description: "公钥 ID"
   666          required: true
   667          type: "integer"
   668          format: "int32"
   669          x-exportParamName: "Id"
   670        responses:
   671          204:
   672            description: "已停用"
   673          404:
   674            description: "没有相关公钥"
   675    /v5/repos/{owner}/{repo}/keys/{id}:
   676      get:
   677        tags:
   678        - "Repositories"
   679        summary: "获取仓库的单个公钥"
   680        description: "获取仓库的单个公钥"
   681        operationId: "getV5ReposOwnerRepoKeysId"
   682        consumes:
   683        - "application/json"
   684        - "multipart/form-data"
   685        produces:
   686        - "application/json"
   687        parameters:
   688        - name: "access_token"
   689          in: "query"
   690          description: "用户授权码"
   691          required: false
   692          type: "string"
   693          x-exportParamName: "AccessToken"
   694          x-optionalDataType: "String"
   695        - name: "owner"
   696          in: "path"
   697          description: "仓库所属空间地址(企业、组织或个人的地址path)"
   698          required: true
   699          type: "string"
   700          x-exportParamName: "Owner"
   701        - name: "repo"
   702          in: "path"
   703          description: "仓库路径(path)"
   704          required: true
   705          type: "string"
   706          x-exportParamName: "Repo"
   707        - name: "id"
   708          in: "path"
   709          description: "公钥 ID"
   710          required: true
   711          type: "integer"
   712          format: "int32"
   713          x-exportParamName: "Id"
   714        responses:
   715          200:
   716            description: "返回格式"
   717            schema:
   718              $ref: "#/definitions/SSHKey"
   719      delete:
   720        tags:
   721        - "Repositories"
   722        summary: "删除一个仓库公钥"
   723        description: "删除一个仓库公钥"
   724        operationId: "deleteV5ReposOwnerRepoKeysId"
   725        consumes:
   726        - "application/json"
   727        - "multipart/form-data"
   728        produces:
   729        - "application/json"
   730        parameters:
   731        - name: "access_token"
   732          in: "query"
   733          description: "用户授权码"
   734          required: false
   735          type: "string"
   736          x-exportParamName: "AccessToken"
   737          x-optionalDataType: "String"
   738        - name: "owner"
   739          in: "path"
   740          description: "仓库所属空间地址(企业、组织或个人的地址path)"
   741          required: true
   742          type: "string"
   743          x-exportParamName: "Owner"
   744        - name: "repo"
   745          in: "path"
   746          description: "仓库路径(path)"
   747          required: true
   748          type: "string"
   749          x-exportParamName: "Repo"
   750        - name: "id"
   751          in: "path"
   752          description: "公钥 ID"
   753          required: true
   754          type: "integer"
   755          format: "int32"
   756          x-exportParamName: "Id"
   757        responses:
   758          204:
   759            description: "删除一个仓库公钥"
   760    /v5/repos/{owner}/{repo}/readme:
   761      get:
   762        tags:
   763        - "Repositories"
   764        summary: "获取仓库README"
   765        description: "获取仓库README"
   766        operationId: "getV5ReposOwnerRepoReadme"
   767        consumes:
   768        - "application/json"
   769        - "multipart/form-data"
   770        produces:
   771        - "application/json"
   772        parameters:
   773        - name: "access_token"
   774          in: "query"
   775          description: "用户授权码"
   776          required: false
   777          type: "string"
   778          x-exportParamName: "AccessToken"
   779          x-optionalDataType: "String"
   780        - name: "owner"
   781          in: "path"
   782          description: "仓库所属空间地址(企业、组织或个人的地址path)"
   783          required: true
   784          type: "string"
   785          x-exportParamName: "Owner"
   786        - name: "repo"
   787          in: "path"
   788          description: "仓库路径(path)"
   789          required: true
   790          type: "string"
   791          x-exportParamName: "Repo"
   792        - name: "ref"
   793          in: "query"
   794          description: "分支、tag或commit。默认: 仓库的默认分支(通常是master)"
   795          required: false
   796          type: "string"
   797          x-exportParamName: "Ref"
   798          x-optionalDataType: "String"
   799        responses:
   800          200:
   801            description: "返回格式"
   802            schema:
   803              $ref: "#/definitions/Content"
   804    /v5/repos/{owner}/{repo}/contents/{path}:
   805      get:
   806        tags:
   807        - "Repositories"
   808        summary: "获取仓库具体路径下的内容"
   809        description: "获取仓库具体路径下的内容"
   810        operationId: "getV5ReposOwnerRepoContents(Path)"
   811        consumes:
   812        - "application/json"
   813        - "multipart/form-data"
   814        produces:
   815        - "application/json"
   816        parameters:
   817        - name: "access_token"
   818          in: "query"
   819          description: "用户授权码"
   820          required: false
   821          type: "string"
   822          x-exportParamName: "AccessToken"
   823          x-optionalDataType: "String"
   824        - name: "owner"
   825          in: "path"
   826          description: "仓库所属空间地址(企业、组织或个人的地址path)"
   827          required: true
   828          type: "string"
   829          x-exportParamName: "Owner"
   830        - name: "repo"
   831          in: "path"
   832          description: "仓库路径(path)"
   833          required: true
   834          type: "string"
   835          x-exportParamName: "Repo"
   836        - name: "path"
   837          in: "path"
   838          description: "文件的路径"
   839          required: true
   840          type: "string"
   841          x-exportParamName: "Path"
   842        - name: "ref"
   843          in: "query"
   844          description: "分支、tag或commit。默认: 仓库的默认分支(通常是master)"
   845          required: false
   846          type: "string"
   847          x-exportParamName: "Ref"
   848          x-optionalDataType: "String"
   849        responses:
   850          200:
   851            description: "返回格式"
   852            schema:
   853              $ref: "#/definitions/Content"
   854      post:
   855        tags:
   856        - "Repositories"
   857        summary: "新建文件"
   858        description: "新建文件"
   859        operationId: "postV5ReposOwnerRepoContentsPath"
   860        consumes:
   861        - "application/json"
   862        - "multipart/form-data"
   863        produces:
   864        - "application/json"
   865        parameters:
   866        - name: "owner"
   867          in: "path"
   868          description: "仓库所属空间地址(企业、组织或个人的地址path)"
   869          required: true
   870          type: "string"
   871          x-exportParamName: "Owner"
   872        - name: "repo"
   873          in: "path"
   874          description: "仓库路径(path)"
   875          required: true
   876          type: "string"
   877          x-exportParamName: "Repo"
   878        - name: "path"
   879          in: "path"
   880          description: "文件的路径"
   881          required: true
   882          type: "string"
   883          x-exportParamName: "Path"
   884        - name: "body"
   885          in: "body"
   886          description: "描述文件信息"
   887          required: true
   888          schema:
   889            $ref: "#/definitions/NewFileParam"
   890          x-exportParamName: "Body"
   891        responses:
   892          201:
   893            description: "返回格式"
   894            schema:
   895              $ref: "#/definitions/CommitContent"
   896      put:
   897        tags:
   898        - "Repositories"
   899        summary: "更新文件"
   900        description: "更新文件"
   901        operationId: "putV5ReposOwnerRepoContentsPath"
   902        consumes:
   903        - "application/json"
   904        - "multipart/form-data"
   905        produces:
   906        - "application/json"
   907        parameters:
   908        - name: "access_token"
   909          in: "formData"
   910          description: "用户授权码"
   911          required: false
   912          type: "string"
   913          x-exportParamName: "AccessToken"
   914          x-optionalDataType: "String"
   915        - name: "owner"
   916          in: "path"
   917          description: "仓库所属空间地址(企业、组织或个人的地址path)"
   918          required: true
   919          type: "string"
   920          x-exportParamName: "Owner"
   921        - name: "repo"
   922          in: "path"
   923          description: "仓库路径(path)"
   924          required: true
   925          type: "string"
   926          x-exportParamName: "Repo"
   927        - name: "path"
   928          in: "path"
   929          description: "文件的路径"
   930          required: true
   931          type: "string"
   932          x-exportParamName: "Path"
   933        - name: "content"
   934          in: "formData"
   935          description: "文件内容, 要用 base64 编码"
   936          required: true
   937          type: "string"
   938          x-exportParamName: "Content"
   939        - name: "sha"
   940          in: "formData"
   941          description: "文件的 Blob SHA,可通过 [获取仓库具体路径下的内容] API 获取"
   942          required: true
   943          type: "string"
   944          x-exportParamName: "Sha"
   945        - name: "message"
   946          in: "formData"
   947          description: "提交信息"
   948          required: true
   949          type: "string"
   950          x-exportParamName: "Message"
   951        - name: "branch"
   952          in: "formData"
   953          description: "分支名称。默认为仓库对默认分支"
   954          required: false
   955          type: "string"
   956          x-exportParamName: "Branch"
   957          x-optionalDataType: "String"
   958        - name: "committer[name]"
   959          in: "formData"
   960          description: "Committer的名字,默认为当前用户的名字"
   961          required: false
   962          type: "string"
   963          x-exportParamName: "CommitterName"
   964          x-optionalDataType: "String"
   965        - name: "committer[email]"
   966          in: "formData"
   967          description: "Committer的邮箱,默认为当前用户的邮箱"
   968          required: false
   969          type: "string"
   970          x-exportParamName: "CommitterEmail"
   971          x-optionalDataType: "String"
   972        - name: "author[name]"
   973          in: "formData"
   974          description: "Author的名字,默认为当前用户的名字"
   975          required: false
   976          type: "string"
   977          x-exportParamName: "AuthorName"
   978          x-optionalDataType: "String"
   979        - name: "author[email]"
   980          in: "formData"
   981          description: "Author的邮箱,默认为当前用户的邮箱"
   982          required: false
   983          type: "string"
   984          x-exportParamName: "AuthorEmail"
   985          x-optionalDataType: "String"
   986        responses:
   987          200:
   988            description: "返回格式"
   989            schema:
   990              $ref: "#/definitions/CommitContent"
   991      delete:
   992        tags:
   993        - "Repositories"
   994        summary: "删除文件"
   995        description: "删除文件"
   996        operationId: "deleteV5ReposOwnerRepoContentsPath"
   997        consumes:
   998        - "application/json"
   999        - "multipart/form-data"
  1000        produces:
  1001        - "application/json"
  1002        parameters:
  1003        - name: "access_token"
  1004          in: "query"
  1005          description: "用户授权码"
  1006          required: false
  1007          type: "string"
  1008          x-exportParamName: "AccessToken"
  1009          x-optionalDataType: "String"
  1010        - name: "owner"
  1011          in: "path"
  1012          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  1013          required: true
  1014          type: "string"
  1015          x-exportParamName: "Owner"
  1016        - name: "repo"
  1017          in: "path"
  1018          description: "仓库路径(path)"
  1019          required: true
  1020          type: "string"
  1021          x-exportParamName: "Repo"
  1022        - name: "path"
  1023          in: "path"
  1024          description: "文件的路径"
  1025          required: true
  1026          type: "string"
  1027          x-exportParamName: "Path"
  1028        - name: "sha"
  1029          in: "query"
  1030          description: "文件的 Blob SHA,可通过 [获取仓库具体路径下的内容] API 获取"
  1031          required: true
  1032          type: "string"
  1033          x-exportParamName: "Sha"
  1034        - name: "message"
  1035          in: "query"
  1036          description: "提交信息"
  1037          required: true
  1038          type: "string"
  1039          x-exportParamName: "Message"
  1040        - name: "branch"
  1041          in: "query"
  1042          description: "分支名称。默认为仓库对默认分支"
  1043          required: false
  1044          type: "string"
  1045          x-exportParamName: "Branch"
  1046          x-optionalDataType: "String"
  1047        - name: "committer[name]"
  1048          in: "query"
  1049          description: "Committer的名字,默认为当前用户的名字"
  1050          required: false
  1051          type: "string"
  1052          x-exportParamName: "CommitterName"
  1053          x-optionalDataType: "String"
  1054        - name: "committer[email]"
  1055          in: "query"
  1056          description: "Committer的邮箱,默认为当前用户的邮箱"
  1057          required: false
  1058          type: "string"
  1059          x-exportParamName: "CommitterEmail"
  1060          x-optionalDataType: "String"
  1061        - name: "author[name]"
  1062          in: "query"
  1063          description: "Author的名字,默认为当前用户的名字"
  1064          required: false
  1065          type: "string"
  1066          x-exportParamName: "AuthorName"
  1067          x-optionalDataType: "String"
  1068        - name: "author[email]"
  1069          in: "query"
  1070          description: "Author的邮箱,默认为当前用户的邮箱"
  1071          required: false
  1072          type: "string"
  1073          x-exportParamName: "AuthorEmail"
  1074          x-optionalDataType: "String"
  1075        responses:
  1076          200:
  1077            description: "返回格式"
  1078            schema:
  1079              $ref: "#/definitions/CommitContent"
  1080    /v5/repos/{owner}/{repo}/git/blobs/{sha}:
  1081      get:
  1082        tags:
  1083        - "Git Data"
  1084        summary: "获取文件Blob"
  1085        description: "获取文件Blob"
  1086        operationId: "getV5ReposOwnerRepoGitBlobsSha"
  1087        consumes:
  1088        - "application/json"
  1089        - "multipart/form-data"
  1090        produces:
  1091        - "application/json"
  1092        parameters:
  1093        - name: "access_token"
  1094          in: "query"
  1095          description: "用户授权码"
  1096          required: false
  1097          type: "string"
  1098          x-exportParamName: "AccessToken"
  1099          x-optionalDataType: "String"
  1100        - name: "owner"
  1101          in: "path"
  1102          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  1103          required: true
  1104          type: "string"
  1105          x-exportParamName: "Owner"
  1106        - name: "repo"
  1107          in: "path"
  1108          description: "仓库路径(path)"
  1109          required: true
  1110          type: "string"
  1111          x-exportParamName: "Repo"
  1112        - name: "sha"
  1113          in: "path"
  1114          description: "文件的 Blob SHA,可通过 [获取仓库具体路径下的内容] API 获取"
  1115          required: true
  1116          type: "string"
  1117          x-exportParamName: "Sha"
  1118        responses:
  1119          200:
  1120            description: "返回格式"
  1121            schema:
  1122              $ref: "#/definitions/Blob"
  1123          404:
  1124            description: "没有相关数据"
  1125    /v5/repos/{owner}/{repo}/git/trees/{sha}:
  1126      get:
  1127        tags:
  1128        - "Git Data"
  1129        summary: "获取目录Tree"
  1130        description: "获取目录Tree"
  1131        operationId: "getV5ReposOwnerRepoGitTreesSha"
  1132        consumes:
  1133        - "application/json"
  1134        - "multipart/form-data"
  1135        produces:
  1136        - "application/json"
  1137        parameters:
  1138        - name: "access_token"
  1139          in: "query"
  1140          description: "用户授权码"
  1141          required: false
  1142          type: "string"
  1143          x-exportParamName: "AccessToken"
  1144          x-optionalDataType: "String"
  1145        - name: "owner"
  1146          in: "path"
  1147          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  1148          required: true
  1149          type: "string"
  1150          x-exportParamName: "Owner"
  1151        - name: "repo"
  1152          in: "path"
  1153          description: "仓库路径(path)"
  1154          required: true
  1155          type: "string"
  1156          x-exportParamName: "Repo"
  1157        - name: "sha"
  1158          in: "path"
  1159          description: "可以是分支名(如master)、Commit或者目录Tree的SHA值"
  1160          required: true
  1161          type: "string"
  1162          x-exportParamName: "Sha"
  1163        - name: "recursive"
  1164          in: "query"
  1165          description: "赋值为1递归获取目录"
  1166          required: false
  1167          type: "integer"
  1168          format: "int32"
  1169          x-exportParamName: "Recursive"
  1170          x-optionalDataType: "Int32"
  1171        responses:
  1172          200:
  1173            description: "返回格式"
  1174            schema:
  1175              $ref: "#/definitions/Tree"
  1176          404:
  1177            description: "没有相关数据"
  1178          422:
  1179            description: "SHA值必须为Commit或Tree的"
  1180    /v5/repos/{owner}/{repo}/issues:
  1181      get:
  1182        tags:
  1183        - "Issues"
  1184        summary: "仓库的所有Issues"
  1185        description: "仓库的所有Issues"
  1186        operationId: "getV5ReposOwnerRepoIssues"
  1187        consumes:
  1188        - "application/json"
  1189        - "multipart/form-data"
  1190        produces:
  1191        - "application/json"
  1192        parameters:
  1193        - name: "access_token"
  1194          in: "query"
  1195          description: "用户授权码"
  1196          required: false
  1197          type: "string"
  1198          x-exportParamName: "AccessToken"
  1199          x-optionalDataType: "String"
  1200        - name: "owner"
  1201          in: "path"
  1202          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  1203          required: true
  1204          type: "string"
  1205          x-exportParamName: "Owner"
  1206        - name: "repo"
  1207          in: "path"
  1208          description: "仓库路径(path)"
  1209          required: true
  1210          type: "string"
  1211          x-exportParamName: "Repo"
  1212        - name: "state"
  1213          in: "query"
  1214          description: "Issue的状态: open(开启的), progressing(进行中), closed(关闭的), rejected(\
  1215            拒绝的)。 默认: open"
  1216          required: false
  1217          type: "string"
  1218          default: "open"
  1219          enum:
  1220          - "open"
  1221          - "progressing"
  1222          - "closed"
  1223          - "rejected"
  1224          - "all"
  1225          x-exportParamName: "State"
  1226          x-optionalDataType: "String"
  1227        - name: "labels"
  1228          in: "query"
  1229          description: "用逗号分开的标签。如: bug,performance"
  1230          required: false
  1231          type: "string"
  1232          x-exportParamName: "Labels"
  1233          x-optionalDataType: "String"
  1234        - name: "sort"
  1235          in: "query"
  1236          description: "排序依据: 创建时间(created),更新时间(updated_at)。默认: created_at"
  1237          required: false
  1238          type: "string"
  1239          default: "created"
  1240          enum:
  1241          - "created"
  1242          - "updated"
  1243          x-exportParamName: "Sort"
  1244          x-optionalDataType: "String"
  1245        - name: "direction"
  1246          in: "query"
  1247          description: "排序方式: 升序(asc),降序(desc)。默认: desc"
  1248          required: false
  1249          type: "string"
  1250          default: "desc"
  1251          enum:
  1252          - "asc"
  1253          - "desc"
  1254          x-exportParamName: "Direction"
  1255          x-optionalDataType: "String"
  1256        - name: "since"
  1257          in: "query"
  1258          description: "起始的更新时间,要求时间格式为 ISO 8601"
  1259          required: false
  1260          type: "string"
  1261          x-exportParamName: "Since"
  1262          x-optionalDataType: "String"
  1263        - name: "page"
  1264          in: "query"
  1265          description: "当前的页码"
  1266          required: false
  1267          type: "integer"
  1268          default: 1
  1269          format: "int32"
  1270          x-exportParamName: "Page"
  1271          x-optionalDataType: "Int32"
  1272        - name: "per_page"
  1273          in: "query"
  1274          description: "每页的数量,最大为 100"
  1275          required: false
  1276          type: "integer"
  1277          default: 20
  1278          format: "int32"
  1279          x-exportParamName: "PerPage"
  1280          x-optionalDataType: "Int32"
  1281        - name: "schedule"
  1282          in: "query"
  1283          description: "计划开始日期,格式:20181006T173008+80-20181007T173008+80(区间),或者 -20181007T173008+80(\
  1284            小于20181007T173008+80),或者 20181006T173008+80-(大于20181006T173008+80),要求时间格\
  1285            式为20181006T173008+80"
  1286          required: false
  1287          type: "string"
  1288          x-exportParamName: "Schedule"
  1289          x-optionalDataType: "String"
  1290        - name: "deadline"
  1291          in: "query"
  1292          description: "计划截止日期,格式同上"
  1293          required: false
  1294          type: "string"
  1295          x-exportParamName: "Deadline"
  1296          x-optionalDataType: "String"
  1297        - name: "created_at"
  1298          in: "query"
  1299          description: "任务创建时间,格式同上"
  1300          required: false
  1301          type: "string"
  1302          x-exportParamName: "CreatedAt"
  1303          x-optionalDataType: "String"
  1304        - name: "finished_at"
  1305          in: "query"
  1306          description: "任务完成时间,即任务最后一次转为已完成状态的时间点。格式同上"
  1307          required: false
  1308          type: "string"
  1309          x-exportParamName: "FinishedAt"
  1310          x-optionalDataType: "String"
  1311        - name: "milestone"
  1312          in: "query"
  1313          description: "根据里程碑标题。none为没里程碑的,*为所有带里程碑的"
  1314          required: false
  1315          type: "string"
  1316          x-exportParamName: "Milestone"
  1317          x-optionalDataType: "String"
  1318        - name: "assignee"
  1319          in: "query"
  1320          description: "用户的username。 none为没指派者, *为所有带有指派者的"
  1321          required: false
  1322          type: "string"
  1323          x-exportParamName: "Assignee"
  1324          x-optionalDataType: "String"
  1325        - name: "creator"
  1326          in: "query"
  1327          description: "创建Issues的用户username"
  1328          required: false
  1329          type: "string"
  1330          x-exportParamName: "Creator"
  1331          x-optionalDataType: "String"
  1332        - name: "program"
  1333          in: "query"
  1334          description: "所属项目名称。none为没有所属项目,*为所有带所属项目的"
  1335          required: false
  1336          type: "string"
  1337          x-exportParamName: "Program"
  1338          x-optionalDataType: "String"
  1339        responses:
  1340          200:
  1341            description: "返回格式"
  1342            schema:
  1343              type: "array"
  1344              items:
  1345                $ref: "#/definitions/Issue"
  1346    /v5/repos/{owner}/{repo}/issues/{number}:
  1347      get:
  1348        tags:
  1349        - "Issues"
  1350        summary: "仓库的某个Issue"
  1351        description: "仓库的某个Issue"
  1352        operationId: "getV5ReposOwnerRepoIssuesNumber"
  1353        consumes:
  1354        - "application/json"
  1355        - "multipart/form-data"
  1356        produces:
  1357        - "application/json"
  1358        parameters:
  1359        - name: "access_token"
  1360          in: "query"
  1361          description: "用户授权码"
  1362          required: false
  1363          type: "string"
  1364          x-exportParamName: "AccessToken"
  1365          x-optionalDataType: "String"
  1366        - name: "owner"
  1367          in: "path"
  1368          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  1369          required: true
  1370          type: "string"
  1371          x-exportParamName: "Owner"
  1372        - name: "repo"
  1373          in: "path"
  1374          description: "仓库路径(path)"
  1375          required: true
  1376          type: "string"
  1377          x-exportParamName: "Repo"
  1378        - name: "number"
  1379          in: "path"
  1380          description: "Issue 编号(区分大小写,无需添加 # 号)"
  1381          required: true
  1382          type: "string"
  1383          x-exportParamName: "Number"
  1384        responses:
  1385          200:
  1386            description: "返回格式"
  1387            schema:
  1388              $ref: "#/definitions/Issue"
  1389    /v5/repos/{owner}/issues:
  1390      post:
  1391        tags:
  1392        - "Issues"
  1393        summary: "创建Issue"
  1394        description: "创建Issue"
  1395        operationId: "postV5ReposOwnerIssues"
  1396        consumes:
  1397        - "application/json"
  1398        - "multipart/form-data"
  1399        produces:
  1400        - "application/json"
  1401        parameters:
  1402        - name: "access_token"
  1403          in: "formData"
  1404          description: "用户授权码"
  1405          required: false
  1406          type: "string"
  1407          x-exportParamName: "AccessToken"
  1408          x-optionalDataType: "String"
  1409        - name: "owner"
  1410          in: "path"
  1411          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  1412          required: true
  1413          type: "string"
  1414          x-exportParamName: "Owner"
  1415        - name: "repo"
  1416          in: "formData"
  1417          description: "仓库路径(path)"
  1418          required: false
  1419          type: "string"
  1420          x-exportParamName: "Repo"
  1421          x-optionalDataType: "String"
  1422        - name: "title"
  1423          in: "formData"
  1424          description: "Issue标题"
  1425          required: true
  1426          type: "string"
  1427          x-exportParamName: "Title"
  1428        - name: "issue_type"
  1429          in: "formData"
  1430          description: "企业自定义任务类型,非企业默认任务类型为“任务”"
  1431          required: false
  1432          type: "string"
  1433          x-exportParamName: "IssueType"
  1434          x-optionalDataType: "String"
  1435        - name: "body"
  1436          in: "formData"
  1437          description: "Issue描述"
  1438          required: false
  1439          type: "string"
  1440          x-exportParamName: "Body"
  1441          x-optionalDataType: "String"
  1442        - name: "assignee"
  1443          in: "formData"
  1444          description: "Issue负责人的username"
  1445          required: false
  1446          type: "string"
  1447          x-exportParamName: "Assignee"
  1448          x-optionalDataType: "String"
  1449        - name: "milestone"
  1450          in: "formData"
  1451          description: "里程碑序号"
  1452          required: false
  1453          type: "integer"
  1454          format: "int32"
  1455          x-exportParamName: "Milestone"
  1456          x-optionalDataType: "Int32"
  1457        - name: "labels"
  1458          in: "formData"
  1459          description: "用逗号分开的标签,名称要求长度在 2-20 之间且非特殊字符。如: bug,performance"
  1460          required: false
  1461          type: "string"
  1462          x-exportParamName: "Labels"
  1463          x-optionalDataType: "String"
  1464        - name: "program"
  1465          in: "formData"
  1466          description: "项目ID"
  1467          required: false
  1468          type: "string"
  1469          x-exportParamName: "Program"
  1470          x-optionalDataType: "String"
  1471        responses:
  1472          201:
  1473            description: "返回格式"
  1474            schema:
  1475              $ref: "#/definitions/Issue"
  1476    /v5/repos/{owner}/issues/{number}:
  1477      patch:
  1478        tags:
  1479        - "Issues"
  1480        summary: "更新Issue"
  1481        description: "更新Issue"
  1482        operationId: "patchV5ReposOwnerIssuesNumber"
  1483        consumes:
  1484        - "application/json"
  1485        - "multipart/form-data"
  1486        produces:
  1487        - "application/json"
  1488        parameters:
  1489        - name: "owner"
  1490          in: "path"
  1491          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  1492          required: true
  1493          type: "string"
  1494          x-exportParamName: "Owner"
  1495        - name: "number"
  1496          in: "path"
  1497          description: "Issue 编号(区分大小写,无需添加 # 号)"
  1498          required: true
  1499          type: "string"
  1500          x-exportParamName: "Number"
  1501        - in: "body"
  1502          name: "body"
  1503          description: "可选。Issue 内容"
  1504          required: true
  1505          schema:
  1506            $ref: "#/definitions/IssueUpdateParam"
  1507          x-exportParamName: "Body"
  1508        responses:
  1509          200:
  1510            description: "返回格式"
  1511            schema:
  1512              $ref: "#/definitions/Issue"
  1513    /v5/repos/{owner}/issues/{number}/operate_logs:
  1514      get:
  1515        tags:
  1516        - "Issues"
  1517        summary: "获取某个Issue下的操作日志"
  1518        description: "获取某个Issue下的操作日志"
  1519        operationId: "getV5ReposOwnerIssuesNumberOperateLogs"
  1520        consumes:
  1521        - "application/json"
  1522        - "multipart/form-data"
  1523        produces:
  1524        - "application/json"
  1525        parameters:
  1526        - name: "access_token"
  1527          in: "query"
  1528          description: "用户授权码"
  1529          required: false
  1530          type: "string"
  1531          x-exportParamName: "AccessToken"
  1532          x-optionalDataType: "String"
  1533        - name: "owner"
  1534          in: "path"
  1535          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  1536          required: true
  1537          type: "string"
  1538          x-exportParamName: "Owner"
  1539        - name: "repo"
  1540          in: "query"
  1541          description: "仓库路径(path)"
  1542          required: false
  1543          type: "string"
  1544          x-exportParamName: "Repo"
  1545          x-optionalDataType: "String"
  1546        - name: "number"
  1547          in: "path"
  1548          description: "Issue 编号(区分大小写,无需添加 # 号)"
  1549          required: true
  1550          type: "string"
  1551          x-exportParamName: "Number"
  1552        - name: "sort"
  1553          in: "query"
  1554          description: "按递增(asc)或递减(desc)排序,默认:递减"
  1555          required: false
  1556          type: "string"
  1557          default: "desc"
  1558          enum:
  1559          - "desc"
  1560          - "asc"
  1561          x-exportParamName: "Sort"
  1562          x-optionalDataType: "String"
  1563        responses:
  1564          200:
  1565            description: "返回格式"
  1566            schema:
  1567              type: "array"
  1568              items:
  1569                $ref: "#/definitions/OperateLog"
  1570    /v5/repos/{owner}/{repo}/labels:
  1571      get:
  1572        tags:
  1573        - "Labels"
  1574        summary: "获取仓库所有任务标签"
  1575        description: "获取仓库所有任务标签"
  1576        operationId: "getV5ReposOwnerRepoLabels"
  1577        consumes:
  1578        - "application/json"
  1579        - "multipart/form-data"
  1580        produces:
  1581        - "application/json"
  1582        parameters:
  1583        - name: "access_token"
  1584          in: "query"
  1585          description: "用户授权码"
  1586          required: false
  1587          type: "string"
  1588          x-exportParamName: "AccessToken"
  1589          x-optionalDataType: "String"
  1590        - name: "owner"
  1591          in: "path"
  1592          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  1593          required: true
  1594          type: "string"
  1595          x-exportParamName: "Owner"
  1596        - name: "repo"
  1597          in: "path"
  1598          description: "仓库路径(path)"
  1599          required: true
  1600          type: "string"
  1601          x-exportParamName: "Repo"
  1602        responses:
  1603          200:
  1604            description: "返回格式"
  1605            schema:
  1606              type: "array"
  1607              items:
  1608                $ref: "#/definitions/Label"
  1609      post:
  1610        tags:
  1611        - "Labels"
  1612        summary: "创建仓库任务标签"
  1613        description: "创建仓库任务标签"
  1614        operationId: "postV5ReposOwnerRepoLabels"
  1615        consumes:
  1616        - "application/json"
  1617        - "multipart/form-data"
  1618        produces:
  1619        - "application/json"
  1620        parameters:
  1621        - name: "owner"
  1622          in: "path"
  1623          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  1624          required: true
  1625          type: "string"
  1626          x-exportParamName: "Owner"
  1627        - name: "repo"
  1628          in: "path"
  1629          description: "仓库路径(path)"
  1630          required: true
  1631          type: "string"
  1632          x-exportParamName: "Repo"
  1633        - in: "body"
  1634          name: "body"
  1635          description: "必选,标签的内容"
  1636          required: true
  1637          schema:
  1638            $ref: "#/definitions/LabelPostParam"
  1639          x-exportParamName: "Body"
  1640        responses:
  1641          201:
  1642            description: "返回格式"
  1643            schema:
  1644              $ref: "#/definitions/Label"
  1645    /v5/repos/{owner}/{repo}/labels/{name}:
  1646      get:
  1647        tags:
  1648        - "Labels"
  1649        summary: "根据标签名称获取单个标签"
  1650        description: "根据标签名称获取单个标签"
  1651        operationId: "getV5ReposOwnerRepoLabelsName"
  1652        consumes:
  1653        - "application/json"
  1654        - "multipart/form-data"
  1655        produces:
  1656        - "application/json"
  1657        parameters:
  1658        - name: "access_token"
  1659          in: "query"
  1660          description: "用户授权码"
  1661          required: false
  1662          type: "string"
  1663          x-exportParamName: "AccessToken"
  1664          x-optionalDataType: "String"
  1665        - name: "owner"
  1666          in: "path"
  1667          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  1668          required: true
  1669          type: "string"
  1670          x-exportParamName: "Owner"
  1671        - name: "repo"
  1672          in: "path"
  1673          description: "仓库路径(path)"
  1674          required: true
  1675          type: "string"
  1676          x-exportParamName: "Repo"
  1677        - name: "name"
  1678          in: "path"
  1679          description: "标签名称"
  1680          required: true
  1681          type: "string"
  1682          x-exportParamName: "Name"
  1683        responses:
  1684          200:
  1685            description: "返回格式"
  1686            schema:
  1687              $ref: "#/definitions/Label"
  1688      delete:
  1689        tags:
  1690        - "Labels"
  1691        summary: "删除一个仓库任务标签"
  1692        description: "删除一个仓库任务标签"
  1693        operationId: "deleteV5ReposOwnerRepoLabelsName"
  1694        consumes:
  1695        - "application/json"
  1696        - "multipart/form-data"
  1697        produces:
  1698        - "application/json"
  1699        parameters:
  1700        - name: "access_token"
  1701          in: "query"
  1702          description: "用户授权码"
  1703          required: false
  1704          type: "string"
  1705          x-exportParamName: "AccessToken"
  1706          x-optionalDataType: "String"
  1707        - name: "owner"
  1708          in: "path"
  1709          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  1710          required: true
  1711          type: "string"
  1712          x-exportParamName: "Owner"
  1713        - name: "repo"
  1714          in: "path"
  1715          description: "仓库路径(path)"
  1716          required: true
  1717          type: "string"
  1718          x-exportParamName: "Repo"
  1719        - name: "name"
  1720          in: "path"
  1721          description: "标签名称"
  1722          required: true
  1723          type: "string"
  1724          x-exportParamName: "Name"
  1725        responses:
  1726          204:
  1727            description: "删除一个仓库任务标签"
  1728    /v5/repos/{owner}/{repo}/labels/{original_name}:
  1729      patch:
  1730        tags:
  1731        - "Labels"
  1732        summary: "更新一个仓库任务标签"
  1733        description: "更新一个仓库任务标签"
  1734        operationId: "patchV5ReposOwnerRepoLabelsOriginalName"
  1735        consumes:
  1736        - "application/json"
  1737        - "multipart/form-data"
  1738        produces:
  1739        - "application/json"
  1740        parameters:
  1741        - name: "access_token"
  1742          in: "formData"
  1743          description: "用户授权码"
  1744          required: false
  1745          type: "string"
  1746          x-exportParamName: "AccessToken"
  1747          x-optionalDataType: "String"
  1748        - name: "owner"
  1749          in: "path"
  1750          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  1751          required: true
  1752          type: "string"
  1753          x-exportParamName: "Owner"
  1754        - name: "repo"
  1755          in: "path"
  1756          description: "仓库路径(path)"
  1757          required: true
  1758          type: "string"
  1759          x-exportParamName: "Repo"
  1760        - name: "original_name"
  1761          in: "path"
  1762          description: "标签原有名称"
  1763          required: true
  1764          type: "string"
  1765          x-exportParamName: "OriginalName"
  1766        - name: "name"
  1767          in: "formData"
  1768          description: "标签新名称"
  1769          required: false
  1770          type: "string"
  1771          x-exportParamName: "Name"
  1772          x-optionalDataType: "String"
  1773        - name: "color"
  1774          in: "formData"
  1775          description: "标签新颜色"
  1776          required: false
  1777          type: "string"
  1778          x-exportParamName: "Color"
  1779          x-optionalDataType: "String"
  1780        responses:
  1781          200:
  1782            description: "返回格式"
  1783            schema:
  1784              $ref: "#/definitions/Label"
  1785    /v5/repos/{owner}/{repo}/issues/{number}/labels:
  1786      get:
  1787        tags:
  1788        - "Labels"
  1789        summary: "获取仓库任务的所有标签"
  1790        description: "获取仓库任务的所有标签"
  1791        operationId: "getV5ReposOwnerRepoIssuesNumberLabels"
  1792        consumes:
  1793        - "application/json"
  1794        - "multipart/form-data"
  1795        produces:
  1796        - "application/json"
  1797        parameters:
  1798        - name: "access_token"
  1799          in: "query"
  1800          description: "用户授权码"
  1801          required: false
  1802          type: "string"
  1803          x-exportParamName: "AccessToken"
  1804          x-optionalDataType: "String"
  1805        - name: "owner"
  1806          in: "path"
  1807          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  1808          required: true
  1809          type: "string"
  1810          x-exportParamName: "Owner"
  1811        - name: "repo"
  1812          in: "path"
  1813          description: "仓库路径(path)"
  1814          required: true
  1815          type: "string"
  1816          x-exportParamName: "Repo"
  1817        - name: "number"
  1818          in: "path"
  1819          description: "Issue 编号(区分大小写,无需添加 # 号)"
  1820          required: true
  1821          type: "string"
  1822          x-exportParamName: "Number"
  1823        responses:
  1824          200:
  1825            description: "返回格式"
  1826            schema:
  1827              type: "array"
  1828              items:
  1829                $ref: "#/definitions/Label"
  1830      post:
  1831        tags:
  1832        - "Labels"
  1833        summary: "创建Issue标签"
  1834        description: "创建Issue标签\n 需要在请求的body里填上数组,元素为标签的名字。如: [\"performance\", \"bug\"\
  1835          ]"
  1836        operationId: "postV5ReposOwnerRepoIssuesNumberLabels"
  1837        consumes:
  1838        - "application/json"
  1839        - "multipart/form-data"
  1840        produces:
  1841        - "application/json"
  1842        parameters:
  1843        - name: "owner"
  1844          in: "path"
  1845          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  1846          required: true
  1847          type: "string"
  1848          x-exportParamName: "Owner"
  1849        - name: "repo"
  1850          in: "path"
  1851          description: "仓库路径(path)"
  1852          required: true
  1853          type: "string"
  1854          x-exportParamName: "Repo"
  1855        - name: "number"
  1856          in: "path"
  1857          description: "Issue 编号(区分大小写,无需添加 # 号)"
  1858          required: true
  1859          type: "string"
  1860          x-exportParamName: "Number"
  1861        - in: "body"
  1862          name: "body"
  1863          description: "必选,标签的内容"
  1864          required: true
  1865          schema:
  1866            $ref: "#/definitions/PullRequestLabelPostParam"
  1867          x-exportParamName: "Body"
  1868        responses:
  1869          201:
  1870            description: "返回格式"
  1871            schema:
  1872              type: "array"
  1873              items:
  1874                $ref: "#/definitions/Label"
  1875      put:
  1876        tags:
  1877        - "Labels"
  1878        summary: "替换Issue所有标签"
  1879        description: "替换Issue所有标签\n 需要在请求的body里填上数组,元素为标签的名字。如: [\"performance\", \"\
  1880          bug\"]"
  1881        operationId: "putV5ReposOwnerRepoIssuesNumberLabels"
  1882        consumes:
  1883        - "application/json"
  1884        - "multipart/form-data"
  1885        produces:
  1886        - "application/json"
  1887        parameters:
  1888        - name: "owner"
  1889          in: "path"
  1890          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  1891          required: true
  1892          type: "string"
  1893          x-exportParamName: "Owner"
  1894        - name: "repo"
  1895          in: "path"
  1896          description: "仓库路径(path)"
  1897          required: true
  1898          type: "string"
  1899          x-exportParamName: "Repo"
  1900        - name: "number"
  1901          in: "path"
  1902          description: "Issue 编号(区分大小写,无需添加 # 号)"
  1903          required: true
  1904          type: "string"
  1905          x-exportParamName: "Number"
  1906        - in: "body"
  1907          name: "body"
  1908          description: "必选,标签的内容"
  1909          required: true
  1910          schema:
  1911            $ref: "#/definitions/PullRequestLabelPostParam"
  1912          x-exportParamName: "Body"
  1913        responses:
  1914          202:
  1915            description: "返回格式"
  1916            schema:
  1917              type: "array"
  1918              items:
  1919                $ref: "#/definitions/Label"
  1920      delete:
  1921        tags:
  1922        - "Labels"
  1923        summary: "删除Issue所有标签"
  1924        description: "删除Issue所有标签"
  1925        operationId: "deleteV5ReposOwnerRepoIssuesNumberLabels"
  1926        consumes:
  1927        - "application/json"
  1928        - "multipart/form-data"
  1929        produces:
  1930        - "application/json"
  1931        parameters:
  1932        - name: "access_token"
  1933          in: "query"
  1934          description: "用户授权码"
  1935          required: false
  1936          type: "string"
  1937          x-exportParamName: "AccessToken"
  1938          x-optionalDataType: "String"
  1939        - name: "owner"
  1940          in: "path"
  1941          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  1942          required: true
  1943          type: "string"
  1944          x-exportParamName: "Owner"
  1945        - name: "repo"
  1946          in: "path"
  1947          description: "仓库路径(path)"
  1948          required: true
  1949          type: "string"
  1950          x-exportParamName: "Repo"
  1951        - name: "number"
  1952          in: "path"
  1953          description: "Issue 编号(区分大小写,无需添加 # 号)"
  1954          required: true
  1955          type: "string"
  1956          x-exportParamName: "Number"
  1957        responses:
  1958          204:
  1959            description: "删除Issue所有标签"
  1960    /v5/repos/{owner}/{repo}/issues/{number}/labels/{name}:
  1961      delete:
  1962        tags:
  1963        - "Labels"
  1964        summary: "删除Issue标签"
  1965        description: "删除Issue标签"
  1966        operationId: "deleteV5ReposOwnerRepoIssuesNumberLabelsName"
  1967        consumes:
  1968        - "application/json"
  1969        - "multipart/form-data"
  1970        produces:
  1971        - "application/json"
  1972        parameters:
  1973        - name: "access_token"
  1974          in: "query"
  1975          description: "用户授权码"
  1976          required: false
  1977          type: "string"
  1978          x-exportParamName: "AccessToken"
  1979          x-optionalDataType: "String"
  1980        - name: "owner"
  1981          in: "path"
  1982          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  1983          required: true
  1984          type: "string"
  1985          x-exportParamName: "Owner"
  1986        - name: "repo"
  1987          in: "path"
  1988          description: "仓库路径(path)"
  1989          required: true
  1990          type: "string"
  1991          x-exportParamName: "Repo"
  1992        - name: "number"
  1993          in: "path"
  1994          description: "Issue 编号(区分大小写,无需添加 # 号)"
  1995          required: true
  1996          type: "string"
  1997          x-exportParamName: "Number"
  1998        - name: "name"
  1999          in: "path"
  2000          description: "标签名称"
  2001          required: true
  2002          type: "string"
  2003          x-exportParamName: "Name"
  2004        responses:
  2005          204:
  2006            description: "删除Issue标签"
  2007    /v5/repos/{owner}/{repo}/milestones:
  2008      get:
  2009        tags:
  2010        - "Milestones"
  2011        summary: "获取仓库所有里程碑"
  2012        description: "获取仓库所有里程碑"
  2013        operationId: "getV5ReposOwnerRepoMilestones"
  2014        consumes:
  2015        - "application/json"
  2016        - "multipart/form-data"
  2017        produces:
  2018        - "application/json"
  2019        parameters:
  2020        - name: "access_token"
  2021          in: "query"
  2022          description: "用户授权码"
  2023          required: false
  2024          type: "string"
  2025          x-exportParamName: "AccessToken"
  2026          x-optionalDataType: "String"
  2027        - name: "owner"
  2028          in: "path"
  2029          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  2030          required: true
  2031          type: "string"
  2032          x-exportParamName: "Owner"
  2033        - name: "repo"
  2034          in: "path"
  2035          description: "仓库路径(path)"
  2036          required: true
  2037          type: "string"
  2038          x-exportParamName: "Repo"
  2039        - name: "state"
  2040          in: "query"
  2041          description: "里程碑状态: open, closed, all。默认: open"
  2042          required: false
  2043          type: "string"
  2044          default: "open"
  2045          enum:
  2046          - "open"
  2047          - "closed"
  2048          - "all"
  2049          x-exportParamName: "State"
  2050          x-optionalDataType: "String"
  2051        - name: "sort"
  2052          in: "query"
  2053          description: "排序方式: due_on"
  2054          required: false
  2055          type: "string"
  2056          default: "due_on"
  2057          enum:
  2058          - "due_on"
  2059          x-exportParamName: "Sort"
  2060          x-optionalDataType: "String"
  2061        - name: "direction"
  2062          in: "query"
  2063          description: "升序(asc)或是降序(desc)。默认: asc"
  2064          required: false
  2065          type: "string"
  2066          x-exportParamName: "Direction"
  2067          x-optionalDataType: "String"
  2068        - name: "page"
  2069          in: "query"
  2070          description: "当前的页码"
  2071          required: false
  2072          type: "integer"
  2073          default: 1
  2074          format: "int32"
  2075          x-exportParamName: "Page"
  2076          x-optionalDataType: "Int32"
  2077        - name: "per_page"
  2078          in: "query"
  2079          description: "每页的数量,最大为 100"
  2080          required: false
  2081          type: "integer"
  2082          default: 20
  2083          format: "int32"
  2084          x-exportParamName: "PerPage"
  2085          x-optionalDataType: "Int32"
  2086        responses:
  2087          200:
  2088            description: "返回格式"
  2089            schema:
  2090              type: "array"
  2091              items:
  2092                $ref: "#/definitions/Milestone"
  2093      post:
  2094        tags:
  2095        - "Milestones"
  2096        summary: "创建仓库里程碑"
  2097        description: "创建仓库里程碑"
  2098        operationId: "postV5ReposOwnerRepoMilestones"
  2099        consumes:
  2100        - "application/json"
  2101        - "multipart/form-data"
  2102        produces:
  2103        - "application/json"
  2104        parameters:
  2105        - name: "access_token"
  2106          in: "formData"
  2107          description: "用户授权码"
  2108          required: false
  2109          type: "string"
  2110          x-exportParamName: "AccessToken"
  2111          x-optionalDataType: "String"
  2112        - name: "owner"
  2113          in: "path"
  2114          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  2115          required: true
  2116          type: "string"
  2117          x-exportParamName: "Owner"
  2118        - name: "repo"
  2119          in: "path"
  2120          description: "仓库路径(path)"
  2121          required: true
  2122          type: "string"
  2123          x-exportParamName: "Repo"
  2124        - name: "title"
  2125          in: "formData"
  2126          description: "里程碑标题"
  2127          required: true
  2128          type: "string"
  2129          x-exportParamName: "Title"
  2130        - name: "state"
  2131          in: "formData"
  2132          description: "里程碑状态: open, closed, all。默认: open"
  2133          required: false
  2134          type: "string"
  2135          default: "open"
  2136          enum:
  2137          - "open"
  2138          - "closed"
  2139          - "all"
  2140          x-exportParamName: "State"
  2141          x-optionalDataType: "String"
  2142        - name: "description"
  2143          in: "formData"
  2144          description: "里程碑具体描述"
  2145          required: false
  2146          type: "string"
  2147          x-exportParamName: "Description"
  2148          x-optionalDataType: "String"
  2149        - name: "due_on"
  2150          in: "formData"
  2151          description: "里程碑的截止日期"
  2152          required: true
  2153          type: "string"
  2154          x-exportParamName: "DueOn"
  2155        responses:
  2156          201:
  2157            description: "返回格式"
  2158            schema:
  2159              $ref: "#/definitions/Milestone"
  2160    /v5/repos/{owner}/{repo}/milestones/{number}:
  2161      get:
  2162        tags:
  2163        - "Milestones"
  2164        summary: "获取仓库单个里程碑"
  2165        description: "获取仓库单个里程碑"
  2166        operationId: "getV5ReposOwnerRepoMilestonesNumber"
  2167        consumes:
  2168        - "application/json"
  2169        - "multipart/form-data"
  2170        produces:
  2171        - "application/json"
  2172        parameters:
  2173        - name: "access_token"
  2174          in: "query"
  2175          description: "用户授权码"
  2176          required: false
  2177          type: "string"
  2178          x-exportParamName: "AccessToken"
  2179          x-optionalDataType: "String"
  2180        - name: "owner"
  2181          in: "path"
  2182          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  2183          required: true
  2184          type: "string"
  2185          x-exportParamName: "Owner"
  2186        - name: "repo"
  2187          in: "path"
  2188          description: "仓库路径(path)"
  2189          required: true
  2190          type: "string"
  2191          x-exportParamName: "Repo"
  2192        - name: "number"
  2193          in: "path"
  2194          description: "里程碑序号(id)"
  2195          required: true
  2196          type: "integer"
  2197          format: "int32"
  2198          x-exportParamName: "Number"
  2199        responses:
  2200          200:
  2201            description: "返回格式"
  2202            schema:
  2203              $ref: "#/definitions/Milestone"
  2204      delete:
  2205        tags:
  2206        - "Milestones"
  2207        summary: "删除仓库单个里程碑"
  2208        description: "删除仓库单个里程碑"
  2209        operationId: "deleteV5ReposOwnerRepoMilestonesNumber"
  2210        consumes:
  2211        - "application/json"
  2212        - "multipart/form-data"
  2213        produces:
  2214        - "application/json"
  2215        parameters:
  2216        - name: "access_token"
  2217          in: "query"
  2218          description: "用户授权码"
  2219          required: false
  2220          type: "string"
  2221          x-exportParamName: "AccessToken"
  2222          x-optionalDataType: "String"
  2223        - name: "owner"
  2224          in: "path"
  2225          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  2226          required: true
  2227          type: "string"
  2228          x-exportParamName: "Owner"
  2229        - name: "repo"
  2230          in: "path"
  2231          description: "仓库路径(path)"
  2232          required: true
  2233          type: "string"
  2234          x-exportParamName: "Repo"
  2235        - name: "number"
  2236          in: "path"
  2237          description: "里程碑序号(id)"
  2238          required: true
  2239          type: "integer"
  2240          format: "int32"
  2241          x-exportParamName: "Number"
  2242        responses:
  2243          204:
  2244            description: "删除仓库单个里程碑"
  2245      patch:
  2246        tags:
  2247        - "Milestones"
  2248        summary: "更新仓库里程碑"
  2249        description: "更新仓库里程碑"
  2250        operationId: "patchV5ReposOwnerRepoMilestonesNumber"
  2251        consumes:
  2252        - "application/json"
  2253        - "multipart/form-data"
  2254        produces:
  2255        - "application/json"
  2256        parameters:
  2257        - name: "access_token"
  2258          in: "formData"
  2259          description: "用户授权码"
  2260          required: false
  2261          type: "string"
  2262          x-exportParamName: "AccessToken"
  2263          x-optionalDataType: "String"
  2264        - name: "owner"
  2265          in: "path"
  2266          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  2267          required: true
  2268          type: "string"
  2269          x-exportParamName: "Owner"
  2270        - name: "repo"
  2271          in: "path"
  2272          description: "仓库路径(path)"
  2273          required: true
  2274          type: "string"
  2275          x-exportParamName: "Repo"
  2276        - name: "number"
  2277          in: "path"
  2278          description: "里程碑序号(id)"
  2279          required: true
  2280          type: "integer"
  2281          format: "int32"
  2282          x-exportParamName: "Number"
  2283        - name: "title"
  2284          in: "formData"
  2285          description: "里程碑标题"
  2286          required: true
  2287          type: "string"
  2288          x-exportParamName: "Title"
  2289        - name: "state"
  2290          in: "formData"
  2291          description: "里程碑状态: open, closed, all。默认: open"
  2292          required: false
  2293          type: "string"
  2294          default: "open"
  2295          enum:
  2296          - "open"
  2297          - "closed"
  2298          - "all"
  2299          x-exportParamName: "State"
  2300          x-optionalDataType: "String"
  2301        - name: "description"
  2302          in: "formData"
  2303          description: "里程碑具体描述"
  2304          required: false
  2305          type: "string"
  2306          x-exportParamName: "Description"
  2307          x-optionalDataType: "String"
  2308        - name: "due_on"
  2309          in: "formData"
  2310          description: "里程碑的截止日期"
  2311          required: true
  2312          type: "string"
  2313          x-exportParamName: "DueOn"
  2314        responses:
  2315          200:
  2316            description: "返回格式"
  2317            schema:
  2318              $ref: "#/definitions/Milestone"
  2319    /v5/repos/{owner}/{repo}/license:
  2320      get:
  2321        tags:
  2322        - "Miscellaneous"
  2323        summary: "获取一个仓库使用的开源许可协议"
  2324        description: "获取一个仓库使用的开源许可协议"
  2325        operationId: "getV5ReposOwnerRepoLicense"
  2326        consumes:
  2327        - "application/json"
  2328        - "multipart/form-data"
  2329        produces:
  2330        - "application/json"
  2331        parameters:
  2332        - name: "access_token"
  2333          in: "query"
  2334          description: "用户授权码"
  2335          required: false
  2336          type: "string"
  2337          x-exportParamName: "AccessToken"
  2338          x-optionalDataType: "String"
  2339        - name: "owner"
  2340          in: "path"
  2341          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  2342          required: true
  2343          type: "string"
  2344          x-exportParamName: "Owner"
  2345        - name: "repo"
  2346          in: "path"
  2347          description: "仓库路径(path)"
  2348          required: true
  2349          type: "string"
  2350          x-exportParamName: "Repo"
  2351        responses:
  2352          200:
  2353            description: "获取一个仓库使用的开源许可协议"
  2354          404:
  2355            description: "没有相关数据"
  2356    /v5/repos/{owner}/{repo}/comments:
  2357      get:
  2358        tags:
  2359        - "Repositories"
  2360        summary: "获取仓库的Commit评论"
  2361        description: "获取仓库的Commit评论"
  2362        operationId: "getV5ReposOwnerRepoComments"
  2363        consumes:
  2364        - "application/json"
  2365        - "multipart/form-data"
  2366        produces:
  2367        - "application/json"
  2368        parameters:
  2369        - name: "access_token"
  2370          in: "query"
  2371          description: "用户授权码"
  2372          required: false
  2373          type: "string"
  2374          x-exportParamName: "AccessToken"
  2375          x-optionalDataType: "String"
  2376        - name: "owner"
  2377          in: "path"
  2378          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  2379          required: true
  2380          type: "string"
  2381          x-exportParamName: "Owner"
  2382        - name: "repo"
  2383          in: "path"
  2384          description: "仓库路径(path)"
  2385          required: true
  2386          type: "string"
  2387          x-exportParamName: "Repo"
  2388        - name: "page"
  2389          in: "query"
  2390          description: "当前的页码"
  2391          required: false
  2392          type: "integer"
  2393          default: 1
  2394          format: "int32"
  2395          x-exportParamName: "Page"
  2396          x-optionalDataType: "Int32"
  2397        - name: "per_page"
  2398          in: "query"
  2399          description: "每页的数量,最大为 100"
  2400          required: false
  2401          type: "integer"
  2402          default: 20
  2403          format: "int32"
  2404          x-exportParamName: "PerPage"
  2405          x-optionalDataType: "Int32"
  2406        responses:
  2407          200:
  2408            description: "返回格式"
  2409            schema:
  2410              $ref: "#/definitions/Note"
  2411    /v5/repos/{owner}/{repo}/commits/{ref}/comments:
  2412      get:
  2413        tags:
  2414        - "Repositories"
  2415        summary: "获取单个Commit的评论"
  2416        description: "获取单个Commit的评论"
  2417        operationId: "getV5ReposOwnerRepoCommitsRefComments"
  2418        consumes:
  2419        - "application/json"
  2420        - "multipart/form-data"
  2421        produces:
  2422        - "application/json"
  2423        parameters:
  2424        - name: "access_token"
  2425          in: "query"
  2426          description: "用户授权码"
  2427          required: false
  2428          type: "string"
  2429          x-exportParamName: "AccessToken"
  2430          x-optionalDataType: "String"
  2431        - name: "owner"
  2432          in: "path"
  2433          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  2434          required: true
  2435          type: "string"
  2436          x-exportParamName: "Owner"
  2437        - name: "repo"
  2438          in: "path"
  2439          description: "仓库路径(path)"
  2440          required: true
  2441          type: "string"
  2442          x-exportParamName: "Repo"
  2443        - name: "ref"
  2444          in: "path"
  2445          description: "Commit的Reference"
  2446          required: true
  2447          type: "string"
  2448          x-exportParamName: "Ref"
  2449        - name: "page"
  2450          in: "query"
  2451          description: "当前的页码"
  2452          required: false
  2453          type: "integer"
  2454          default: 1
  2455          format: "int32"
  2456          x-exportParamName: "Page"
  2457          x-optionalDataType: "Int32"
  2458        - name: "per_page"
  2459          in: "query"
  2460          description: "每页的数量,最大为 100"
  2461          required: false
  2462          type: "integer"
  2463          default: 20
  2464          format: "int32"
  2465          x-exportParamName: "PerPage"
  2466          x-optionalDataType: "Int32"
  2467        responses:
  2468          200:
  2469            description: "返回格式"
  2470            schema:
  2471              $ref: "#/definitions/Note"
  2472          404:
  2473            description: "没有相关数据"
  2474    /v5/repos/{owner}/{repo}/comments/{id}:
  2475      get:
  2476        tags:
  2477        - "Repositories"
  2478        summary: "获取仓库的某条Commit评论"
  2479        description: "获取仓库的某条Commit评论"
  2480        operationId: "getV5ReposOwnerRepoCommentsId"
  2481        consumes:
  2482        - "application/json"
  2483        - "multipart/form-data"
  2484        produces:
  2485        - "application/json"
  2486        parameters:
  2487        - name: "access_token"
  2488          in: "query"
  2489          description: "用户授权码"
  2490          required: false
  2491          type: "string"
  2492          x-exportParamName: "AccessToken"
  2493          x-optionalDataType: "String"
  2494        - name: "owner"
  2495          in: "path"
  2496          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  2497          required: true
  2498          type: "string"
  2499          x-exportParamName: "Owner"
  2500        - name: "repo"
  2501          in: "path"
  2502          description: "仓库路径(path)"
  2503          required: true
  2504          type: "string"
  2505          x-exportParamName: "Repo"
  2506        - name: "id"
  2507          in: "path"
  2508          description: "评论的ID"
  2509          required: true
  2510          type: "integer"
  2511          format: "int32"
  2512          x-exportParamName: "Id"
  2513        responses:
  2514          200:
  2515            description: "返回格式"
  2516            schema:
  2517              $ref: "#/definitions/Note"
  2518          404:
  2519            description: "没有相关数据"
  2520      delete:
  2521        tags:
  2522        - "Repositories"
  2523        summary: "删除Commit评论"
  2524        description: "删除Commit评论"
  2525        operationId: "deleteV5ReposOwnerRepoCommentsId"
  2526        consumes:
  2527        - "application/json"
  2528        - "multipart/form-data"
  2529        produces:
  2530        - "application/json"
  2531        parameters:
  2532        - name: "access_token"
  2533          in: "query"
  2534          description: "用户授权码"
  2535          required: false
  2536          type: "string"
  2537          x-exportParamName: "AccessToken"
  2538          x-optionalDataType: "String"
  2539        - name: "owner"
  2540          in: "path"
  2541          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  2542          required: true
  2543          type: "string"
  2544          x-exportParamName: "Owner"
  2545        - name: "repo"
  2546          in: "path"
  2547          description: "仓库路径(path)"
  2548          required: true
  2549          type: "string"
  2550          x-exportParamName: "Repo"
  2551        - name: "id"
  2552          in: "path"
  2553          description: "评论的ID"
  2554          required: true
  2555          type: "integer"
  2556          format: "int32"
  2557          x-exportParamName: "Id"
  2558        responses:
  2559          204:
  2560            description: "删除Commit评论"
  2561      patch:
  2562        tags:
  2563        - "Repositories"
  2564        summary: "更新Commit评论"
  2565        description: "更新Commit评论"
  2566        operationId: "patchV5ReposOwnerRepoCommentsId"
  2567        consumes:
  2568        - "application/json"
  2569        - "multipart/form-data"
  2570        produces:
  2571        - "application/json"
  2572        parameters:
  2573        - name: "access_token"
  2574          in: "formData"
  2575          description: "用户授权码"
  2576          required: false
  2577          type: "string"
  2578          x-exportParamName: "AccessToken"
  2579          x-optionalDataType: "String"
  2580        - name: "owner"
  2581          in: "path"
  2582          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  2583          required: true
  2584          type: "string"
  2585          x-exportParamName: "Owner"
  2586        - name: "repo"
  2587          in: "path"
  2588          description: "仓库路径(path)"
  2589          required: true
  2590          type: "string"
  2591          x-exportParamName: "Repo"
  2592        - name: "id"
  2593          in: "path"
  2594          description: "评论的ID"
  2595          required: true
  2596          type: "integer"
  2597          format: "int32"
  2598          x-exportParamName: "Id"
  2599        - name: "body"
  2600          in: "formData"
  2601          description: "评论的内容"
  2602          required: true
  2603          type: "string"
  2604          x-exportParamName: "Body"
  2605        responses:
  2606          200:
  2607            description: "返回格式"
  2608            schema:
  2609              $ref: "#/definitions/Note"
  2610          404:
  2611            description: "没有相关数据"
  2612    /v5/repos/{owner}/{repo}/commits/{sha}/comments:
  2613      post:
  2614        tags:
  2615        - "Repositories"
  2616        summary: "创建Commit评论"
  2617        description: "创建Commit评论"
  2618        operationId: "postV5ReposOwnerRepoCommitsShaComments"
  2619        consumes:
  2620        - "application/json"
  2621        - "multipart/form-data"
  2622        produces:
  2623        - "application/json"
  2624        parameters:
  2625        - name: "access_token"
  2626          in: "formData"
  2627          description: "用户授权码"
  2628          required: false
  2629          type: "string"
  2630          x-exportParamName: "AccessToken"
  2631          x-optionalDataType: "String"
  2632        - name: "owner"
  2633          in: "path"
  2634          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  2635          required: true
  2636          type: "string"
  2637          x-exportParamName: "Owner"
  2638        - name: "repo"
  2639          in: "path"
  2640          description: "仓库路径(path)"
  2641          required: true
  2642          type: "string"
  2643          x-exportParamName: "Repo"
  2644        - name: "sha"
  2645          in: "path"
  2646          description: "评论的sha值"
  2647          required: true
  2648          type: "string"
  2649          x-exportParamName: "Sha"
  2650        - name: "body"
  2651          in: "formData"
  2652          description: "评论的内容"
  2653          required: true
  2654          type: "string"
  2655          x-exportParamName: "Body"
  2656        - name: "path"
  2657          in: "formData"
  2658          description: "文件的相对路径"
  2659          required: false
  2660          type: "string"
  2661          x-exportParamName: "Path"
  2662          x-optionalDataType: "String"
  2663        - name: "position"
  2664          in: "formData"
  2665          description: "Diff的相对行数"
  2666          required: false
  2667          type: "integer"
  2668          format: "int32"
  2669          x-exportParamName: "Position"
  2670          x-optionalDataType: "Int32"
  2671        responses:
  2672          201:
  2673            description: "返回格式"
  2674            schema:
  2675              $ref: "#/definitions/Note"
  2676          404:
  2677            description: "没有相关数据"
  2678    /v5/repos/{owner}/{repo}/issues/comments:
  2679      get:
  2680        tags:
  2681        - "Issues"
  2682        summary: "获取仓库所有Issue的评论"
  2683        description: "获取仓库所有Issue的评论"
  2684        operationId: "getV5ReposOwnerRepoIssuesComments"
  2685        consumes:
  2686        - "application/json"
  2687        - "multipart/form-data"
  2688        produces:
  2689        - "application/json"
  2690        parameters:
  2691        - name: "access_token"
  2692          in: "query"
  2693          description: "用户授权码"
  2694          required: false
  2695          type: "string"
  2696          x-exportParamName: "AccessToken"
  2697          x-optionalDataType: "String"
  2698        - name: "owner"
  2699          in: "path"
  2700          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  2701          required: true
  2702          type: "string"
  2703          x-exportParamName: "Owner"
  2704        - name: "repo"
  2705          in: "path"
  2706          description: "仓库路径(path)"
  2707          required: true
  2708          type: "string"
  2709          x-exportParamName: "Repo"
  2710        - name: "sort"
  2711          in: "query"
  2712          description: "Either created or updated. Default: created"
  2713          required: false
  2714          type: "string"
  2715          default: "created"
  2716          enum:
  2717          - "created"
  2718          - "updated"
  2719          x-exportParamName: "Sort"
  2720          x-optionalDataType: "String"
  2721        - name: "direction"
  2722          in: "query"
  2723          description: "Either asc or desc. Ignored without the sort parameter."
  2724          required: false
  2725          type: "string"
  2726          default: "asc"
  2727          enum:
  2728          - "asc"
  2729          - "desc"
  2730          x-exportParamName: "Direction"
  2731          x-optionalDataType: "String"
  2732        - name: "since"
  2733          in: "query"
  2734          description: "Only comments updated at or after this time are returned.\n\
  2735            \                                              This is a timestamp in ISO\
  2736            \ 8601 format: YYYY-MM-DDTHH:MM:SSZ"
  2737          required: false
  2738          type: "string"
  2739          x-exportParamName: "Since"
  2740          x-optionalDataType: "String"
  2741        - name: "page"
  2742          in: "query"
  2743          description: "当前的页码"
  2744          required: false
  2745          type: "integer"
  2746          default: 1
  2747          format: "int32"
  2748          x-exportParamName: "Page"
  2749          x-optionalDataType: "Int32"
  2750        - name: "per_page"
  2751          in: "query"
  2752          description: "每页的数量,最大为 100"
  2753          required: false
  2754          type: "integer"
  2755          default: 20
  2756          format: "int32"
  2757          x-exportParamName: "PerPage"
  2758          x-optionalDataType: "Int32"
  2759        responses:
  2760          200:
  2761            description: "返回格式"
  2762            schema:
  2763              $ref: "#/definitions/Note"
  2764    /v5/repos/{owner}/{repo}/issues/{number}/comments:
  2765      get:
  2766        tags:
  2767        - "Issues"
  2768        summary: "获取仓库某个Issue所有的评论"
  2769        description: "获取仓库某个Issue所有的评论"
  2770        operationId: "getV5ReposOwnerRepoIssuesNumberComments"
  2771        consumes:
  2772        - "application/json"
  2773        - "multipart/form-data"
  2774        produces:
  2775        - "application/json"
  2776        parameters:
  2777        - name: "access_token"
  2778          in: "query"
  2779          description: "用户授权码"
  2780          required: false
  2781          type: "string"
  2782          x-exportParamName: "AccessToken"
  2783          x-optionalDataType: "String"
  2784        - name: "owner"
  2785          in: "path"
  2786          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  2787          required: true
  2788          type: "string"
  2789          x-exportParamName: "Owner"
  2790        - name: "repo"
  2791          in: "path"
  2792          description: "仓库路径(path)"
  2793          required: true
  2794          type: "string"
  2795          x-exportParamName: "Repo"
  2796        - name: "number"
  2797          in: "path"
  2798          description: "Issue 编号(区分大小写,无需添加 # 号)"
  2799          required: true
  2800          type: "string"
  2801          x-exportParamName: "Number"
  2802        - name: "since"
  2803          in: "query"
  2804          description: "Only comments updated at or after this time are returned.\n\
  2805            \                                              This is a timestamp in ISO\
  2806            \ 8601 format: YYYY-MM-DDTHH:MM:SSZ"
  2807          required: false
  2808          type: "string"
  2809          x-exportParamName: "Since"
  2810          x-optionalDataType: "String"
  2811        - name: "page"
  2812          in: "query"
  2813          description: "当前的页码"
  2814          required: false
  2815          type: "integer"
  2816          default: 1
  2817          format: "int32"
  2818          x-exportParamName: "Page"
  2819          x-optionalDataType: "Int32"
  2820        - name: "per_page"
  2821          in: "query"
  2822          description: "每页的数量,最大为 100"
  2823          required: false
  2824          type: "integer"
  2825          default: 20
  2826          format: "int32"
  2827          x-exportParamName: "PerPage"
  2828          x-optionalDataType: "Int32"
  2829        responses:
  2830          200:
  2831            description: "返回格式"
  2832            schema:
  2833              type: "array"
  2834              items:
  2835                $ref: "#/definitions/Note"
  2836          404:
  2837            description: "没有相关数据"
  2838      post:
  2839        tags:
  2840        - "Issues"
  2841        summary: "创建某个Issue评论"
  2842        description: "创建某个Issue评论"
  2843        operationId: "postV5ReposOwnerRepoIssuesNumberComments"
  2844        consumes:
  2845        - "application/json"
  2846        - "multipart/form-data"
  2847        produces:
  2848        - "application/json"
  2849        parameters:
  2850        - name: "owner"
  2851          in: "path"
  2852          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  2853          required: true
  2854          type: "string"
  2855          x-exportParamName: "Owner"
  2856        - name: "repo"
  2857          in: "path"
  2858          description: "仓库路径(path)"
  2859          required: true
  2860          type: "string"
  2861          x-exportParamName: "Repo"
  2862        - name: "number"
  2863          in: "path"
  2864          description: "Issue 编号(区分大小写,无需添加 # 号)"
  2865          required: true
  2866          type: "string"
  2867          x-exportParamName: "Number"
  2868        - in: "body"
  2869          name: "body"
  2870          description: "Issue comment内容"
  2871          required: true
  2872          schema:
  2873            $ref: "#/definitions/IssueCommentPostParam"
  2874          x-exportParamName: "Body"
  2875        responses:
  2876          201:
  2877            description: "返回格式"
  2878            schema:
  2879              $ref: "#/definitions/Note"
  2880    /v5/repos/{owner}/{repo}/issues/comments/{id}:
  2881      get:
  2882        tags:
  2883        - "Issues"
  2884        summary: "获取仓库Issue某条评论"
  2885        description: "获取仓库Issue某条评论"
  2886        operationId: "getV5ReposOwnerRepoIssuesCommentsId"
  2887        consumes:
  2888        - "application/json"
  2889        - "multipart/form-data"
  2890        produces:
  2891        - "application/json"
  2892        parameters:
  2893        - name: "access_token"
  2894          in: "query"
  2895          description: "用户授权码"
  2896          required: false
  2897          type: "string"
  2898          x-exportParamName: "AccessToken"
  2899          x-optionalDataType: "String"
  2900        - name: "owner"
  2901          in: "path"
  2902          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  2903          required: true
  2904          type: "string"
  2905          x-exportParamName: "Owner"
  2906        - name: "repo"
  2907          in: "path"
  2908          description: "仓库路径(path)"
  2909          required: true
  2910          type: "string"
  2911          x-exportParamName: "Repo"
  2912        - name: "id"
  2913          in: "path"
  2914          description: "评论的ID"
  2915          required: true
  2916          type: "integer"
  2917          format: "int32"
  2918          x-exportParamName: "Id"
  2919        responses:
  2920          200:
  2921            description: "返回格式"
  2922            schema:
  2923              $ref: "#/definitions/Note"
  2924          404:
  2925            description: "没有相关数据"
  2926      delete:
  2927        tags:
  2928        - "Issues"
  2929        summary: "删除Issue某条评论"
  2930        description: "删除Issue某条评论"
  2931        operationId: "deleteV5ReposOwnerRepoIssuesCommentsId"
  2932        consumes:
  2933        - "application/json"
  2934        - "multipart/form-data"
  2935        produces:
  2936        - "application/json"
  2937        parameters:
  2938        - name: "access_token"
  2939          in: "query"
  2940          description: "用户授权码"
  2941          required: false
  2942          type: "string"
  2943          x-exportParamName: "AccessToken"
  2944          x-optionalDataType: "String"
  2945        - name: "owner"
  2946          in: "path"
  2947          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  2948          required: true
  2949          type: "string"
  2950          x-exportParamName: "Owner"
  2951        - name: "repo"
  2952          in: "path"
  2953          description: "仓库路径(path)"
  2954          required: true
  2955          type: "string"
  2956          x-exportParamName: "Repo"
  2957        - name: "id"
  2958          in: "path"
  2959          description: "评论的ID"
  2960          required: true
  2961          type: "integer"
  2962          format: "int32"
  2963          x-exportParamName: "Id"
  2964        responses:
  2965          204:
  2966            description: "删除Issue某条评论"
  2967      patch:
  2968        tags:
  2969        - "Issues"
  2970        summary: "更新Issue某条评论"
  2971        description: "更新Issue某条评论"
  2972        operationId: "patchV5ReposOwnerRepoIssuesCommentsId"
  2973        consumes:
  2974        - "application/json"
  2975        - "multipart/form-data"
  2976        produces:
  2977        - "application/json"
  2978        parameters:
  2979        - name: "owner"
  2980          in: "path"
  2981          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  2982          required: true
  2983          type: "string"
  2984          x-exportParamName: "Owner"
  2985        - name: "repo"
  2986          in: "path"
  2987          description: "仓库路径(path)"
  2988          required: true
  2989          type: "string"
  2990          x-exportParamName: "Repo"
  2991        - name: "id"
  2992          in: "path"
  2993          description: "评论的ID"
  2994          required: true
  2995          type: "integer"
  2996          format: "int32"
  2997          x-exportParamName: "Id"
  2998        - name: "body"
  2999          in: "body"
  3000          description: "必填。评论内容"
  3001          required: true
  3002          schema:
  3003            $ref: "#/definitions/IssueCommentPatchParam"
  3004          x-exportParamName: "Body"
  3005        responses:
  3006          200:
  3007            description: "返回格式"
  3008            schema:
  3009              $ref: "#/definitions/Note"
  3010    /v5/repos/{owner}/{repo}/pages:
  3011      get:
  3012        tags:
  3013        - "Repositories"
  3014        summary: "获取Pages信息"
  3015        description: "获取Pages信息"
  3016        operationId: "getV5ReposOwnerRepoPages"
  3017        consumes:
  3018        - "application/json"
  3019        - "multipart/form-data"
  3020        produces:
  3021        - "application/json"
  3022        parameters:
  3023        - name: "access_token"
  3024          in: "query"
  3025          description: "用户授权码"
  3026          required: false
  3027          type: "string"
  3028          x-exportParamName: "AccessToken"
  3029          x-optionalDataType: "String"
  3030        - name: "owner"
  3031          in: "path"
  3032          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  3033          required: true
  3034          type: "string"
  3035          x-exportParamName: "Owner"
  3036        - name: "repo"
  3037          in: "path"
  3038          description: "仓库路径(path)"
  3039          required: true
  3040          type: "string"
  3041          x-exportParamName: "Repo"
  3042        responses:
  3043          200:
  3044            description: "获取Pages信息"
  3045    /v5/repos/{owner}/{repo}/pages/builds:
  3046      post:
  3047        tags:
  3048        - "Repositories"
  3049        summary: "请求建立Pages"
  3050        description: "请求建立Pages"
  3051        operationId: "postV5ReposOwnerRepoPagesBuilds"
  3052        consumes:
  3053        - "application/json"
  3054        - "multipart/form-data"
  3055        produces:
  3056        - "application/json"
  3057        parameters:
  3058        - name: "access_token"
  3059          in: "formData"
  3060          description: "用户授权码"
  3061          required: false
  3062          type: "string"
  3063          x-exportParamName: "AccessToken"
  3064          x-optionalDataType: "String"
  3065        - name: "owner"
  3066          in: "path"
  3067          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  3068          required: true
  3069          type: "string"
  3070          x-exportParamName: "Owner"
  3071        - name: "repo"
  3072          in: "path"
  3073          description: "仓库路径(path)"
  3074          required: true
  3075          type: "string"
  3076          x-exportParamName: "Repo"
  3077        responses:
  3078          201:
  3079            description: "请求建立Pages"
  3080    /v5/repos/{owner}/{repo}:
  3081      get:
  3082        tags:
  3083        - "Repositories"
  3084        summary: "获取用户的某个仓库"
  3085        description: "获取用户的某个仓库"
  3086        operationId: "getV5ReposOwnerRepo"
  3087        consumes:
  3088        - "application/json"
  3089        - "multipart/form-data"
  3090        produces:
  3091        - "application/json"
  3092        parameters:
  3093        - name: "access_token"
  3094          in: "query"
  3095          description: "用户授权码"
  3096          required: false
  3097          type: "string"
  3098          x-exportParamName: "AccessToken"
  3099          x-optionalDataType: "String"
  3100        - name: "owner"
  3101          in: "path"
  3102          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  3103          required: true
  3104          type: "string"
  3105          x-exportParamName: "Owner"
  3106        - name: "repo"
  3107          in: "path"
  3108          description: "仓库路径(path)"
  3109          required: true
  3110          type: "string"
  3111          x-exportParamName: "Repo"
  3112        responses:
  3113          200:
  3114            description: "返回格式"
  3115            schema:
  3116              $ref: "#/definitions/Project"
  3117      delete:
  3118        tags:
  3119        - "Repositories"
  3120        summary: "删除一个仓库"
  3121        description: "删除一个仓库"
  3122        operationId: "deleteV5ReposOwnerRepo"
  3123        consumes:
  3124        - "application/json"
  3125        - "multipart/form-data"
  3126        produces:
  3127        - "application/json"
  3128        parameters:
  3129        - name: "access_token"
  3130          in: "query"
  3131          description: "用户授权码"
  3132          required: false
  3133          type: "string"
  3134          x-exportParamName: "AccessToken"
  3135          x-optionalDataType: "String"
  3136        - name: "owner"
  3137          in: "path"
  3138          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  3139          required: true
  3140          type: "string"
  3141          x-exportParamName: "Owner"
  3142        - name: "repo"
  3143          in: "path"
  3144          description: "仓库路径(path)"
  3145          required: true
  3146          type: "string"
  3147          x-exportParamName: "Repo"
  3148        responses:
  3149          204:
  3150            description: "删除一个仓库"
  3151      patch:
  3152        tags:
  3153        - "Repositories"
  3154        summary: "更新仓库设置"
  3155        description: "更新仓库设置"
  3156        operationId: "patchV5ReposOwnerRepo"
  3157        consumes:
  3158        - "application/json"
  3159        - "multipart/form-data"
  3160        produces:
  3161        - "application/json"
  3162        parameters:
  3163        - name: "owner"
  3164          in: "path"
  3165          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  3166          required: true
  3167          type: "string"
  3168          x-exportParamName: "Owner"
  3169        - name: "repo"
  3170          in: "path"
  3171          description: "仓库路径(path)"
  3172          required: true
  3173          type: "string"
  3174          x-exportParamName: "Repo"
  3175        - in: "body"
  3176          name: "body"
  3177          description: "repo patch param"
  3178          required: true
  3179          schema:
  3180            $ref: "#/definitions/RepoPatchParam"
  3181          x-exportParamName: "Body"
  3182        responses:
  3183          200:
  3184            description: "返回格式"
  3185            schema:
  3186              $ref: "#/definitions/Project"
  3187    /v5/repos/{owner}/{repo}/reviewer:
  3188      put:
  3189        tags:
  3190        - "Repositories"
  3191        summary: "修改代码审查设置"
  3192        description: "修改代码审查设置"
  3193        operationId: "putV5ReposOwnerRepoReviewer"
  3194        consumes:
  3195        - "application/json"
  3196        - "multipart/form-data"
  3197        produces:
  3198        - "application/json"
  3199        parameters:
  3200        - name: "owner"
  3201          in: "path"
  3202          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  3203          required: true
  3204          type: "string"
  3205          x-exportParamName: "Owner"
  3206        - name: "repo"
  3207          in: "path"
  3208          description: "仓库路径(path)"
  3209          required: true
  3210          type: "string"
  3211          x-exportParamName: "Repo"
  3212        - name: "body"
  3213          in: "body"
  3214          description: "修改代码审查的信息"
  3215          required: true
  3216          schema:
  3217            $ref: "#/definitions/SetRepoReviewer"
  3218          x-exportParamName: "Body"
  3219        responses:
  3220          200:
  3221            description: "设置审查成功"
  3222    /v5/repos/{owner}/{repo}/contributors:
  3223      get:
  3224        tags:
  3225        - "Repositories"
  3226        summary: "获取仓库贡献者"
  3227        description: "获取仓库贡献者"
  3228        operationId: "getV5ReposOwnerRepoContributors"
  3229        consumes:
  3230        - "application/json"
  3231        - "multipart/form-data"
  3232        produces:
  3233        - "application/json"
  3234        parameters:
  3235        - name: "access_token"
  3236          in: "query"
  3237          description: "用户授权码"
  3238          required: false
  3239          type: "string"
  3240          x-exportParamName: "AccessToken"
  3241          x-optionalDataType: "String"
  3242        - name: "owner"
  3243          in: "path"
  3244          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  3245          required: true
  3246          type: "string"
  3247          x-exportParamName: "Owner"
  3248        - name: "repo"
  3249          in: "path"
  3250          description: "仓库路径(path)"
  3251          required: true
  3252          type: "string"
  3253          x-exportParamName: "Repo"
  3254        responses:
  3255          200:
  3256            description: "返回格式"
  3257            schema:
  3258              $ref: "#/definitions/Contributor"
  3259    /v5/repos/{owner}/{repo}/tags:
  3260      get:
  3261        tags:
  3262        - "Repositories"
  3263        summary: "列出仓库所有的tags"
  3264        description: "列出仓库所有的tags"
  3265        operationId: "getV5ReposOwnerRepoTags"
  3266        consumes:
  3267        - "application/json"
  3268        - "multipart/form-data"
  3269        produces:
  3270        - "application/json"
  3271        parameters:
  3272        - name: "access_token"
  3273          in: "query"
  3274          description: "用户授权码"
  3275          required: false
  3276          type: "string"
  3277          x-exportParamName: "AccessToken"
  3278          x-optionalDataType: "String"
  3279        - name: "owner"
  3280          in: "path"
  3281          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  3282          required: true
  3283          type: "string"
  3284          x-exportParamName: "Owner"
  3285        - name: "repo"
  3286          in: "path"
  3287          description: "仓库路径(path)"
  3288          required: true
  3289          type: "string"
  3290          x-exportParamName: "Repo"
  3291        responses:
  3292          200:
  3293            description: "返回格式"
  3294            schema:
  3295              $ref: "#/definitions/Tag"
  3296    /v5/repos/{owner}/{repo}/clear:
  3297      put:
  3298        tags:
  3299        - "Repositories"
  3300        summary: "清空一个仓库"
  3301        description: "清空一个仓库"
  3302        operationId: "putV5ReposOwnerRepoClear"
  3303        consumes:
  3304        - "application/json"
  3305        - "multipart/form-data"
  3306        produces:
  3307        - "application/json"
  3308        parameters:
  3309        - name: "access_token"
  3310          in: "formData"
  3311          description: "用户授权码"
  3312          required: false
  3313          type: "string"
  3314          x-exportParamName: "AccessToken"
  3315          x-optionalDataType: "String"
  3316        - name: "owner"
  3317          in: "path"
  3318          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  3319          required: true
  3320          type: "string"
  3321          x-exportParamName: "Owner"
  3322        - name: "repo"
  3323          in: "path"
  3324          description: "仓库路径(path)"
  3325          required: true
  3326          type: "string"
  3327          x-exportParamName: "Repo"
  3328        responses:
  3329          204:
  3330            description: "清空仓库成功"
  3331    /v5/repos/{owner}/{repo}/collaborators:
  3332      get:
  3333        tags:
  3334        - "Repositories"
  3335        summary: "获取仓库的所有成员"
  3336        description: "获取仓库的所有成员"
  3337        operationId: "getV5ReposOwnerRepoCollaborators"
  3338        consumes:
  3339        - "application/json"
  3340        - "multipart/form-data"
  3341        produces:
  3342        - "application/json"
  3343        parameters:
  3344        - name: "access_token"
  3345          in: "query"
  3346          description: "用户授权码"
  3347          required: false
  3348          type: "string"
  3349          x-exportParamName: "AccessToken"
  3350          x-optionalDataType: "String"
  3351        - name: "owner"
  3352          in: "path"
  3353          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  3354          required: true
  3355          type: "string"
  3356          x-exportParamName: "Owner"
  3357        - name: "repo"
  3358          in: "path"
  3359          description: "仓库路径(path)"
  3360          required: true
  3361          type: "string"
  3362          x-exportParamName: "Repo"
  3363        - name: "page"
  3364          in: "query"
  3365          description: "当前的页码"
  3366          required: false
  3367          type: "integer"
  3368          default: 1
  3369          format: "int32"
  3370          x-exportParamName: "Page"
  3371          x-optionalDataType: "Int32"
  3372        - name: "per_page"
  3373          in: "query"
  3374          description: "每页的数量,最大为 100"
  3375          required: false
  3376          type: "integer"
  3377          default: 20
  3378          format: "int32"
  3379          x-exportParamName: "PerPage"
  3380          x-optionalDataType: "Int32"
  3381        responses:
  3382          200:
  3383            description: "返回格式"
  3384            schema:
  3385              type: "array"
  3386              items:
  3387                $ref: "#/definitions/ProjectMember"
  3388    /v5/repos/{owner}/{repo}/collaborators/{username}:
  3389      get:
  3390        tags:
  3391        - "Repositories"
  3392        summary: "判断用户是否为仓库成员"
  3393        description: "判断用户是否为仓库成员"
  3394        operationId: "getV5ReposOwnerRepoCollaboratorsUsername"
  3395        consumes:
  3396        - "application/json"
  3397        - "multipart/form-data"
  3398        produces:
  3399        - "application/json"
  3400        parameters:
  3401        - name: "access_token"
  3402          in: "query"
  3403          description: "用户授权码"
  3404          required: false
  3405          type: "string"
  3406          x-exportParamName: "AccessToken"
  3407          x-optionalDataType: "String"
  3408        - name: "owner"
  3409          in: "path"
  3410          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  3411          required: true
  3412          type: "string"
  3413          x-exportParamName: "Owner"
  3414        - name: "repo"
  3415          in: "path"
  3416          description: "仓库路径(path)"
  3417          required: true
  3418          type: "string"
  3419          x-exportParamName: "Repo"
  3420        - name: "username"
  3421          in: "path"
  3422          description: "用户名(username/login)"
  3423          required: true
  3424          type: "string"
  3425          x-exportParamName: "Username"
  3426        responses:
  3427          204:
  3428            description: "用户为仓库成员"
  3429      put:
  3430        tags:
  3431        - "Repositories"
  3432        summary: "添加仓库成员"
  3433        description: "添加仓库成员"
  3434        operationId: "putV5ReposOwnerRepoCollaboratorsUsername"
  3435        consumes:
  3436        - "application/json"
  3437        - "multipart/form-data"
  3438        produces:
  3439        - "application/json"
  3440        parameters:
  3441        - name: "owner"
  3442          in: "path"
  3443          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  3444          required: true
  3445          type: "string"
  3446          x-exportParamName: "Owner"
  3447        - name: "repo"
  3448          in: "path"
  3449          description: "仓库路径(path)"
  3450          required: true
  3451          type: "string"
  3452          x-exportParamName: "Repo"
  3453        - name: "username"
  3454          in: "path"
  3455          description: "用户名(username/login)"
  3456          required: true
  3457          type: "string"
  3458          x-exportParamName: "Username"
  3459        - in: "body"
  3460          name: "body"
  3461          description: "仓库成员内容"
  3462          required: true
  3463          schema:
  3464            $ref: "#/definitions/ProjectMemberPutParam"
  3465          x-exportParamName: "Body"
  3466        responses:
  3467          200:
  3468            description: "返回格式"
  3469            schema:
  3470              $ref: "#/definitions/ProjectMember"
  3471      delete:
  3472        tags:
  3473        - "Repositories"
  3474        summary: "移除仓库成员"
  3475        description: "移除仓库成员"
  3476        operationId: "deleteV5ReposOwnerRepoCollaboratorsUsername"
  3477        consumes:
  3478        - "application/json"
  3479        - "multipart/form-data"
  3480        produces:
  3481        - "application/json"
  3482        parameters:
  3483        - name: "access_token"
  3484          in: "query"
  3485          description: "用户授权码"
  3486          required: false
  3487          type: "string"
  3488          x-exportParamName: "AccessToken"
  3489          x-optionalDataType: "String"
  3490        - name: "owner"
  3491          in: "path"
  3492          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  3493          required: true
  3494          type: "string"
  3495          x-exportParamName: "Owner"
  3496        - name: "repo"
  3497          in: "path"
  3498          description: "仓库路径(path)"
  3499          required: true
  3500          type: "string"
  3501          x-exportParamName: "Repo"
  3502        - name: "username"
  3503          in: "path"
  3504          description: "用户名(username/login)"
  3505          required: true
  3506          type: "string"
  3507          x-exportParamName: "Username"
  3508        responses:
  3509          204:
  3510            description: "移除仓库成员"
  3511    /v5/repos/{owner}/{repo}/collaborators/{username}/permission:
  3512      get:
  3513        tags:
  3514        - "Repositories"
  3515        summary: "查看仓库成员的权限"
  3516        description: "查看仓库成员的权限"
  3517        operationId: "getV5ReposOwnerRepoCollaboratorsUsernamePermission"
  3518        consumes:
  3519        - "application/json"
  3520        - "multipart/form-data"
  3521        produces:
  3522        - "application/json"
  3523        parameters:
  3524        - name: "access_token"
  3525          in: "query"
  3526          description: "用户授权码"
  3527          required: false
  3528          type: "string"
  3529          x-exportParamName: "AccessToken"
  3530          x-optionalDataType: "String"
  3531        - name: "owner"
  3532          in: "path"
  3533          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  3534          required: true
  3535          type: "string"
  3536          x-exportParamName: "Owner"
  3537        - name: "repo"
  3538          in: "path"
  3539          description: "仓库路径(path)"
  3540          required: true
  3541          type: "string"
  3542          x-exportParamName: "Repo"
  3543        - name: "username"
  3544          in: "path"
  3545          description: "用户名(username/login)"
  3546          required: true
  3547          type: "string"
  3548          x-exportParamName: "Username"
  3549        responses:
  3550          200:
  3551            description: "返回格式"
  3552            schema:
  3553              $ref: "#/definitions/ProjectMemberPermission"
  3554    /v5/repos/{owner}/{repo}/forks:
  3555      get:
  3556        tags:
  3557        - "Repositories"
  3558        summary: "查看仓库的Forks"
  3559        description: "查看仓库的Forks"
  3560        operationId: "getV5ReposOwnerRepoForks"
  3561        consumes:
  3562        - "application/json"
  3563        - "multipart/form-data"
  3564        produces:
  3565        - "application/json"
  3566        parameters:
  3567        - name: "access_token"
  3568          in: "query"
  3569          description: "用户授权码"
  3570          required: false
  3571          type: "string"
  3572          x-exportParamName: "AccessToken"
  3573          x-optionalDataType: "String"
  3574        - name: "owner"
  3575          in: "path"
  3576          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  3577          required: true
  3578          type: "string"
  3579          x-exportParamName: "Owner"
  3580        - name: "repo"
  3581          in: "path"
  3582          description: "仓库路径(path)"
  3583          required: true
  3584          type: "string"
  3585          x-exportParamName: "Repo"
  3586        - name: "sort"
  3587          in: "query"
  3588          description: "排序方式: fork的时间(newest, oldest),star的人数(stargazers)"
  3589          required: false
  3590          type: "string"
  3591          default: "newest"
  3592          enum:
  3593          - "newest"
  3594          - "oldest"
  3595          - "stargazers"
  3596          x-exportParamName: "Sort"
  3597          x-optionalDataType: "String"
  3598        - name: "page"
  3599          in: "query"
  3600          description: "当前的页码"
  3601          required: false
  3602          type: "integer"
  3603          default: 1
  3604          format: "int32"
  3605          x-exportParamName: "Page"
  3606          x-optionalDataType: "Int32"
  3607        - name: "per_page"
  3608          in: "query"
  3609          description: "每页的数量,最大为 100"
  3610          required: false
  3611          type: "integer"
  3612          default: 20
  3613          format: "int32"
  3614          x-exportParamName: "PerPage"
  3615          x-optionalDataType: "Int32"
  3616        responses:
  3617          200:
  3618            description: "返回格式"
  3619            schema:
  3620              $ref: "#/definitions/Project"
  3621          403:
  3622            description: "没有权限"
  3623          404:
  3624            description: "没有相关数据"
  3625      post:
  3626        tags:
  3627        - "Repositories"
  3628        summary: "Fork一个仓库"
  3629        description: "Fork一个仓库"
  3630        operationId: "postV5ReposOwnerRepoForks"
  3631        consumes:
  3632        - "application/json"
  3633        - "multipart/form-data"
  3634        produces:
  3635        - "application/json"
  3636        parameters:
  3637        - name: "access_token"
  3638          in: "formData"
  3639          description: "用户授权码"
  3640          required: false
  3641          type: "string"
  3642          x-exportParamName: "AccessToken"
  3643          x-optionalDataType: "String"
  3644        - name: "owner"
  3645          in: "path"
  3646          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  3647          required: true
  3648          type: "string"
  3649          x-exportParamName: "Owner"
  3650        - name: "repo"
  3651          in: "path"
  3652          description: "仓库路径(path)"
  3653          required: true
  3654          type: "string"
  3655          x-exportParamName: "Repo"
  3656        - name: "organization"
  3657          in: "formData"
  3658          description: "组织空间地址,不填写默认Fork到用户个人空间地址"
  3659          required: false
  3660          type: "string"
  3661          x-exportParamName: "Organization"
  3662          x-optionalDataType: "String"
  3663        responses:
  3664          201:
  3665            description: "返回格式"
  3666            schema:
  3667              $ref: "#/definitions/Project"
  3668    /v5/repos/{owner}/{repo}/pulls:
  3669      get:
  3670        tags:
  3671        - "Pull Requests"
  3672        summary: "获取Pull Request列表"
  3673        description: "获取Pull Request列表"
  3674        operationId: "getV5ReposOwnerRepoPulls"
  3675        consumes:
  3676        - "application/json"
  3677        - "multipart/form-data"
  3678        produces:
  3679        - "application/json"
  3680        parameters:
  3681        - name: "access_token"
  3682          in: "query"
  3683          description: "用户授权码"
  3684          required: false
  3685          type: "string"
  3686          x-exportParamName: "AccessToken"
  3687          x-optionalDataType: "String"
  3688        - name: "owner"
  3689          in: "path"
  3690          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  3691          required: true
  3692          type: "string"
  3693          x-exportParamName: "Owner"
  3694        - name: "repo"
  3695          in: "path"
  3696          description: "仓库路径(path)"
  3697          required: true
  3698          type: "string"
  3699          x-exportParamName: "Repo"
  3700        - name: "state"
  3701          in: "query"
  3702          description: "可选。Pull Request 状态"
  3703          required: false
  3704          type: "string"
  3705          default: "open"
  3706          enum:
  3707          - "open"
  3708          - "closed"
  3709          - "merged"
  3710          - "all"
  3711          x-exportParamName: "State"
  3712          x-optionalDataType: "String"
  3713        - name: "head"
  3714          in: "query"
  3715          description: "可选。Pull Request 提交的源分支。格式:branch 或者:username:branch"
  3716          required: false
  3717          type: "string"
  3718          x-exportParamName: "Head"
  3719          x-optionalDataType: "String"
  3720        - name: "base"
  3721          in: "query"
  3722          description: "可选。Pull Request 提交目标分支的名称。"
  3723          required: false
  3724          type: "string"
  3725          x-exportParamName: "Base"
  3726          x-optionalDataType: "String"
  3727        - name: "sort"
  3728          in: "query"
  3729          description: "可选。排序字段,默认按创建时间"
  3730          required: false
  3731          type: "string"
  3732          default: "created"
  3733          enum:
  3734          - "created"
  3735          - "updated"
  3736          - "popularity"
  3737          - "long-running"
  3738          x-exportParamName: "Sort"
  3739          x-optionalDataType: "String"
  3740        - name: "direction"
  3741          in: "query"
  3742          description: "可选。升序/降序"
  3743          required: false
  3744          type: "string"
  3745          default: "desc"
  3746          enum:
  3747          - "asc"
  3748          - "desc"
  3749          x-exportParamName: "Direction"
  3750          x-optionalDataType: "String"
  3751        - name: "milestone_number"
  3752          in: "query"
  3753          description: "可选。里程碑序号(id)"
  3754          required: false
  3755          type: "integer"
  3756          format: "int32"
  3757          x-exportParamName: "MilestoneNumber"
  3758          x-optionalDataType: "Int32"
  3759        - name: "labels"
  3760          in: "query"
  3761          description: "用逗号分开的标签。如: bug,performance"
  3762          required: false
  3763          type: "string"
  3764          x-exportParamName: "Labels"
  3765          x-optionalDataType: "String"
  3766        - name: "page"
  3767          in: "query"
  3768          description: "当前的页码"
  3769          required: false
  3770          type: "integer"
  3771          default: 1
  3772          format: "int32"
  3773          x-exportParamName: "Page"
  3774          x-optionalDataType: "Int32"
  3775        - name: "per_page"
  3776          in: "query"
  3777          description: "每页的数量,最大为 100"
  3778          required: false
  3779          type: "integer"
  3780          default: 20
  3781          format: "int32"
  3782          x-exportParamName: "PerPage"
  3783          x-optionalDataType: "Int32"
  3784        responses:
  3785          200:
  3786            description: "返回格式"
  3787            schema:
  3788              type: "array"
  3789              items:
  3790                $ref: "#/definitions/PullRequest"
  3791      post:
  3792        tags:
  3793        - "Pull Requests"
  3794        summary: "创建Pull Request"
  3795        description: "创建Pull Request"
  3796        operationId: "postV5ReposOwnerRepoPulls"
  3797        consumes:
  3798        - "application/json"
  3799        - "multipart/form-data"
  3800        produces:
  3801        - "application/json"
  3802        parameters:
  3803        - name: "owner"
  3804          in: "path"
  3805          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  3806          required: true
  3807          type: "string"
  3808          x-exportParamName: "Owner"
  3809        - name: "repo"
  3810          in: "path"
  3811          description: "仓库路径(path)"
  3812          required: true
  3813          type: "string"
  3814          x-exportParamName: "Repo"
  3815        - name: "body"
  3816          in: "body"
  3817          description: "pr的信息"
  3818          required: true
  3819          schema:
  3820            $ref: "#/definitions/CreatePullRequestParam"
  3821        responses:
  3822          201:
  3823            description: "返回格式"
  3824            schema:
  3825              $ref: "#/definitions/PullRequest"
  3826    /v5/repos/{owner}/{repo}/pulls/comments:
  3827      get:
  3828        tags:
  3829        - "Pull Requests"
  3830        summary: "获取该仓库下的所有Pull Request评论"
  3831        description: "获取该仓库下的所有Pull Request评论"
  3832        operationId: "getV5ReposOwnerRepoPullsComments"
  3833        consumes:
  3834        - "application/json"
  3835        - "multipart/form-data"
  3836        produces:
  3837        - "application/json"
  3838        parameters:
  3839        - name: "access_token"
  3840          in: "query"
  3841          description: "用户授权码"
  3842          required: false
  3843          type: "string"
  3844          x-exportParamName: "AccessToken"
  3845          x-optionalDataType: "String"
  3846        - name: "owner"
  3847          in: "path"
  3848          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  3849          required: true
  3850          type: "string"
  3851          x-exportParamName: "Owner"
  3852        - name: "repo"
  3853          in: "path"
  3854          description: "仓库路径(path)"
  3855          required: true
  3856          type: "string"
  3857          x-exportParamName: "Repo"
  3858        - name: "sort"
  3859          in: "query"
  3860          description: "可选。按创建时间/更新时间排序"
  3861          required: false
  3862          type: "string"
  3863          default: "created"
  3864          enum:
  3865          - "created"
  3866          - "updated"
  3867          x-exportParamName: "Sort"
  3868          x-optionalDataType: "String"
  3869        - name: "direction"
  3870          in: "query"
  3871          description: "可选。升序/降序"
  3872          required: false
  3873          type: "string"
  3874          default: "desc"
  3875          enum:
  3876          - "asc"
  3877          - "desc"
  3878          x-exportParamName: "Direction"
  3879          x-optionalDataType: "String"
  3880        - name: "since"
  3881          in: "query"
  3882          description: "起始的更新时间,要求时间格式为 ISO 8601"
  3883          required: false
  3884          type: "string"
  3885          x-exportParamName: "Since"
  3886          x-optionalDataType: "String"
  3887        - name: "page"
  3888          in: "query"
  3889          description: "当前的页码"
  3890          required: false
  3891          type: "integer"
  3892          default: 1
  3893          format: "int32"
  3894          x-exportParamName: "Page"
  3895          x-optionalDataType: "Int32"
  3896        - name: "per_page"
  3897          in: "query"
  3898          description: "每页的数量,最大为 100"
  3899          required: false
  3900          type: "integer"
  3901          default: 20
  3902          format: "int32"
  3903          x-exportParamName: "PerPage"
  3904          x-optionalDataType: "Int32"
  3905        responses:
  3906          200:
  3907            description: "返回格式"
  3908            schema:
  3909              type: "array"
  3910              items:
  3911                $ref: "#/definitions/PullRequestComments"
  3912    /v5/repos/{owner}/{repo}/pulls/{number}:
  3913      get:
  3914        tags:
  3915        - "Pull Requests"
  3916        summary: "获取单个Pull Request"
  3917        description: "获取单个Pull Request"
  3918        operationId: "getV5ReposOwnerRepoPullsNumber"
  3919        consumes:
  3920        - "application/json"
  3921        - "multipart/form-data"
  3922        produces:
  3923        - "application/json"
  3924        parameters:
  3925        - name: "access_token"
  3926          in: "query"
  3927          description: "用户授权码"
  3928          required: false
  3929          type: "string"
  3930          x-exportParamName: "AccessToken"
  3931          x-optionalDataType: "String"
  3932        - name: "owner"
  3933          in: "path"
  3934          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  3935          required: true
  3936          type: "string"
  3937          x-exportParamName: "Owner"
  3938        - name: "repo"
  3939          in: "path"
  3940          description: "仓库路径(path)"
  3941          required: true
  3942          type: "string"
  3943          x-exportParamName: "Repo"
  3944        - name: "number"
  3945          in: "path"
  3946          description: "第几个PR,即本仓库PR的序数"
  3947          required: true
  3948          type: "integer"
  3949          format: "int32"
  3950          x-exportParamName: "Number"
  3951        responses:
  3952          200:
  3953            description: "返回格式"
  3954            schema:
  3955              $ref: "#/definitions/PullRequest"
  3956      patch:
  3957        tags:
  3958        - "Pull Requests"
  3959        summary: "更新Pull Request信息"
  3960        description: "更新Pull Request信息"
  3961        operationId: "patchV5ReposOwnerRepoPullsNumber"
  3962        consumes:
  3963        - "application/json"
  3964        - "multipart/form-data"
  3965        produces:
  3966        - "application/json"
  3967        parameters:
  3968        - name: "owner"
  3969          in: "path"
  3970          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  3971          required: true
  3972          type: "string"
  3973          x-exportParamName: "Owner"
  3974        - name: "repo"
  3975          in: "path"
  3976          description: "仓库路径(path)"
  3977          required: true
  3978          type: "string"
  3979          x-exportParamName: "Repo"
  3980        - name: "number"
  3981          in: "path"
  3982          description: "第几个PR,即本仓库PR的序数"
  3983          required: true
  3984          type: "integer"
  3985          format: "int32"
  3986          x-exportParamName: "Number"
  3987        - in: "body"
  3988          name: "body"
  3989          description: "可选。Pull Request 内容"
  3990          required: true
  3991          schema:
  3992            $ref: "#/definitions/PullRequestUpdateParam"
  3993          x-exportParamName: "Body"
  3994        responses:
  3995          200:
  3996            description: "返回格式"
  3997            schema:
  3998              $ref: "#/definitions/PullRequest"
  3999    /v5/repos/{owner}/{repo}/pulls/{number}/operate_logs:
  4000      get:
  4001        tags:
  4002        - "Pull Requests"
  4003        summary: "获取某个Pull Request的操作日志"
  4004        description: "获取某个Pull Request的操作日志"
  4005        operationId: "getV5ReposOwnerRepoPullsNumberOperateLogs"
  4006        consumes:
  4007        - "application/json"
  4008        - "multipart/form-data"
  4009        produces:
  4010        - "application/json"
  4011        parameters:
  4012        - name: "access_token"
  4013          in: "query"
  4014          description: "用户授权码"
  4015          required: false
  4016          type: "string"
  4017          x-exportParamName: "AccessToken"
  4018          x-optionalDataType: "String"
  4019        - name: "owner"
  4020          in: "path"
  4021          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  4022          required: true
  4023          type: "string"
  4024          x-exportParamName: "Owner"
  4025        - name: "repo"
  4026          in: "path"
  4027          description: "仓库路径(path)"
  4028          required: true
  4029          type: "string"
  4030          x-exportParamName: "Repo"
  4031        - name: "number"
  4032          in: "path"
  4033          description: "第几个PR,即本仓库PR的序数"
  4034          required: true
  4035          type: "integer"
  4036          format: "int32"
  4037          x-exportParamName: "Number"
  4038        - name: "sort"
  4039          in: "query"
  4040          description: "按递增(asc)或递减(desc)排序,默认:递减"
  4041          required: false
  4042          type: "string"
  4043          default: "desc"
  4044          enum:
  4045          - "desc"
  4046          - "asc"
  4047          x-exportParamName: "Sort"
  4048          x-optionalDataType: "String"
  4049        responses:
  4050          200:
  4051            description: "返回格式"
  4052            schema:
  4053              type: "array"
  4054              items:
  4055                $ref: "#/definitions/OperateLog"
  4056  
  4057    /v5/repos/{owner}/{repo}/pulls/{number}/commits:
  4058      get:
  4059        tags:
  4060        - "Pull Requests"
  4061        summary: "获取某Pull Request的所有Commit信息。最多显示250条Commit"
  4062        description: "获取某Pull Request的所有Commit信息。最多显示250条Commit"
  4063        operationId: "getV5ReposOwnerRepoPullsNumberCommits"
  4064        consumes:
  4065        - "application/json"
  4066        - "multipart/form-data"
  4067        produces:
  4068        - "application/json"
  4069        parameters:
  4070        - name: "access_token"
  4071          in: "query"
  4072          description: "用户授权码"
  4073          required: false
  4074          type: "string"
  4075          x-exportParamName: "AccessToken"
  4076          x-optionalDataType: "String"
  4077        - name: "owner"
  4078          in: "path"
  4079          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  4080          required: true
  4081          type: "string"
  4082          x-exportParamName: "Owner"
  4083        - name: "repo"
  4084          in: "path"
  4085          description: "仓库路径(path)"
  4086          required: true
  4087          type: "string"
  4088          x-exportParamName: "Repo"
  4089        - name: "number"
  4090          in: "path"
  4091          description: "第几个PR,即本仓库PR的序数"
  4092          required: true
  4093          type: "integer"
  4094          format: "int32"
  4095          x-exportParamName: "Number"
  4096        responses:
  4097          200:
  4098            description: "返回格式"
  4099            schema:
  4100              type: "array"
  4101              items:
  4102                $ref: "#/definitions/PullRequestCommits"
  4103    /v5/repos/{owner}/{repo}/pulls/{number}/files:
  4104      get:
  4105        tags:
  4106        - "Pull Requests"
  4107        summary: "Pull Request Commit文件列表。最多显示300条diff"
  4108        description: "Pull Request Commit文件列表。最多显示300条diff"
  4109        operationId: "getV5ReposOwnerRepoPullsNumberFiles"
  4110        consumes:
  4111        - "application/json"
  4112        - "multipart/form-data"
  4113        produces:
  4114        - "application/json"
  4115        parameters:
  4116        - name: "access_token"
  4117          in: "query"
  4118          description: "用户授权码"
  4119          required: false
  4120          type: "string"
  4121          x-exportParamName: "AccessToken"
  4122          x-optionalDataType: "String"
  4123        - name: "owner"
  4124          in: "path"
  4125          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  4126          required: true
  4127          type: "string"
  4128          x-exportParamName: "Owner"
  4129        - name: "repo"
  4130          in: "path"
  4131          description: "仓库路径(path)"
  4132          required: true
  4133          type: "string"
  4134          x-exportParamName: "Repo"
  4135        - name: "number"
  4136          in: "path"
  4137          description: "第几个PR,即本仓库PR的序数"
  4138          required: true
  4139          type: "integer"
  4140          format: "int32"
  4141          x-exportParamName: "Number"
  4142        responses:
  4143          200:
  4144            description: "返回格式"
  4145            schema:
  4146              type: "array"
  4147              items:
  4148                $ref: "#/definitions/PullRequestFiles"
  4149    /v5/repos/{owner}/{repo}/pulls/{number}/merge:
  4150      get:
  4151        tags:
  4152        - "Pull Requests"
  4153        summary: "判断Pull Request是否已经合并"
  4154        description: "判断Pull Request是否已经合并"
  4155        operationId: "getV5ReposOwnerRepoPullsNumberMerge"
  4156        consumes:
  4157        - "application/json"
  4158        - "multipart/form-data"
  4159        produces:
  4160        - "application/json"
  4161        parameters:
  4162        - name: "access_token"
  4163          in: "query"
  4164          description: "用户授权码"
  4165          required: false
  4166          type: "string"
  4167          x-exportParamName: "AccessToken"
  4168          x-optionalDataType: "String"
  4169        - name: "owner"
  4170          in: "path"
  4171          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  4172          required: true
  4173          type: "string"
  4174          x-exportParamName: "Owner"
  4175        - name: "repo"
  4176          in: "path"
  4177          description: "仓库路径(path)"
  4178          required: true
  4179          type: "string"
  4180          x-exportParamName: "Repo"
  4181        - name: "number"
  4182          in: "path"
  4183          description: "第几个PR,即本仓库PR的序数"
  4184          required: true
  4185          type: "integer"
  4186          format: "int32"
  4187          x-exportParamName: "Number"
  4188        responses:
  4189          204:
  4190            description: "Pull Request已经合并"
  4191          404:
  4192            description: "Pull Request未合并或不存在"
  4193      put:
  4194        tags:
  4195        - "Pull Requests"
  4196        summary: "合并Pull Request"
  4197        description: "合并Pull Request"
  4198        operationId: "putV5ReposOwnerRepoPullsNumberMerge"
  4199        consumes:
  4200        - "application/json"
  4201        - "multipart/form-data"
  4202        produces:
  4203        - "application/json"
  4204        parameters:
  4205        - name: "owner"
  4206          in: "path"
  4207          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  4208          required: true
  4209          type: "string"
  4210          x-exportParamName: "Owner"
  4211        - name: "repo"
  4212          in: "path"
  4213          description: "仓库路径(path)"
  4214          required: true
  4215          type: "string"
  4216          x-exportParamName: "Repo"
  4217        - name: "number"
  4218          in: "path"
  4219          description: "第几个PR,即本仓库PR的序数"
  4220          required: true
  4221          type: "integer"
  4222          format: "int32"
  4223          x-exportParamName: "Number"
  4224        - in: "body"
  4225          name: "body"
  4226          description: "PullRequest合入参数"
  4227          required: true
  4228          schema:
  4229            $ref: "#/definitions/PullRequestMergePutParam"
  4230          x-exportParamName: "Body"
  4231        responses:
  4232          200:
  4233            description: "合并Pull Request"
  4234    /v5/repos/{owner}/{repo}/pulls/{number}/assignees:
  4235      post:
  4236        tags:
  4237        - "Pull Requests"
  4238        summary: "指派用户审查 Pull Request"
  4239        description: "指派用户审查 Pull Request"
  4240        operationId: "postV5ReposOwnerRepoPullsNumberAssignees"
  4241        consumes:
  4242        - "application/json"
  4243        - "multipart/form-data"
  4244        produces:
  4245        - "application/json"
  4246        parameters:
  4247        - name: "owner"
  4248          in: "path"
  4249          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  4250          required: true
  4251          type: "string"
  4252          x-exportParamName: "Owner"
  4253        - name: "repo"
  4254          in: "path"
  4255          description: "仓库路径(path)"
  4256          required: true
  4257          type: "string"
  4258          x-exportParamName: "Repo"
  4259        - name: "number"
  4260          in: "path"
  4261          description: "第几个PR,即本仓库PR的序数"
  4262          required: true
  4263          type: "integer"
  4264          format: "int32"
  4265          x-exportParamName: "Number"
  4266        - in: "body"
  4267          name: "body"
  4268          description: "必选,标签的内容"
  4269          required: true
  4270          schema:
  4271            $ref: "#/definitions/PullRequestAssigneePostParam"
  4272          x-exportParamName: "Body"
  4273        responses:
  4274          201:
  4275            description: "返回格式"
  4276            schema:
  4277              $ref: "#/definitions/PullRequest"
  4278      delete:
  4279        tags:
  4280        - "Pull Requests"
  4281        summary: "取消用户审查 Pull Request"
  4282        description: "取消用户审查 Pull Request"
  4283        operationId: "deleteV5ReposOwnerRepoPullsNumberAssignees"
  4284        consumes:
  4285        - "application/json"
  4286        - "multipart/form-data"
  4287        produces:
  4288        - "application/json"
  4289        parameters:
  4290        - name: "access_token"
  4291          in: "query"
  4292          description: "用户授权码"
  4293          required: false
  4294          type: "string"
  4295          x-exportParamName: "AccessToken"
  4296          x-optionalDataType: "String"
  4297        - name: "owner"
  4298          in: "path"
  4299          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  4300          required: true
  4301          type: "string"
  4302          x-exportParamName: "Owner"
  4303        - name: "repo"
  4304          in: "path"
  4305          description: "仓库路径(path)"
  4306          required: true
  4307          type: "string"
  4308          x-exportParamName: "Repo"
  4309        - name: "number"
  4310          in: "path"
  4311          description: "第几个PR,即本仓库PR的序数"
  4312          required: true
  4313          type: "integer"
  4314          format: "int32"
  4315          x-exportParamName: "Number"
  4316        - name: "assignees"
  4317          in: "query"
  4318          description: "用户的个人空间地址, 以 , 分隔"
  4319          required: true
  4320          type: "string"
  4321          x-exportParamName: "Assignees"
  4322        responses:
  4323          200:
  4324            description: "返回格式"
  4325            schema:
  4326              $ref: "#/definitions/PullRequest"
  4327    /v5/repos/{owner}/{repo}/pulls/{number}/testers:
  4328      post:
  4329        tags:
  4330        - "Pull Requests"
  4331        summary: "指派用户测试 Pull Request"
  4332        description: "指派用户测试 Pull Request"
  4333        operationId: "postV5ReposOwnerRepoPullsNumberTesters"
  4334        consumes:
  4335        - "application/json"
  4336        - "multipart/form-data"
  4337        produces:
  4338        - "application/json"
  4339        parameters:
  4340        - name: "access_token"
  4341          in: "formData"
  4342          description: "用户授权码"
  4343          required: false
  4344          type: "string"
  4345          x-exportParamName: "AccessToken"
  4346          x-optionalDataType: "String"
  4347        - name: "owner"
  4348          in: "path"
  4349          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  4350          required: true
  4351          type: "string"
  4352          x-exportParamName: "Owner"
  4353        - name: "repo"
  4354          in: "path"
  4355          description: "仓库路径(path)"
  4356          required: true
  4357          type: "string"
  4358          x-exportParamName: "Repo"
  4359        - name: "number"
  4360          in: "path"
  4361          description: "第几个PR,即本仓库PR的序数"
  4362          required: true
  4363          type: "integer"
  4364          format: "int32"
  4365          x-exportParamName: "Number"
  4366        - name: "testers"
  4367          in: "formData"
  4368          description: "用户的个人空间地址, 以 , 分隔"
  4369          required: true
  4370          type: "string"
  4371          x-exportParamName: "Testers"
  4372        responses:
  4373          201:
  4374            description: "返回格式"
  4375            schema:
  4376              $ref: "#/definitions/PullRequest"
  4377      delete:
  4378        tags:
  4379        - "Pull Requests"
  4380        summary: "取消用户测试 Pull Request"
  4381        description: "取消用户测试 Pull Request"
  4382        operationId: "deleteV5ReposOwnerRepoPullsNumberTesters"
  4383        consumes:
  4384        - "application/json"
  4385        - "multipart/form-data"
  4386        produces:
  4387        - "application/json"
  4388        parameters:
  4389        - name: "access_token"
  4390          in: "query"
  4391          description: "用户授权码"
  4392          required: false
  4393          type: "string"
  4394          x-exportParamName: "AccessToken"
  4395          x-optionalDataType: "String"
  4396        - name: "owner"
  4397          in: "path"
  4398          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  4399          required: true
  4400          type: "string"
  4401          x-exportParamName: "Owner"
  4402        - name: "repo"
  4403          in: "path"
  4404          description: "仓库路径(path)"
  4405          required: true
  4406          type: "string"
  4407          x-exportParamName: "Repo"
  4408        - name: "number"
  4409          in: "path"
  4410          description: "第几个PR,即本仓库PR的序数"
  4411          required: true
  4412          type: "integer"
  4413          format: "int32"
  4414          x-exportParamName: "Number"
  4415        - name: "testers"
  4416          in: "query"
  4417          description: "用户的个人空间地址, 以 , 分隔"
  4418          required: true
  4419          type: "string"
  4420          x-exportParamName: "Testers"
  4421        responses:
  4422          200:
  4423            description: "返回格式"
  4424            schema:
  4425              $ref: "#/definitions/PullRequest"
  4426    /v5/repos/{owner}/{repo}/pulls/{number}/comments:
  4427      get:
  4428        tags:
  4429        - "Pull Requests"
  4430        summary: "获取某个Pull Request的所有评论"
  4431        description: "获取某个Pull Request的所有评论"
  4432        operationId: "getV5ReposOwnerRepoPullsNumberComments"
  4433        consumes:
  4434        - "application/json"
  4435        - "multipart/form-data"
  4436        produces:
  4437        - "application/json"
  4438        parameters:
  4439        - name: "access_token"
  4440          in: "query"
  4441          description: "用户授权码"
  4442          required: false
  4443          type: "string"
  4444          x-exportParamName: "AccessToken"
  4445          x-optionalDataType: "String"
  4446        - name: "owner"
  4447          in: "path"
  4448          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  4449          required: true
  4450          type: "string"
  4451          x-exportParamName: "Owner"
  4452        - name: "repo"
  4453          in: "path"
  4454          description: "仓库路径(path)"
  4455          required: true
  4456          type: "string"
  4457          x-exportParamName: "Repo"
  4458        - name: "number"
  4459          in: "path"
  4460          description: "第几个PR,即本仓库PR的序数"
  4461          required: true
  4462          type: "integer"
  4463          format: "int32"
  4464          x-exportParamName: "Number"
  4465        - name: "page"
  4466          in: "query"
  4467          description: "当前的页码"
  4468          required: false
  4469          type: "integer"
  4470          default: 1
  4471          format: "int32"
  4472          x-exportParamName: "Page"
  4473          x-optionalDataType: "Int32"
  4474        - name: "per_page"
  4475          in: "query"
  4476          description: "每页的数量,最大为 100"
  4477          required: false
  4478          type: "integer"
  4479          default: 20
  4480          format: "int32"
  4481          x-exportParamName: "PerPage"
  4482          x-optionalDataType: "Int32"
  4483        responses:
  4484          200:
  4485            description: "返回格式"
  4486            schema:
  4487              type: "array"
  4488              items:
  4489                $ref: "#/definitions/PullRequestComments"
  4490      post:
  4491        tags:
  4492        - "Pull Requests"
  4493        summary: "提交Pull Request评论"
  4494        description: "提交Pull Request评论"
  4495        operationId: "postV5ReposOwnerRepoPullsNumberComments"
  4496        consumes:
  4497        - "application/json"
  4498        - "multipart/form-data"
  4499        produces:
  4500        - "application/json"
  4501        parameters:
  4502        - name: "owner"
  4503          in: "path"
  4504          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  4505          required: true
  4506          type: "string"
  4507          x-exportParamName: "Owner"
  4508        - name: "repo"
  4509          in: "path"
  4510          description: "仓库路径(path)"
  4511          required: true
  4512          type: "string"
  4513          x-exportParamName: "Repo"
  4514        - name: "number"
  4515          in: "path"
  4516          description: "第几个PR,即本仓库PR的序数"
  4517          required: true
  4518          type: "integer"
  4519          format: "int32"
  4520          x-exportParamName: "Number"
  4521        - in: "body"
  4522          name: "body"
  4523          description: "评论内容"
  4524          required: true
  4525          schema:
  4526            $ref: "#/definitions/PullRequestCommentPostParam"
  4527          x-exportParamName: "Body"
  4528        responses:
  4529          201:
  4530            description: "返回格式"
  4531            schema:
  4532              $ref: "#/definitions/PullRequestComments"
  4533    /v5/repos/{owner}/{repo}/pulls/comments/{id}:
  4534      get:
  4535        tags:
  4536        - "Pull Requests"
  4537        summary: "获取Pull Request的某个评论"
  4538        description: "获取Pull Request的某个评论"
  4539        operationId: "getV5ReposOwnerRepoPullsCommentsId"
  4540        consumes:
  4541        - "application/json"
  4542        - "multipart/form-data"
  4543        produces:
  4544        - "application/json"
  4545        parameters:
  4546        - name: "access_token"
  4547          in: "query"
  4548          description: "用户授权码"
  4549          required: false
  4550          type: "string"
  4551          x-exportParamName: "AccessToken"
  4552          x-optionalDataType: "String"
  4553        - name: "owner"
  4554          in: "path"
  4555          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  4556          required: true
  4557          type: "string"
  4558          x-exportParamName: "Owner"
  4559        - name: "repo"
  4560          in: "path"
  4561          description: "仓库路径(path)"
  4562          required: true
  4563          type: "string"
  4564          x-exportParamName: "Repo"
  4565        - name: "id"
  4566          in: "path"
  4567          required: true
  4568          type: "integer"
  4569          format: "int32"
  4570          x-exportParamName: "Id"
  4571        responses:
  4572          200:
  4573            description: "返回格式"
  4574            schema:
  4575              $ref: "#/definitions/PullRequestComments"
  4576      delete:
  4577        tags:
  4578        - "Pull Requests"
  4579        summary: "删除评论"
  4580        description: "删除评论"
  4581        operationId: "deleteV5ReposOwnerRepoPullsCommentsId"
  4582        consumes:
  4583        - "application/json"
  4584        - "multipart/form-data"
  4585        produces:
  4586        - "application/json"
  4587        parameters:
  4588        - name: "access_token"
  4589          in: "query"
  4590          description: "用户授权码"
  4591          required: false
  4592          type: "string"
  4593          x-exportParamName: "AccessToken"
  4594          x-optionalDataType: "String"
  4595        - name: "owner"
  4596          in: "path"
  4597          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  4598          required: true
  4599          type: "string"
  4600          x-exportParamName: "Owner"
  4601        - name: "repo"
  4602          in: "path"
  4603          description: "仓库路径(path)"
  4604          required: true
  4605          type: "string"
  4606          x-exportParamName: "Repo"
  4607        - name: "id"
  4608          in: "path"
  4609          description: "评论的ID"
  4610          required: true
  4611          type: "integer"
  4612          format: "int32"
  4613          x-exportParamName: "Id"
  4614        responses:
  4615          204:
  4616            description: "删除评论"
  4617      patch:
  4618        tags:
  4619        - "Pull Requests"
  4620        summary: "编辑评论"
  4621        description: "编辑评论"
  4622        operationId: "patchV5ReposOwnerRepoPullsCommentsId"
  4623        consumes:
  4624        - "application/json"
  4625        - "multipart/form-data"
  4626        produces:
  4627        - "application/json"
  4628        parameters:
  4629        - name: "owner"
  4630          in: "path"
  4631          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  4632          required: true
  4633          type: "string"
  4634          x-exportParamName: "Owner"
  4635        - name: "repo"
  4636          in: "path"
  4637          description: "仓库路径(path)"
  4638          required: true
  4639          type: "string"
  4640          x-exportParamName: "Repo"
  4641        - name: "id"
  4642          in: "path"
  4643          description: "评论的ID"
  4644          required: true
  4645          type: "integer"
  4646          format: "int32"
  4647          x-exportParamName: "Id"
  4648        - name: "body"
  4649          in: "body"
  4650          description: "必填。评论内容"
  4651          required: true
  4652          schema:
  4653            $ref: "#/definitions/PullRequestCommentPatchParam"
  4654          x-exportParamName: "Body"
  4655        responses:
  4656          200:
  4657            description: "返回格式"
  4658            schema:
  4659              $ref: "#/definitions/PullRequestComments"
  4660    /v5/repos/{owner}/{repo}/pulls/{number}/labels:
  4661      parameters:
  4662      - name: "owner"
  4663        in: "path"
  4664        description: "仓库所属空间地址(企业、组织或个人的地址path)"
  4665        required: true
  4666        type: "string"
  4667        x-exportParamName: "Owner"
  4668      - name: "repo"
  4669        in: "path"
  4670        description: "仓库路径(path)"
  4671        required: true
  4672        type: "string"
  4673        x-exportParamName: "Repo"
  4674      - name: "number"
  4675        in: "path"
  4676        description: "第几个PR,即本仓库PR的序数"
  4677        required: true
  4678        type: "integer"
  4679        format: "int32"
  4680        x-exportParamName: "Number"
  4681  
  4682      get:
  4683        tags:
  4684        - "Pull Requests"
  4685        summary: "获取某个 Pull Request 的所有标签"
  4686        description: "获取某个 Pull Request 的所有标签"
  4687        operationId: "getV5ReposOwnerRepoPullsNumberLabels"
  4688        consumes:
  4689        - "application/json"
  4690        - "multipart/form-data"
  4691        produces:
  4692        - "application/json"
  4693        parameters:
  4694        - name: "access_token"
  4695          in: "query"
  4696          description: "用户授权码"
  4697          required: false
  4698          type: "string"
  4699          x-exportParamName: "AccessToken"
  4700          x-optionalDataType: "String"
  4701        - name: "page"
  4702          in: "query"
  4703          description: "当前的页码"
  4704          required: false
  4705          type: "integer"
  4706          default: 1
  4707          format: "int32"
  4708          x-exportParamName: "Page"
  4709          x-optionalDataType: "Int32"
  4710        - name: "per_page"
  4711          in: "query"
  4712          description: "每页的数量,最大为 100"
  4713          required: false
  4714          type: "integer"
  4715          default: 20
  4716          format: "int32"
  4717          x-exportParamName: "PerPage"
  4718          x-optionalDataType: "Int32"
  4719        responses:
  4720          200:
  4721            description: "返回格式"
  4722            schema:
  4723              type: "array"
  4724              items:
  4725                $ref: "#/definitions/Label"
  4726      post:
  4727        tags:
  4728        - "Pull Requests"
  4729        summary: "创建 Pull Request 标签"
  4730        description: "创建 Pull Request 标签"
  4731        operationId: "postV5ReposOwnerRepoPullsNumberLabels"
  4732        consumes:
  4733        - "application/json"
  4734        - "multipart/form-data"
  4735        produces:
  4736        - "application/json"
  4737        parameters:
  4738        - in: "body"
  4739          name: "body"
  4740          description: "必选,标签的内容"
  4741          required: true
  4742          schema:
  4743            $ref: "#/definitions/PullRequestLabelPostParam"
  4744          x-exportParamName: "Body"
  4745        responses:
  4746          201:
  4747            description: "返回格式"
  4748            schema:
  4749              $ref: "#/definitions/Label"
  4750  
  4751      put:
  4752        tags:
  4753        - "Pull Requests"
  4754        summary: "替换Pull Request 所有标签"
  4755        description: "替换Pull Request 所有标签\n 需要在请求的body里填上数组,元素为标签的名字。如: [\"performance\", \"\
  4756          bug\"]"
  4757        operationId: "putV5ReposOwnerRepoPullsNumberLabels"
  4758        consumes:
  4759        - "application/json"
  4760        - "multipart/form-data"
  4761        produces:
  4762        - "application/json"
  4763        parameters:
  4764        - in: "body"
  4765          name: "body"
  4766          description: "必选,标签的内容"
  4767          required: true
  4768          schema:
  4769            $ref: "#/definitions/PullRequestLabelPostParam"
  4770          x-exportParamName: "Body"
  4771        responses:
  4772          202:
  4773            description: "返回格式"
  4774            schema:
  4775              type: "array"
  4776              items:
  4777                $ref: "#/definitions/Label"
  4778  
  4779    /v5/repos/{owner}/{repo}/pulls/{number}/labels/{name}:
  4780      parameters:
  4781      - name: "owner"
  4782        in: "path"
  4783        description: "仓库所属空间地址(企业、组织或个人的地址path)"
  4784        required: true
  4785        type: "string"
  4786        x-exportParamName: "Owner"
  4787      - name: "repo"
  4788        in: "path"
  4789        description: "仓库路径(path)"
  4790        required: true
  4791        type: "string"
  4792        x-exportParamName: "Repo"
  4793      - name: "number"
  4794        in: "path"
  4795        description: "第几个PR,即本仓库PR的序数"
  4796        required: true
  4797        type: "integer"
  4798        format: "int32"
  4799        x-exportParamName: "Number"
  4800  
  4801      delete:
  4802        tags:
  4803        - "Pull Requests"
  4804        summary: "删除 Pull Request 标签"
  4805        description: "删除 Pull Request 标签"
  4806        operationId: "deleteV5ReposOwnerRepoPullsLabel"
  4807        consumes:
  4808        - "application/json"
  4809        - "multipart/form-data"
  4810        produces:
  4811        - "application/json"
  4812        parameters:
  4813        - name: "access_token"
  4814          in: "query"
  4815          description: "用户授权码"
  4816          required: false
  4817          type: "string"
  4818          x-exportParamName: "AccessToken"
  4819          x-optionalDataType: "String"
  4820        - name: "name"
  4821          in: "path"
  4822          description: "标签名称"
  4823          required: true
  4824          type: "string"
  4825          x-exportParamName: "Name"
  4826        responses:
  4827          204:
  4828            description: "删除Pull Request 标签"
  4829    /v5/repos/{owner}/{repo}/pulls/{number}/issues:
  4830      get:
  4831        tags:
  4832          - "Pull Requests"
  4833        operationId: "getV5ReposOwnerRepoPullsNumberIssues"
  4834        summary: "获取 Pull Request 关联的 issues"
  4835        description: "获取 Pull Request 关联的 issues"
  4836        produces:
  4837        - "application/json"
  4838        parameters:
  4839        - in: "query"
  4840          name: "access_token"
  4841          description: "用户授权码"
  4842          type: "string"
  4843          required: false
  4844        - in: "path"
  4845          name: "owner"
  4846          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  4847          type: "string"
  4848          required: true
  4849        - in: "path"
  4850          name: "repo"
  4851          description: "仓库路径(path)"
  4852          type: "string"
  4853          required: true
  4854        - in: "query"
  4855          name: "page"
  4856          description: "当前的页码"
  4857          type: "integer"
  4858          format: "int32"
  4859          default: 1
  4860          required: false
  4861        - in: "query"
  4862          name: "per_page"
  4863          description: "每页的数量,最大为 100"
  4864          type: "integer"
  4865          format: "int32"
  4866          default: "20"
  4867          required: false
  4868        - in: "path"
  4869          name: "number"
  4870          type: "integer"
  4871          format: "int32"
  4872          required: true
  4873        responses:
  4874          200:
  4875            description: "返回格式"
  4876            schema:
  4877              type: "array"
  4878              items:
  4879                "$ref": "#/definitions/Issue"
  4880    /v5/repos/{owner}/{repo}/releases:
  4881      get:
  4882        tags:
  4883        - "Repositories"
  4884        summary: "获取仓库的所有Releases"
  4885        description: "获取仓库的所有Releases"
  4886        operationId: "getV5ReposOwnerRepoReleases"
  4887        consumes:
  4888        - "application/json"
  4889        - "multipart/form-data"
  4890        produces:
  4891        - "application/json"
  4892        parameters:
  4893        - name: "access_token"
  4894          in: "query"
  4895          description: "用户授权码"
  4896          required: false
  4897          type: "string"
  4898          x-exportParamName: "AccessToken"
  4899          x-optionalDataType: "String"
  4900        - name: "owner"
  4901          in: "path"
  4902          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  4903          required: true
  4904          type: "string"
  4905          x-exportParamName: "Owner"
  4906        - name: "repo"
  4907          in: "path"
  4908          description: "仓库路径(path)"
  4909          required: true
  4910          type: "string"
  4911          x-exportParamName: "Repo"
  4912        - name: "page"
  4913          in: "query"
  4914          description: "当前的页码"
  4915          required: false
  4916          type: "integer"
  4917          default: 1
  4918          format: "int32"
  4919          x-exportParamName: "Page"
  4920          x-optionalDataType: "Int32"
  4921        - name: "per_page"
  4922          in: "query"
  4923          description: "每页的数量,最大为 100"
  4924          required: false
  4925          type: "integer"
  4926          default: 20
  4927          format: "int32"
  4928          x-exportParamName: "PerPage"
  4929          x-optionalDataType: "Int32"
  4930        responses:
  4931          200:
  4932            description: "返回格式"
  4933            schema:
  4934              type: "array"
  4935              items:
  4936                $ref: "#/definitions/Release"
  4937      post:
  4938        tags:
  4939        - "Repositories"
  4940        summary: "创建仓库Release"
  4941        description: "创建仓库Release"
  4942        operationId: "postV5ReposOwnerRepoReleases"
  4943        consumes:
  4944        - "application/json"
  4945        - "multipart/form-data"
  4946        produces:
  4947        - "application/json"
  4948        parameters:
  4949        - name: "access_token"
  4950          in: "formData"
  4951          description: "用户授权码"
  4952          required: false
  4953          type: "string"
  4954          x-exportParamName: "AccessToken"
  4955          x-optionalDataType: "String"
  4956        - name: "owner"
  4957          in: "path"
  4958          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  4959          required: true
  4960          type: "string"
  4961          x-exportParamName: "Owner"
  4962        - name: "repo"
  4963          in: "path"
  4964          description: "仓库路径(path)"
  4965          required: true
  4966          type: "string"
  4967          x-exportParamName: "Repo"
  4968        - name: "tag_name"
  4969          in: "formData"
  4970          description: "Tag 名称, 提倡以v字母为前缀做为Release名称,例如v1.0或者v2.3.4"
  4971          required: true
  4972          type: "string"
  4973          x-exportParamName: "TagName"
  4974        - name: "name"
  4975          in: "formData"
  4976          description: "Release 名称"
  4977          required: true
  4978          type: "string"
  4979          x-exportParamName: "Name"
  4980        - name: "body"
  4981          in: "formData"
  4982          description: "Release 描述"
  4983          required: true
  4984          type: "string"
  4985          x-exportParamName: "Body"
  4986        - name: "prerelease"
  4987          in: "formData"
  4988          description: "是否为预览版本。默认: false(非预览版本)"
  4989          required: false
  4990          type: "boolean"
  4991          x-exportParamName: "Prerelease"
  4992          x-optionalDataType: "Bool"
  4993        - name: "target_commitish"
  4994          in: "formData"
  4995          description: "分支名称或者commit SHA, 默认是当前默认分支"
  4996          required: true
  4997          type: "string"
  4998          x-exportParamName: "TargetCommitish"
  4999        responses:
  5000          201:
  5001            description: "返回格式"
  5002            schema:
  5003              $ref: "#/definitions/Release"
  5004    /v5/repos/{owner}/{repo}/releases/{id}:
  5005      get:
  5006        tags:
  5007        - "Repositories"
  5008        summary: "获取仓库的单个Releases"
  5009        description: "获取仓库的单个Releases"
  5010        operationId: "getV5ReposOwnerRepoReleasesId"
  5011        consumes:
  5012        - "application/json"
  5013        - "multipart/form-data"
  5014        produces:
  5015        - "application/json"
  5016        parameters:
  5017        - name: "access_token"
  5018          in: "query"
  5019          description: "用户授权码"
  5020          required: false
  5021          type: "string"
  5022          x-exportParamName: "AccessToken"
  5023          x-optionalDataType: "String"
  5024        - name: "owner"
  5025          in: "path"
  5026          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  5027          required: true
  5028          type: "string"
  5029          x-exportParamName: "Owner"
  5030        - name: "repo"
  5031          in: "path"
  5032          description: "仓库路径(path)"
  5033          required: true
  5034          type: "string"
  5035          x-exportParamName: "Repo"
  5036        - name: "id"
  5037          in: "path"
  5038          description: "发行版本的ID"
  5039          required: true
  5040          type: "integer"
  5041          format: "int32"
  5042          x-exportParamName: "Id"
  5043        responses:
  5044          200:
  5045            description: "返回格式"
  5046            schema:
  5047              $ref: "#/definitions/Release"
  5048      delete:
  5049        tags:
  5050        - "Repositories"
  5051        summary: "删除仓库Release"
  5052        description: "删除仓库Release"
  5053        operationId: "deleteV5ReposOwnerRepoReleasesId"
  5054        consumes:
  5055        - "application/json"
  5056        - "multipart/form-data"
  5057        produces:
  5058        - "application/json"
  5059        parameters:
  5060        - name: "access_token"
  5061          in: "query"
  5062          description: "用户授权码"
  5063          required: false
  5064          type: "string"
  5065          x-exportParamName: "AccessToken"
  5066          x-optionalDataType: "String"
  5067        - name: "owner"
  5068          in: "path"
  5069          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  5070          required: true
  5071          type: "string"
  5072          x-exportParamName: "Owner"
  5073        - name: "repo"
  5074          in: "path"
  5075          description: "仓库路径(path)"
  5076          required: true
  5077          type: "string"
  5078          x-exportParamName: "Repo"
  5079        - name: "id"
  5080          in: "path"
  5081          required: true
  5082          type: "integer"
  5083          format: "int32"
  5084          x-exportParamName: "Id"
  5085        responses:
  5086          204:
  5087            description: "删除仓库Release"
  5088      patch:
  5089        tags:
  5090        - "Repositories"
  5091        summary: "更新仓库Release"
  5092        description: "更新仓库Release"
  5093        operationId: "patchV5ReposOwnerRepoReleasesId"
  5094        consumes:
  5095        - "application/json"
  5096        - "multipart/form-data"
  5097        produces:
  5098        - "application/json"
  5099        parameters:
  5100        - name: "access_token"
  5101          in: "formData"
  5102          description: "用户授权码"
  5103          required: false
  5104          type: "string"
  5105          x-exportParamName: "AccessToken"
  5106          x-optionalDataType: "String"
  5107        - name: "owner"
  5108          in: "path"
  5109          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  5110          required: true
  5111          type: "string"
  5112          x-exportParamName: "Owner"
  5113        - name: "repo"
  5114          in: "path"
  5115          description: "仓库路径(path)"
  5116          required: true
  5117          type: "string"
  5118          x-exportParamName: "Repo"
  5119        - name: "tag_name"
  5120          in: "formData"
  5121          description: "Tag 名称, 提倡以v字母为前缀做为Release名称,例如v1.0或者v2.3.4"
  5122          required: true
  5123          type: "string"
  5124          x-exportParamName: "TagName"
  5125        - name: "name"
  5126          in: "formData"
  5127          description: "Release 名称"
  5128          required: true
  5129          type: "string"
  5130          x-exportParamName: "Name"
  5131        - name: "body"
  5132          in: "formData"
  5133          description: "Release 描述"
  5134          required: true
  5135          type: "string"
  5136          x-exportParamName: "Body"
  5137        - name: "prerelease"
  5138          in: "formData"
  5139          description: "是否为预览版本。默认: false(非预览版本)"
  5140          required: false
  5141          type: "boolean"
  5142          x-exportParamName: "Prerelease"
  5143          x-optionalDataType: "Bool"
  5144        - name: "id"
  5145          in: "path"
  5146          required: true
  5147          type: "integer"
  5148          format: "int32"
  5149          x-exportParamName: "Id"
  5150        responses:
  5151          200:
  5152            description: "返回格式"
  5153            schema:
  5154              $ref: "#/definitions/Release"
  5155    /v5/repos/{owner}/{repo}/releases/latest:
  5156      get:
  5157        tags:
  5158        - "Repositories"
  5159        summary: "获取仓库的最后更新的Release"
  5160        description: "获取仓库的最后更新的Release"
  5161        operationId: "getV5ReposOwnerRepoReleasesLatest"
  5162        consumes:
  5163        - "application/json"
  5164        - "multipart/form-data"
  5165        produces:
  5166        - "application/json"
  5167        parameters:
  5168        - name: "access_token"
  5169          in: "query"
  5170          description: "用户授权码"
  5171          required: false
  5172          type: "string"
  5173          x-exportParamName: "AccessToken"
  5174          x-optionalDataType: "String"
  5175        - name: "owner"
  5176          in: "path"
  5177          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  5178          required: true
  5179          type: "string"
  5180          x-exportParamName: "Owner"
  5181        - name: "repo"
  5182          in: "path"
  5183          description: "仓库路径(path)"
  5184          required: true
  5185          type: "string"
  5186          x-exportParamName: "Repo"
  5187        responses:
  5188          200:
  5189            description: "返回格式"
  5190            schema:
  5191              $ref: "#/definitions/Release"
  5192    /v5/repos/{owner}/{repo}/releases/tags/{tag}:
  5193      get:
  5194        tags:
  5195        - "Repositories"
  5196        summary: "根据Tag名称获取仓库的Release"
  5197        description: "根据Tag名称获取仓库的Release"
  5198        operationId: "getV5ReposOwnerRepoReleasesTagsTag"
  5199        consumes:
  5200        - "application/json"
  5201        - "multipart/form-data"
  5202        produces:
  5203        - "application/json"
  5204        parameters:
  5205        - name: "access_token"
  5206          in: "query"
  5207          description: "用户授权码"
  5208          required: false
  5209          type: "string"
  5210          x-exportParamName: "AccessToken"
  5211          x-optionalDataType: "String"
  5212        - name: "owner"
  5213          in: "path"
  5214          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  5215          required: true
  5216          type: "string"
  5217          x-exportParamName: "Owner"
  5218        - name: "repo"
  5219          in: "path"
  5220          description: "仓库路径(path)"
  5221          required: true
  5222          type: "string"
  5223          x-exportParamName: "Repo"
  5224        - name: "tag"
  5225          in: "path"
  5226          description: "Tag 名称"
  5227          required: true
  5228          type: "string"
  5229          x-exportParamName: "Tag"
  5230        responses:
  5231          200:
  5232            description: "返回格式"
  5233            schema:
  5234              $ref: "#/definitions/Release"
  5235    /v5/repos/{owner}/{repo}/hooks:
  5236      get:
  5237        tags:
  5238        - "Webhooks"
  5239        summary: "列出仓库的WebHooks"
  5240        description: "列出仓库的WebHooks"
  5241        operationId: "getV5ReposOwnerRepoHooks"
  5242        consumes:
  5243        - "application/json"
  5244        - "multipart/form-data"
  5245        produces:
  5246        - "application/json"
  5247        parameters:
  5248        - name: "access_token"
  5249          in: "query"
  5250          description: "用户授权码"
  5251          required: false
  5252          type: "string"
  5253          x-exportParamName: "AccessToken"
  5254          x-optionalDataType: "String"
  5255        - name: "owner"
  5256          in: "path"
  5257          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  5258          required: true
  5259          type: "string"
  5260          x-exportParamName: "Owner"
  5261        - name: "repo"
  5262          in: "path"
  5263          description: "仓库路径(path)"
  5264          required: true
  5265          type: "string"
  5266          x-exportParamName: "Repo"
  5267        - name: "page"
  5268          in: "query"
  5269          description: "当前的页码"
  5270          required: false
  5271          type: "integer"
  5272          default: 1
  5273          format: "int32"
  5274          x-exportParamName: "Page"
  5275          x-optionalDataType: "Int32"
  5276        - name: "per_page"
  5277          in: "query"
  5278          description: "每页的数量,最大为 100"
  5279          required: false
  5280          type: "integer"
  5281          default: 20
  5282          format: "int32"
  5283          x-exportParamName: "PerPage"
  5284          x-optionalDataType: "Int32"
  5285        responses:
  5286          200:
  5287            description: "返回格式"
  5288            schema:
  5289              type: "array"
  5290              items:
  5291                $ref: "#/definitions/Hook"
  5292      post:
  5293        tags:
  5294        - "Webhooks"
  5295        summary: "创建一个仓库WebHook"
  5296        description: "创建一个仓库WebHook"
  5297        operationId: "postV5ReposOwnerRepoHooks"
  5298        consumes:
  5299        - "application/json"
  5300        - "multipart/form-data"
  5301        produces:
  5302        - "application/json"
  5303        parameters:
  5304        - name: "access_token"
  5305          in: "formData"
  5306          description: "用户授权码"
  5307          required: false
  5308          type: "string"
  5309          x-exportParamName: "AccessToken"
  5310          x-optionalDataType: "String"
  5311        - name: "owner"
  5312          in: "path"
  5313          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  5314          required: true
  5315          type: "string"
  5316          x-exportParamName: "Owner"
  5317        - name: "repo"
  5318          in: "path"
  5319          description: "仓库路径(path)"
  5320          required: true
  5321          type: "string"
  5322          x-exportParamName: "Repo"
  5323        - name: "url"
  5324          in: "formData"
  5325          description: "远程HTTP URL"
  5326          required: true
  5327          type: "string"
  5328          x-exportParamName: "Url"
  5329        - name: "password"
  5330          in: "formData"
  5331          description: "请求URL时会带上该密码,防止URL被恶意请求"
  5332          required: false
  5333          type: "string"
  5334          x-exportParamName: "Password"
  5335          x-optionalDataType: "String"
  5336        - name: "push_events"
  5337          in: "formData"
  5338          description: "Push代码到仓库"
  5339          required: false
  5340          type: "boolean"
  5341          default: true
  5342          x-exportParamName: "PushEvents"
  5343          x-optionalDataType: "Bool"
  5344        - name: "tag_push_events"
  5345          in: "formData"
  5346          description: "提交Tag到仓库"
  5347          required: false
  5348          type: "boolean"
  5349          x-exportParamName: "TagPushEvents"
  5350          x-optionalDataType: "Bool"
  5351        - name: "issues_events"
  5352          in: "formData"
  5353          description: "创建/关闭Issue"
  5354          required: false
  5355          type: "boolean"
  5356          x-exportParamName: "IssuesEvents"
  5357          x-optionalDataType: "Bool"
  5358        - name: "note_events"
  5359          in: "formData"
  5360          description: "评论了Issue/代码等等"
  5361          required: false
  5362          type: "boolean"
  5363          x-exportParamName: "NoteEvents"
  5364          x-optionalDataType: "Bool"
  5365        - name: "merge_requests_events"
  5366          in: "formData"
  5367          description: "合并请求和合并后"
  5368          required: false
  5369          type: "boolean"
  5370          x-exportParamName: "MergeRequestsEvents"
  5371          x-optionalDataType: "Bool"
  5372        responses:
  5373          201:
  5374            description: "返回格式"
  5375            schema:
  5376              $ref: "#/definitions/Hook"
  5377    /v5/repos/{owner}/{repo}/hooks/{id}:
  5378      get:
  5379        tags:
  5380        - "Webhooks"
  5381        summary: "获取仓库单个WebHook"
  5382        description: "获取仓库单个WebHook"
  5383        operationId: "getV5ReposOwnerRepoHooksId"
  5384        consumes:
  5385        - "application/json"
  5386        - "multipart/form-data"
  5387        produces:
  5388        - "application/json"
  5389        parameters:
  5390        - name: "access_token"
  5391          in: "query"
  5392          description: "用户授权码"
  5393          required: false
  5394          type: "string"
  5395          x-exportParamName: "AccessToken"
  5396          x-optionalDataType: "String"
  5397        - name: "owner"
  5398          in: "path"
  5399          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  5400          required: true
  5401          type: "string"
  5402          x-exportParamName: "Owner"
  5403        - name: "repo"
  5404          in: "path"
  5405          description: "仓库路径(path)"
  5406          required: true
  5407          type: "string"
  5408          x-exportParamName: "Repo"
  5409        - name: "id"
  5410          in: "path"
  5411          description: "Webhook的ID"
  5412          required: true
  5413          type: "integer"
  5414          format: "int32"
  5415          x-exportParamName: "Id"
  5416        responses:
  5417          200:
  5418            description: "返回格式"
  5419            schema:
  5420              $ref: "#/definitions/Hook"
  5421      delete:
  5422        tags:
  5423        - "Webhooks"
  5424        summary: "删除一个仓库WebHook"
  5425        description: "删除一个仓库WebHook"
  5426        operationId: "deleteV5ReposOwnerRepoHooksId"
  5427        consumes:
  5428        - "application/json"
  5429        - "multipart/form-data"
  5430        produces:
  5431        - "application/json"
  5432        parameters:
  5433        - name: "access_token"
  5434          in: "query"
  5435          description: "用户授权码"
  5436          required: false
  5437          type: "string"
  5438          x-exportParamName: "AccessToken"
  5439          x-optionalDataType: "String"
  5440        - name: "owner"
  5441          in: "path"
  5442          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  5443          required: true
  5444          type: "string"
  5445          x-exportParamName: "Owner"
  5446        - name: "repo"
  5447          in: "path"
  5448          description: "仓库路径(path)"
  5449          required: true
  5450          type: "string"
  5451          x-exportParamName: "Repo"
  5452        - name: "id"
  5453          in: "path"
  5454          description: "Webhook的ID"
  5455          required: true
  5456          type: "integer"
  5457          format: "int32"
  5458          x-exportParamName: "Id"
  5459        responses:
  5460          204:
  5461            description: "删除一个仓库WebHook"
  5462      patch:
  5463        tags:
  5464        - "Webhooks"
  5465        summary: "更新一个仓库WebHook"
  5466        description: "更新一个仓库WebHook"
  5467        operationId: "patchV5ReposOwnerRepoHooksId"
  5468        consumes:
  5469        - "application/json"
  5470        - "multipart/form-data"
  5471        produces:
  5472        - "application/json"
  5473        parameters:
  5474        - name: "access_token"
  5475          in: "formData"
  5476          description: "用户授权码"
  5477          required: false
  5478          type: "string"
  5479          x-exportParamName: "AccessToken"
  5480          x-optionalDataType: "String"
  5481        - name: "owner"
  5482          in: "path"
  5483          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  5484          required: true
  5485          type: "string"
  5486          x-exportParamName: "Owner"
  5487        - name: "repo"
  5488          in: "path"
  5489          description: "仓库路径(path)"
  5490          required: true
  5491          type: "string"
  5492          x-exportParamName: "Repo"
  5493        - name: "id"
  5494          in: "path"
  5495          description: "Webhook的ID"
  5496          required: true
  5497          type: "integer"
  5498          format: "int32"
  5499          x-exportParamName: "Id"
  5500        - name: "url"
  5501          in: "formData"
  5502          description: "远程HTTP URL"
  5503          required: true
  5504          type: "string"
  5505          x-exportParamName: "Url"
  5506        - name: "password"
  5507          in: "formData"
  5508          description: "请求URL时会带上该密码,防止URL被恶意请求"
  5509          required: false
  5510          type: "string"
  5511          x-exportParamName: "Password"
  5512          x-optionalDataType: "String"
  5513        - name: "push_events"
  5514          in: "formData"
  5515          description: "Push代码到仓库"
  5516          required: false
  5517          type: "boolean"
  5518          default: true
  5519          x-exportParamName: "PushEvents"
  5520          x-optionalDataType: "Bool"
  5521        - name: "tag_push_events"
  5522          in: "formData"
  5523          description: "提交Tag到仓库"
  5524          required: false
  5525          type: "boolean"
  5526          x-exportParamName: "TagPushEvents"
  5527          x-optionalDataType: "Bool"
  5528        - name: "issues_events"
  5529          in: "formData"
  5530          description: "创建/关闭Issue"
  5531          required: false
  5532          type: "boolean"
  5533          x-exportParamName: "IssuesEvents"
  5534          x-optionalDataType: "Bool"
  5535        - name: "note_events"
  5536          in: "formData"
  5537          description: "评论了Issue/代码等等"
  5538          required: false
  5539          type: "boolean"
  5540          x-exportParamName: "NoteEvents"
  5541          x-optionalDataType: "Bool"
  5542        - name: "merge_requests_events"
  5543          in: "formData"
  5544          description: "合并请求和合并后"
  5545          required: false
  5546          type: "boolean"
  5547          x-exportParamName: "MergeRequestsEvents"
  5548          x-optionalDataType: "Bool"
  5549        responses:
  5550          200:
  5551            description: "返回格式"
  5552            schema:
  5553              $ref: "#/definitions/Hook"
  5554    /v5/repos/{owner}/{repo}/hooks/{id}/tests:
  5555      post:
  5556        tags:
  5557        - "Webhooks"
  5558        summary: "测试WebHook是否发送成功"
  5559        description: "测试WebHook是否发送成功"
  5560        operationId: "postV5ReposOwnerRepoHooksIdTests"
  5561        consumes:
  5562        - "application/json"
  5563        - "multipart/form-data"
  5564        produces:
  5565        - "application/json"
  5566        parameters:
  5567        - name: "access_token"
  5568          in: "formData"
  5569          description: "用户授权码"
  5570          required: false
  5571          type: "string"
  5572          x-exportParamName: "AccessToken"
  5573          x-optionalDataType: "String"
  5574        - name: "owner"
  5575          in: "path"
  5576          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  5577          required: true
  5578          type: "string"
  5579          x-exportParamName: "Owner"
  5580        - name: "repo"
  5581          in: "path"
  5582          description: "仓库路径(path)"
  5583          required: true
  5584          type: "string"
  5585          x-exportParamName: "Repo"
  5586        - name: "id"
  5587          in: "path"
  5588          description: "Webhook的ID"
  5589          required: true
  5590          type: "integer"
  5591          format: "int32"
  5592          x-exportParamName: "Id"
  5593        responses:
  5594          204:
  5595            description: "测试发送成功"
  5596    /v5/repos/{owner}/{repo}/stargazers:
  5597      get:
  5598        tags:
  5599        - "Activity"
  5600        summary: "列出 star 了仓库的用户"
  5601        description: "列出 star 了仓库的用户"
  5602        operationId: "getV5ReposOwnerRepoStargazers"
  5603        consumes:
  5604        - "application/json"
  5605        - "multipart/form-data"
  5606        produces:
  5607        - "application/json"
  5608        parameters:
  5609        - name: "access_token"
  5610          in: "query"
  5611          description: "用户授权码"
  5612          required: false
  5613          type: "string"
  5614          x-exportParamName: "AccessToken"
  5615          x-optionalDataType: "String"
  5616        - name: "owner"
  5617          in: "path"
  5618          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  5619          required: true
  5620          type: "string"
  5621          x-exportParamName: "Owner"
  5622        - name: "repo"
  5623          in: "path"
  5624          description: "仓库路径(path)"
  5625          required: true
  5626          type: "string"
  5627          x-exportParamName: "Repo"
  5628        - name: "page"
  5629          in: "query"
  5630          description: "当前的页码"
  5631          required: false
  5632          type: "integer"
  5633          default: 1
  5634          format: "int32"
  5635          x-exportParamName: "Page"
  5636          x-optionalDataType: "Int32"
  5637        - name: "per_page"
  5638          in: "query"
  5639          description: "每页的数量,最大为 100"
  5640          required: false
  5641          type: "integer"
  5642          default: 20
  5643          format: "int32"
  5644          x-exportParamName: "PerPage"
  5645          x-optionalDataType: "Int32"
  5646        responses:
  5647          200:
  5648            description: "返回格式"
  5649            schema:
  5650              type: "array"
  5651              items:
  5652                $ref: "#/definitions/UserBasic"
  5653          403:
  5654            description: "没有权限"
  5655          404:
  5656            description: "没有相关数据"
  5657    /v5/repos/{owner}/{repo}/subscribers:
  5658      get:
  5659        tags:
  5660        - "Activity"
  5661        summary: "列出 watch 了仓库的用户"
  5662        description: "列出 watch 了仓库的用户"
  5663        operationId: "getV5ReposOwnerRepoSubscribers"
  5664        consumes:
  5665        - "application/json"
  5666        - "multipart/form-data"
  5667        produces:
  5668        - "application/json"
  5669        parameters:
  5670        - name: "access_token"
  5671          in: "query"
  5672          description: "用户授权码"
  5673          required: false
  5674          type: "string"
  5675          x-exportParamName: "AccessToken"
  5676          x-optionalDataType: "String"
  5677        - name: "owner"
  5678          in: "path"
  5679          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  5680          required: true
  5681          type: "string"
  5682          x-exportParamName: "Owner"
  5683        - name: "repo"
  5684          in: "path"
  5685          description: "仓库路径(path)"
  5686          required: true
  5687          type: "string"
  5688          x-exportParamName: "Repo"
  5689        - name: "page"
  5690          in: "query"
  5691          description: "当前的页码"
  5692          required: false
  5693          type: "integer"
  5694          default: 1
  5695          format: "int32"
  5696          x-exportParamName: "Page"
  5697          x-optionalDataType: "Int32"
  5698        - name: "per_page"
  5699          in: "query"
  5700          description: "每页的数量,最大为 100"
  5701          required: false
  5702          type: "integer"
  5703          default: 20
  5704          format: "int32"
  5705          x-exportParamName: "PerPage"
  5706          x-optionalDataType: "Int32"
  5707        responses:
  5708          200:
  5709            description: "返回格式"
  5710            schema:
  5711              type: "array"
  5712              items:
  5713                $ref: "#/definitions/UserBasic"
  5714          403:
  5715            description: "没有权限"
  5716          404:
  5717            description: "没有相关数据"
  5718    /v5/repos/{owner}/{repo}/events:
  5719      get:
  5720        tags:
  5721        - "Activity"
  5722        summary: "列出仓库的所有动态"
  5723        description: "列出仓库的所有动态"
  5724        operationId: "getV5ReposOwnerRepoEvents"
  5725        consumes:
  5726        - "application/json"
  5727        - "multipart/form-data"
  5728        produces:
  5729        - "application/json"
  5730        parameters:
  5731        - name: "access_token"
  5732          in: "query"
  5733          description: "用户授权码"
  5734          required: false
  5735          type: "string"
  5736          x-exportParamName: "AccessToken"
  5737          x-optionalDataType: "String"
  5738        - name: "owner"
  5739          in: "path"
  5740          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  5741          required: true
  5742          type: "string"
  5743          x-exportParamName: "Owner"
  5744        - name: "repo"
  5745          in: "path"
  5746          description: "仓库路径(path)"
  5747          required: true
  5748          type: "string"
  5749          x-exportParamName: "Repo"
  5750        - name: "page"
  5751          in: "query"
  5752          description: "当前的页码"
  5753          required: false
  5754          type: "integer"
  5755          default: 1
  5756          format: "int32"
  5757          x-exportParamName: "Page"
  5758          x-optionalDataType: "Int32"
  5759        - name: "per_page"
  5760          in: "query"
  5761          description: "每页的数量,最大为 100"
  5762          required: false
  5763          type: "integer"
  5764          default: 20
  5765          format: "int32"
  5766          x-exportParamName: "PerPage"
  5767          x-optionalDataType: "Int32"
  5768        responses:
  5769          200:
  5770            description: "返回格式"
  5771            schema:
  5772              type: "array"
  5773              items:
  5774                $ref: "#/definitions/Event"
  5775          403:
  5776            description: "没有权限"
  5777          404:
  5778            description: "没有相关数据"
  5779    /v5/repos/{owner}/{repo}/notifications:
  5780      get:
  5781        tags:
  5782        - "Activity"
  5783        summary: "列出一个仓库里的通知"
  5784        description: "列出一个仓库里的通知"
  5785        operationId: "getV5ReposOwnerRepoNotifications"
  5786        consumes:
  5787        - "application/json"
  5788        - "multipart/form-data"
  5789        produces:
  5790        - "application/json"
  5791        parameters:
  5792        - name: "access_token"
  5793          in: "query"
  5794          description: "用户授权码"
  5795          required: false
  5796          type: "string"
  5797          x-exportParamName: "AccessToken"
  5798          x-optionalDataType: "String"
  5799        - name: "owner"
  5800          in: "path"
  5801          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  5802          required: true
  5803          type: "string"
  5804          x-exportParamName: "Owner"
  5805        - name: "repo"
  5806          in: "path"
  5807          description: "仓库路径(path)"
  5808          required: true
  5809          type: "string"
  5810          x-exportParamName: "Repo"
  5811        - name: "unread"
  5812          in: "query"
  5813          description: "是否只获取未读消息,默认:否"
  5814          required: false
  5815          type: "boolean"
  5816          x-exportParamName: "Unread"
  5817          x-optionalDataType: "Bool"
  5818        - name: "participating"
  5819          in: "query"
  5820          description: "是否只获取自己直接参与的消息,默认:否"
  5821          required: false
  5822          type: "boolean"
  5823          x-exportParamName: "Participating"
  5824          x-optionalDataType: "Bool"
  5825        - name: "type"
  5826          in: "query"
  5827          description: "筛选指定类型的通知,all:所有,event:事件通知,referer:@ 通知"
  5828          required: false
  5829          type: "string"
  5830          default: "all"
  5831          enum:
  5832          - "all"
  5833          - "event"
  5834          - "referer"
  5835          x-exportParamName: "Type_"
  5836          x-optionalDataType: "String"
  5837        - name: "since"
  5838          in: "query"
  5839          description: "只获取在给定时间后更新的消息,要求时间格式为 ISO 8601"
  5840          required: false
  5841          type: "string"
  5842          x-exportParamName: "Since"
  5843          x-optionalDataType: "String"
  5844        - name: "before"
  5845          in: "query"
  5846          description: "只获取在给定时间前更新的消息,要求时间格式为 ISO 8601"
  5847          required: false
  5848          type: "string"
  5849          x-exportParamName: "Before"
  5850          x-optionalDataType: "String"
  5851        - name: "ids"
  5852          in: "query"
  5853          description: "指定一组通知 ID,以 , 分隔"
  5854          required: false
  5855          type: "string"
  5856          x-exportParamName: "Ids"
  5857          x-optionalDataType: "String"
  5858        - name: "page"
  5859          in: "query"
  5860          description: "当前的页码"
  5861          required: false
  5862          type: "integer"
  5863          default: 1
  5864          format: "int32"
  5865          x-exportParamName: "Page"
  5866          x-optionalDataType: "Int32"
  5867        - name: "per_page"
  5868          in: "query"
  5869          description: "每页的数量,最大为 100"
  5870          required: false
  5871          type: "integer"
  5872          default: 20
  5873          format: "int32"
  5874          x-exportParamName: "PerPage"
  5875          x-optionalDataType: "Int32"
  5876        responses:
  5877          200:
  5878            description: "返回格式"
  5879            schema:
  5880              type: "array"
  5881              items:
  5882                $ref: "#/definitions/UserNotificationList"
  5883          403:
  5884            description: "没有权限"
  5885          404:
  5886            description: "没有相关数据"
  5887      put:
  5888        tags:
  5889        - "Activity"
  5890        summary: "标记一个仓库里的通知为已读"
  5891        description: "标记一个仓库里的通知为已读"
  5892        operationId: "putV5ReposOwnerRepoNotifications"
  5893        consumes:
  5894        - "application/json"
  5895        - "multipart/form-data"
  5896        produces:
  5897        - "application/json"
  5898        parameters:
  5899        - name: "access_token"
  5900          in: "formData"
  5901          description: "用户授权码"
  5902          required: false
  5903          type: "string"
  5904          x-exportParamName: "AccessToken"
  5905          x-optionalDataType: "String"
  5906        - name: "owner"
  5907          in: "path"
  5908          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  5909          required: true
  5910          type: "string"
  5911          x-exportParamName: "Owner"
  5912        - name: "repo"
  5913          in: "path"
  5914          description: "仓库路径(path)"
  5915          required: true
  5916          type: "string"
  5917          x-exportParamName: "Repo"
  5918        - name: "ids"
  5919          in: "formData"
  5920          description: "指定一组通知 ID,以 , 分隔"
  5921          required: false
  5922          type: "string"
  5923          x-exportParamName: "Ids"
  5924          x-optionalDataType: "String"
  5925        responses:
  5926          205:
  5927            description: "执行成功"
  5928          403:
  5929            description: "没有权限"
  5930    /v5/emails:
  5931      get:
  5932        tags:
  5933        - "Emails"
  5934        summary: "获取授权用户的所有邮箱"
  5935        description: "获取授权用户的所有邮箱"
  5936        operationId: "getV5Emails"
  5937        consumes:
  5938        - "application/json"
  5939        - "multipart/form-data"
  5940        produces:
  5941        - "application/json"
  5942        parameters:
  5943        - name: "access_token"
  5944          in: "query"
  5945          description: "用户授权码"
  5946          required: false
  5947          type: "string"
  5948          x-exportParamName: "AccessToken"
  5949          x-optionalDataType: "String"
  5950        responses:
  5951          200:
  5952            description: "返回格式"
  5953            schema:
  5954              type: "array"
  5955              items:
  5956                $ref: "#/definitions/Email"
  5957          404:
  5958            description: "没有相关数据"
  5959    /v5/user/keys:
  5960      get:
  5961        tags:
  5962        - "Users"
  5963        summary: "列出授权用户的所有公钥"
  5964        description: "列出授权用户的所有公钥"
  5965        operationId: "getV5UserKeys"
  5966        consumes:
  5967        - "application/json"
  5968        - "multipart/form-data"
  5969        produces:
  5970        - "application/json"
  5971        parameters:
  5972        - name: "access_token"
  5973          in: "query"
  5974          description: "用户授权码"
  5975          required: false
  5976          type: "string"
  5977          x-exportParamName: "AccessToken"
  5978          x-optionalDataType: "String"
  5979        - name: "page"
  5980          in: "query"
  5981          description: "当前的页码"
  5982          required: false
  5983          type: "integer"
  5984          default: 1
  5985          format: "int32"
  5986          x-exportParamName: "Page"
  5987          x-optionalDataType: "Int32"
  5988        - name: "per_page"
  5989          in: "query"
  5990          description: "每页的数量,最大为 100"
  5991          required: false
  5992          type: "integer"
  5993          default: 20
  5994          format: "int32"
  5995          x-exportParamName: "PerPage"
  5996          x-optionalDataType: "Int32"
  5997        responses:
  5998          200:
  5999            description: "返回格式"
  6000            schema:
  6001              type: "array"
  6002              items:
  6003                $ref: "#/definitions/SSHKey"
  6004      post:
  6005        tags:
  6006        - "Users"
  6007        summary: "添加一个公钥"
  6008        description: "添加一个公钥"
  6009        operationId: "postV5UserKeys"
  6010        consumes:
  6011        - "application/json"
  6012        - "multipart/form-data"
  6013        produces:
  6014        - "application/json"
  6015        parameters:
  6016        - name: "access_token"
  6017          in: "formData"
  6018          description: "用户授权码"
  6019          required: false
  6020          type: "string"
  6021          x-exportParamName: "AccessToken"
  6022          x-optionalDataType: "String"
  6023        - name: "key"
  6024          in: "formData"
  6025          description: "公钥内容"
  6026          required: true
  6027          type: "string"
  6028          x-exportParamName: "Key"
  6029        - name: "title"
  6030          in: "formData"
  6031          description: "公钥名称"
  6032          required: true
  6033          type: "string"
  6034          x-exportParamName: "Title"
  6035        responses:
  6036          201:
  6037            description: "返回格式"
  6038            schema:
  6039              $ref: "#/definitions/SSHKey"
  6040          400:
  6041            description: "数据不合法"
  6042    /v5/user/keys/{id}:
  6043      get:
  6044        tags:
  6045        - "Users"
  6046        summary: "获取一个公钥"
  6047        description: "获取一个公钥"
  6048        operationId: "getV5UserKeysId"
  6049        consumes:
  6050        - "application/json"
  6051        - "multipart/form-data"
  6052        produces:
  6053        - "application/json"
  6054        parameters:
  6055        - name: "access_token"
  6056          in: "query"
  6057          description: "用户授权码"
  6058          required: false
  6059          type: "string"
  6060          x-exportParamName: "AccessToken"
  6061          x-optionalDataType: "String"
  6062        - name: "id"
  6063          in: "path"
  6064          description: "公钥 ID"
  6065          required: true
  6066          type: "integer"
  6067          format: "int32"
  6068          x-exportParamName: "Id"
  6069        responses:
  6070          200:
  6071            description: "返回格式"
  6072            schema:
  6073              $ref: "#/definitions/SSHKey"
  6074          404:
  6075            description: "没有相关数据"
  6076      delete:
  6077        tags:
  6078        - "Users"
  6079        summary: "删除一个公钥"
  6080        description: "删除一个公钥"
  6081        operationId: "deleteV5UserKeysId"
  6082        consumes:
  6083        - "application/json"
  6084        - "multipart/form-data"
  6085        produces:
  6086        - "application/json"
  6087        parameters:
  6088        - name: "access_token"
  6089          in: "query"
  6090          description: "用户授权码"
  6091          required: false
  6092          type: "string"
  6093          x-exportParamName: "AccessToken"
  6094          x-optionalDataType: "String"
  6095        - name: "id"
  6096          in: "path"
  6097          description: "公钥 ID"
  6098          required: true
  6099          type: "integer"
  6100          format: "int32"
  6101          x-exportParamName: "Id"
  6102        responses:
  6103          204:
  6104            description: "执行成功"
  6105          404:
  6106            description: "没有相关数据"
  6107    /v5/user/orgs:
  6108      get:
  6109        tags:
  6110        - "Organizations"
  6111        summary: "列出授权用户所属的组织"
  6112        description: "列出授权用户所属的组织"
  6113        operationId: "getV5UserOrgs"
  6114        consumes:
  6115        - "application/json"
  6116        - "multipart/form-data"
  6117        produces:
  6118        - "application/json"
  6119        parameters:
  6120        - name: "access_token"
  6121          in: "query"
  6122          description: "用户授权码"
  6123          required: false
  6124          type: "string"
  6125          x-exportParamName: "AccessToken"
  6126          x-optionalDataType: "String"
  6127        - name: "page"
  6128          in: "query"
  6129          description: "当前的页码"
  6130          required: false
  6131          type: "integer"
  6132          default: 1
  6133          format: "int32"
  6134          x-exportParamName: "Page"
  6135          x-optionalDataType: "Int32"
  6136        - name: "per_page"
  6137          in: "query"
  6138          description: "每页的数量,最大为 100"
  6139          required: false
  6140          type: "integer"
  6141          default: 20
  6142          format: "int32"
  6143          x-exportParamName: "PerPage"
  6144          x-optionalDataType: "Int32"
  6145        - name: "admin"
  6146          in: "query"
  6147          description: "只列出授权用户管理的组织"
  6148          required: false
  6149          type: "boolean"
  6150          x-exportParamName: "Admin"
  6151          x-optionalDataType: "Bool"
  6152        responses:
  6153          200:
  6154            description: "返回格式"
  6155            schema:
  6156              type: "array"
  6157              items:
  6158                $ref: "#/definitions/Group"
  6159    /v5/user/issues:
  6160      get:
  6161        tags:
  6162        - "Issues"
  6163        summary: "获取授权用户的所有Issues"
  6164        description: "获取授权用户的所有Issues"
  6165        operationId: "getV5UserIssues"
  6166        consumes:
  6167        - "application/json"
  6168        - "multipart/form-data"
  6169        produces:
  6170        - "application/json"
  6171        parameters:
  6172        - name: "access_token"
  6173          in: "query"
  6174          description: "用户授权码"
  6175          required: false
  6176          type: "string"
  6177          x-exportParamName: "AccessToken"
  6178          x-optionalDataType: "String"
  6179        - name: "filter"
  6180          in: "query"
  6181          description: "筛选参数: 授权用户负责的(assigned),授权用户创建的(created),包含前两者的(all)。默认: assigned"
  6182          required: false
  6183          type: "string"
  6184          default: "assigned"
  6185          enum:
  6186          - "assigned"
  6187          - "created"
  6188          - "all"
  6189          x-exportParamName: "Filter"
  6190          x-optionalDataType: "String"
  6191        - name: "state"
  6192          in: "query"
  6193          description: "Issue的状态: open(开启的), progressing(进行中), closed(关闭的), rejected(\
  6194            拒绝的)。 默认: open"
  6195          required: false
  6196          type: "string"
  6197          default: "open"
  6198          enum:
  6199          - "open"
  6200          - "progressing"
  6201          - "closed"
  6202          - "rejected"
  6203          - "all"
  6204          x-exportParamName: "State"
  6205          x-optionalDataType: "String"
  6206        - name: "labels"
  6207          in: "query"
  6208          description: "用逗号分开的标签。如: bug,performance"
  6209          required: false
  6210          type: "string"
  6211          x-exportParamName: "Labels"
  6212          x-optionalDataType: "String"
  6213        - name: "sort"
  6214          in: "query"
  6215          description: "排序依据: 创建时间(created),更新时间(updated_at)。默认: created_at"
  6216          required: false
  6217          type: "string"
  6218          default: "created"
  6219          enum:
  6220          - "created"
  6221          - "updated"
  6222          x-exportParamName: "Sort"
  6223          x-optionalDataType: "String"
  6224        - name: "direction"
  6225          in: "query"
  6226          description: "排序方式: 升序(asc),降序(desc)。默认: desc"
  6227          required: false
  6228          type: "string"
  6229          default: "desc"
  6230          enum:
  6231          - "asc"
  6232          - "desc"
  6233          x-exportParamName: "Direction"
  6234          x-optionalDataType: "String"
  6235        - name: "since"
  6236          in: "query"
  6237          description: "起始的更新时间,要求时间格式为 ISO 8601"
  6238          required: false
  6239          type: "string"
  6240          x-exportParamName: "Since"
  6241          x-optionalDataType: "String"
  6242        - name: "page"
  6243          in: "query"
  6244          description: "当前的页码"
  6245          required: false
  6246          type: "integer"
  6247          default: 1
  6248          format: "int32"
  6249          x-exportParamName: "Page"
  6250          x-optionalDataType: "Int32"
  6251        - name: "per_page"
  6252          in: "query"
  6253          description: "每页的数量,最大为 100"
  6254          required: false
  6255          type: "integer"
  6256          default: 20
  6257          format: "int32"
  6258          x-exportParamName: "PerPage"
  6259          x-optionalDataType: "Int32"
  6260        - name: "schedule"
  6261          in: "query"
  6262          description: "计划开始日期,格式:20181006T173008+80-20181007T173008+80(区间),或者 -20181007T173008+80(\
  6263            小于20181007T173008+80),或者 20181006T173008+80-(大于20181006T173008+80),要求时间格\
  6264            式为20181006T173008+80"
  6265          required: false
  6266          type: "string"
  6267          x-exportParamName: "Schedule"
  6268          x-optionalDataType: "String"
  6269        - name: "deadline"
  6270          in: "query"
  6271          description: "计划截止日期,格式同上"
  6272          required: false
  6273          type: "string"
  6274          x-exportParamName: "Deadline"
  6275          x-optionalDataType: "String"
  6276        - name: "created_at"
  6277          in: "query"
  6278          description: "任务创建时间,格式同上"
  6279          required: false
  6280          type: "string"
  6281          x-exportParamName: "CreatedAt"
  6282          x-optionalDataType: "String"
  6283        - name: "finished_at"
  6284          in: "query"
  6285          description: "任务完成时间,即任务最后一次转为已完成状态的时间点。格式同上"
  6286          required: false
  6287          type: "string"
  6288          x-exportParamName: "FinishedAt"
  6289          x-optionalDataType: "String"
  6290        responses:
  6291          200:
  6292            description: "返回格式"
  6293            schema:
  6294              type: "array"
  6295              items:
  6296                $ref: "#/definitions/Issue"
  6297    /v5/user/repos:
  6298      get:
  6299        tags:
  6300        - "Repositories"
  6301        summary: "列出授权用户的所有仓库"
  6302        description: "列出授权用户的所有仓库"
  6303        operationId: "getV5UserRepos"
  6304        consumes:
  6305        - "application/json"
  6306        - "multipart/form-data"
  6307        produces:
  6308        - "application/json"
  6309        parameters:
  6310        - name: "access_token"
  6311          in: "query"
  6312          description: "用户授权码"
  6313          required: false
  6314          type: "string"
  6315          x-exportParamName: "AccessToken"
  6316          x-optionalDataType: "String"
  6317        - name: "visibility"
  6318          in: "query"
  6319          description: "公开(public)、私有(private)或者所有(all),默认: 所有(all)"
  6320          required: false
  6321          type: "string"
  6322          enum:
  6323          - "private"
  6324          - "public"
  6325          - "all"
  6326          x-exportParamName: "Visibility"
  6327          x-optionalDataType: "String"
  6328        - name: "affiliation"
  6329          in: "query"
  6330          description: "owner(授权用户拥有的仓库)、collaborator(授权用户为仓库成员)、organization_member(授\
  6331            权用户为仓库所在组织并有访问仓库权限)、enterprise_member(授权用户所在企业并有访问仓库权限)、admin(所有有权限的,包括所\
  6332            管理的组织中所有仓库、所管理的企业的所有仓库)。\n                   可以用逗号分隔符组合。如: owner, organization_member\
  6333            \ 或 owner, collaborator, organization_member"
  6334          required: false
  6335          type: "string"
  6336          x-exportParamName: "Affiliation"
  6337          x-optionalDataType: "String"
  6338        - name: "type"
  6339          in: "query"
  6340          description: "筛选用户仓库: 其创建(owner)、个人(personal)、其为成员(member)、公开(public)、私有(private),\
  6341            不能与 visibility 或 affiliation 参数一并使用,否则会报 422 错误"
  6342          required: false
  6343          type: "string"
  6344          enum:
  6345          - "all"
  6346          - "owner"
  6347          - "personal"
  6348          - "member"
  6349          - "public"
  6350          - "private"
  6351          x-exportParamName: "Type_"
  6352          x-optionalDataType: "String"
  6353        - name: "sort"
  6354          in: "query"
  6355          description: "排序方式: 创建时间(created),更新时间(updated),最后推送时间(pushed),仓库所属与名称(full_name)。\
  6356            默认: full_name"
  6357          required: false
  6358          type: "string"
  6359          default: "full_name"
  6360          enum:
  6361          - "created"
  6362          - "updated"
  6363          - "pushed"
  6364          - "full_name"
  6365          x-exportParamName: "Sort"
  6366          x-optionalDataType: "String"
  6367        - name: "direction"
  6368          in: "query"
  6369          description: "如果sort参数为full_name,用升序(asc)。否则降序(desc)"
  6370          required: false
  6371          type: "string"
  6372          enum:
  6373          - "asc"
  6374          - "desc"
  6375          x-exportParamName: "Direction"
  6376          x-optionalDataType: "String"
  6377        - name: "page"
  6378          in: "query"
  6379          description: "当前的页码"
  6380          required: false
  6381          type: "integer"
  6382          default: 1
  6383          format: "int32"
  6384          x-exportParamName: "Page"
  6385          x-optionalDataType: "Int32"
  6386        - name: "per_page"
  6387          in: "query"
  6388          description: "每页的数量,最大为 100"
  6389          required: false
  6390          type: "integer"
  6391          default: 20
  6392          format: "int32"
  6393          x-exportParamName: "PerPage"
  6394          x-optionalDataType: "Int32"
  6395        responses:
  6396          200:
  6397            description: "返回格式"
  6398            schema:
  6399              $ref: "#/definitions/Project"
  6400      post:
  6401        tags:
  6402        - "Repositories"
  6403        summary: "创建一个仓库"
  6404        description: "创建一个仓库"
  6405        operationId: "postV5UserRepos"
  6406        consumes:
  6407        - "application/json"
  6408        - "multipart/form-data"
  6409        produces:
  6410        - "application/json"
  6411        parameters:
  6412        - name: "access_token"
  6413          in: "formData"
  6414          description: "用户授权码"
  6415          required: false
  6416          type: "string"
  6417          x-exportParamName: "AccessToken"
  6418          x-optionalDataType: "String"
  6419        - name: "name"
  6420          in: "formData"
  6421          description: "仓库名称"
  6422          required: true
  6423          type: "string"
  6424          x-exportParamName: "Name"
  6425        - name: "description"
  6426          in: "formData"
  6427          description: "仓库描述"
  6428          required: false
  6429          type: "string"
  6430          x-exportParamName: "Description"
  6431          x-optionalDataType: "String"
  6432        - name: "homepage"
  6433          in: "formData"
  6434          description: "主页(eg: https://gitee.com)"
  6435          required: false
  6436          type: "string"
  6437          x-exportParamName: "Homepage"
  6438          x-optionalDataType: "String"
  6439        - name: "has_issues"
  6440          in: "formData"
  6441          description: "允许提Issue与否。默认: 允许(true)"
  6442          required: false
  6443          type: "boolean"
  6444          default: true
  6445          x-exportParamName: "HasIssues"
  6446          x-optionalDataType: "Bool"
  6447        - name: "has_wiki"
  6448          in: "formData"
  6449          description: "提供Wiki与否。默认: 提供(true)"
  6450          required: false
  6451          type: "boolean"
  6452          default: true
  6453          x-exportParamName: "HasWiki"
  6454          x-optionalDataType: "Bool"
  6455        - name: "can_comment"
  6456          in: "formData"
  6457          description: "允许用户对仓库进行评论。默认: 允许(true)"
  6458          required: false
  6459          type: "boolean"
  6460          default: true
  6461          x-exportParamName: "CanComment"
  6462          x-optionalDataType: "Bool"
  6463        - name: "auto_init"
  6464          in: "formData"
  6465          description: "值为true时则会用README初始化仓库。默认: 不初始化(false)"
  6466          required: false
  6467          type: "boolean"
  6468          x-exportParamName: "AutoInit"
  6469          x-optionalDataType: "Bool"
  6470        - name: "gitignore_template"
  6471          in: "formData"
  6472          description: "Git Ingore模版"
  6473          required: false
  6474          type: "string"
  6475          enum:
  6476          - "Actionscript"
  6477          - "Ada"
  6478          - "Agda"
  6479          - "Android"
  6480          - "AppEngine"
  6481          - "AppceleratorTitanium"
  6482          - "ArchLinuxPackages"
  6483          - "Autotools"
  6484          - "C"
  6485          - "C++"
  6486          - "CFWheels"
  6487          - "CMake"
  6488          - "CUDA"
  6489          - "CakePHP"
  6490          - "ChefCookbook"
  6491          - "Clojure"
  6492          - "CodeIgniter"
  6493          - "CommonLisp"
  6494          - "Composer"
  6495          - "Concrete5"
  6496          - "Coq"
  6497          - "CraftCMS"
  6498          - "D"
  6499          - "DM"
  6500          - "Dart"
  6501          - "Delphi"
  6502          - "Drupal"
  6503          - "EPiServer"
  6504          - "Eagle"
  6505          - "Elisp"
  6506          - "Elixir"
  6507          - "Elm"
  6508          - "Erlang"
  6509          - "ExpressionEngine"
  6510          - "ExtJs"
  6511          - "Fancy"
  6512          - "Finale"
  6513          - "Flutter"
  6514          - "ForceDotCom"
  6515          - "Fortran"
  6516          - "FuelPHP"
  6517          - "GWT"
  6518          - "Gcov"
  6519          - "GitBook"
  6520          - "Global/Anjuta"
  6521          - "Global/Ansible"
  6522          - "Global/Archives"
  6523          - "Global/Backup"
  6524          - "Global/Bazaar"
  6525          - "Global/BricxCC"
  6526          - "Global/CVS"
  6527          - "Global/Calabash"
  6528          - "Global/Cloud9"
  6529          - "Global/CodeKit"
  6530          - "Global/DartEditor"
  6531          - "Global/Diff"
  6532          - "Global/Dreamweaver"
  6533          - "Global/Dropbox"
  6534          - "Global/Eclipse"
  6535          - "Global/EiffelStudio"
  6536          - "Global/Emacs"
  6537          - "Global/Ensime"
  6538          - "Global/Espresso"
  6539          - "Global/FlexBuilder"
  6540          - "Global/GPG"
  6541          - "Global/Images"
  6542          - "Global/JDeveloper"
  6543          - "Global/JEnv"
  6544          - "Global/JetBrains"
  6545          - "Global/KDevelop4"
  6546          - "Global/Kate"
  6547          - "Global/Lazarus"
  6548          - "Global/LibreOffice"
  6549          - "Global/Linux"
  6550          - "Global/LyX"
  6551          - "Global/MATLAB"
  6552          - "Global/Mercurial"
  6553          - "Global/MicrosoftOffice"
  6554          - "Global/ModelSim"
  6555          - "Global/Momentics"
  6556          - "Global/MonoDevelop"
  6557          - "Global/NetBeans"
  6558          - "Global/Ninja"
  6559          - "Global/NotepadPP"
  6560          - "Global/Octave"
  6561          - "Global/Otto"
  6562          - "Global/PSoCCreator"
  6563          - "Global/Patch"
  6564          - "Global/PuTTY"
  6565          - "Global/Redcar"
  6566          - "Global/Redis"
  6567          - "Global/SBT"
  6568          - "Global/SVN"
  6569          - "Global/SlickEdit"
  6570          - "Global/Stata"
  6571          - "Global/SublimeText"
  6572          - "Global/SynopsysVCS"
  6573          - "Global/Tags"
  6574          - "Global/TextMate"
  6575          - "Global/TortoiseGit"
  6576          - "Global/Vagrant"
  6577          - "Global/Vim"
  6578          - "Global/VirtualEnv"
  6579          - "Global/Virtuoso"
  6580          - "Global/VisualStudioCode"
  6581          - "Global/WebMethods"
  6582          - "Global/Windows"
  6583          - "Global/Xcode"
  6584          - "Global/XilinxISE"
  6585          - "Global/macOS"
  6586          - "Go"
  6587          - "Godot"
  6588          - "Gradle"
  6589          - "Grails"
  6590          - "Haskell"
  6591          - "IGORPro"
  6592          - "Idris"
  6593          - "JBoss"
  6594          - "Java"
  6595          - "Jekyll"
  6596          - "Joomla"
  6597          - "Julia"
  6598          - "KiCad"
  6599          - "Kohana"
  6600          - "Kotlin"
  6601          - "LabVIEW"
  6602          - "Laravel"
  6603          - "Leiningen"
  6604          - "LemonStand"
  6605          - "Lilypond"
  6606          - "Lithium"
  6607          - "Lua"
  6608          - "Magento"
  6609          - "Maven"
  6610          - "Mercury"
  6611          - "MetaProgrammingSystem"
  6612          - "MiniProgram"
  6613          - "Nanoc"
  6614          - "Nim"
  6615          - "Node"
  6616          - "OCaml"
  6617          - "Objective-C"
  6618          - "Opa"
  6619          - "OpenCart"
  6620          - "OracleForms"
  6621          - "Packer"
  6622          - "Perl"
  6623          - "Perl6"
  6624          - "Phalcon"
  6625          - "PlayFramework"
  6626          - "Plone"
  6627          - "Prestashop"
  6628          - "Processing"
  6629          - "PureScript"
  6630          - "Python"
  6631          - "Qooxdoo"
  6632          - "Qt"
  6633          - "R"
  6634          - "ROS"
  6635          - "Rails"
  6636          - "RhodesRhomobile"
  6637          - "Ruby"
  6638          - "Rust"
  6639          - "SCons"
  6640          - "Sass"
  6641          - "Scala"
  6642          - "Scheme"
  6643          - "Scrivener"
  6644          - "Sdcc"
  6645          - "SeamGen"
  6646          - "SketchUp"
  6647          - "Smalltalk"
  6648          - "Stella"
  6649          - "SugarCRM"
  6650          - "Swift"
  6651          - "Symfony"
  6652          - "SymphonyCMS"
  6653          - "TeX"
  6654          - "Terraform"
  6655          - "Textpattern"
  6656          - "TurboGears2"
  6657          - "Typo3"
  6658          - "Umbraco"
  6659          - "Unity"
  6660          - "UnrealEngine"
  6661          - "VVVV"
  6662          - "VisualStudio"
  6663          - "Waf"
  6664          - "WordPress"
  6665          - "Xojo"
  6666          - "Yeoman"
  6667          - "Yii"
  6668          - "ZendFramework"
  6669          - "Zephir"
  6670          x-exportParamName: "GitignoreTemplate"
  6671          x-optionalDataType: "String"
  6672        - name: "license_template"
  6673          in: "formData"
  6674          description: "License模版"
  6675          required: false
  6676          type: "string"
  6677          enum:
  6678          - "MulanPSL-1.0"
  6679          - "AFL-3.0"
  6680          - "AGPL-3.0"
  6681          - "Apache-2.0"
  6682          - "Artistic-2.0"
  6683          - "BSD-2-Clause"
  6684          - "BSD-3-Clause"
  6685          - "BSD-3-Clause-Clear"
  6686          - "BSL-1.0"
  6687          - "CC-BY-4.0"
  6688          - "CC-BY-SA-4.0"
  6689          - "CC0-1.0"
  6690          - "ECL-2.0"
  6691          - "EPL-1.0"
  6692          - "EUPL-1.1"
  6693          - "GPL-2.0"
  6694          - "GPL-3.0"
  6695          - "ISC"
  6696          - "LGPL-2.1"
  6697          - "LGPL-3.0"
  6698          - "LPPL-1.3c"
  6699          - "MIT"
  6700          - "MPL-2.0"
  6701          - "MS-PL"
  6702          - "MS-RL"
  6703          - "NCSA"
  6704          - "OFL-1.1"
  6705          - "OSL-3.0"
  6706          - "PostgreSQL"
  6707          - "Unlicense"
  6708          - "WTFPL"
  6709          - "Zlib"
  6710          x-exportParamName: "LicenseTemplate"
  6711          x-optionalDataType: "String"
  6712        - name: "private"
  6713          in: "formData"
  6714          description: "仓库公开或私有。默认: 公开(false)"
  6715          required: false
  6716          type: "boolean"
  6717          x-exportParamName: "Private"
  6718          x-optionalDataType: "Bool"
  6719        responses:
  6720          201:
  6721            description: "返回格式"
  6722            schema:
  6723              $ref: "#/definitions/Project"
  6724    /v5/user:
  6725      get:
  6726        tags:
  6727        - "Users"
  6728        summary: "获取授权用户的资料"
  6729        description: "获取授权用户的资料"
  6730        operationId: "getV5User"
  6731        consumes:
  6732        - "application/json"
  6733        - "multipart/form-data"
  6734        produces:
  6735        - "application/json"
  6736        parameters:
  6737        - name: "access_token"
  6738          in: "query"
  6739          description: "用户授权码"
  6740          required: false
  6741          type: "string"
  6742          x-exportParamName: "AccessToken"
  6743          x-optionalDataType: "String"
  6744        responses:
  6745          200:
  6746            description: "返回格式"
  6747            schema:
  6748              $ref: "#/definitions/User"
  6749          404:
  6750            description: "没有相关数据"
  6751      patch:
  6752        tags:
  6753        - "Users"
  6754        summary: "更新授权用户的资料"
  6755        description: "更新授权用户的资料"
  6756        operationId: "patchV5User"
  6757        consumes:
  6758        - "application/json"
  6759        - "multipart/form-data"
  6760        produces:
  6761        - "application/json"
  6762        parameters:
  6763        - name: "access_token"
  6764          in: "formData"
  6765          description: "用户授权码"
  6766          required: false
  6767          type: "string"
  6768          x-exportParamName: "AccessToken"
  6769          x-optionalDataType: "String"
  6770        - name: "name"
  6771          in: "formData"
  6772          description: "昵称"
  6773          required: false
  6774          type: "string"
  6775          x-exportParamName: "Name"
  6776          x-optionalDataType: "String"
  6777        - name: "blog"
  6778          in: "formData"
  6779          description: "微博链接"
  6780          required: false
  6781          type: "string"
  6782          x-exportParamName: "Blog"
  6783          x-optionalDataType: "String"
  6784        - name: "weibo"
  6785          in: "formData"
  6786          description: "博客站点"
  6787          required: false
  6788          type: "string"
  6789          x-exportParamName: "Weibo"
  6790          x-optionalDataType: "String"
  6791        - name: "bio"
  6792          in: "formData"
  6793          description: "自我介绍"
  6794          required: false
  6795          type: "string"
  6796          x-exportParamName: "Bio"
  6797          x-optionalDataType: "String"
  6798        responses:
  6799          200:
  6800            description: "返回格式"
  6801            schema:
  6802              $ref: "#/definitions/User"
  6803    /v5/user/followers:
  6804      get:
  6805        tags:
  6806        - "Users"
  6807        summary: "列出授权用户的关注者"
  6808        description: "列出授权用户的关注者"
  6809        operationId: "getV5UserFollowers"
  6810        consumes:
  6811        - "application/json"
  6812        - "multipart/form-data"
  6813        produces:
  6814        - "application/json"
  6815        parameters:
  6816        - name: "access_token"
  6817          in: "query"
  6818          description: "用户授权码"
  6819          required: false
  6820          type: "string"
  6821          x-exportParamName: "AccessToken"
  6822          x-optionalDataType: "String"
  6823        - name: "page"
  6824          in: "query"
  6825          description: "当前的页码"
  6826          required: false
  6827          type: "integer"
  6828          default: 1
  6829          format: "int32"
  6830          x-exportParamName: "Page"
  6831          x-optionalDataType: "Int32"
  6832        - name: "per_page"
  6833          in: "query"
  6834          description: "每页的数量,最大为 100"
  6835          required: false
  6836          type: "integer"
  6837          default: 20
  6838          format: "int32"
  6839          x-exportParamName: "PerPage"
  6840          x-optionalDataType: "Int32"
  6841        responses:
  6842          200:
  6843            description: "返回格式"
  6844            schema:
  6845              type: "array"
  6846              items:
  6847                $ref: "#/definitions/UserBasic"
  6848    /v5/user/following:
  6849      get:
  6850        tags:
  6851        - "Users"
  6852        summary: "列出授权用户正关注的用户"
  6853        description: "列出授权用户正关注的用户"
  6854        operationId: "getV5UserFollowing"
  6855        consumes:
  6856        - "application/json"
  6857        - "multipart/form-data"
  6858        produces:
  6859        - "application/json"
  6860        parameters:
  6861        - name: "access_token"
  6862          in: "query"
  6863          description: "用户授权码"
  6864          required: false
  6865          type: "string"
  6866          x-exportParamName: "AccessToken"
  6867          x-optionalDataType: "String"
  6868        - name: "page"
  6869          in: "query"
  6870          description: "当前的页码"
  6871          required: false
  6872          type: "integer"
  6873          default: 1
  6874          format: "int32"
  6875          x-exportParamName: "Page"
  6876          x-optionalDataType: "Int32"
  6877        - name: "per_page"
  6878          in: "query"
  6879          description: "每页的数量,最大为 100"
  6880          required: false
  6881          type: "integer"
  6882          default: 20
  6883          format: "int32"
  6884          x-exportParamName: "PerPage"
  6885          x-optionalDataType: "Int32"
  6886        responses:
  6887          200:
  6888            description: "返回格式"
  6889            schema:
  6890              type: "array"
  6891              items:
  6892                $ref: "#/definitions/UserBasic"
  6893    /v5/user/namespaces:
  6894      get:
  6895        tags:
  6896        - "Users"
  6897        summary: "列出授权用户所有的 Namespace"
  6898        description: "列出授权用户所有的 Namespace"
  6899        operationId: "getV5UserNamespaces"
  6900        consumes:
  6901        - "application/json"
  6902        - "multipart/form-data"
  6903        produces:
  6904        - "application/json"
  6905        parameters:
  6906        - name: "access_token"
  6907          in: "query"
  6908          description: "用户授权码"
  6909          required: false
  6910          type: "string"
  6911          x-exportParamName: "AccessToken"
  6912          x-optionalDataType: "String"
  6913        - name: "mode"
  6914          in: "query"
  6915          description: "参与方式: project(所有参与仓库的namepsce)、intrant(所加入的namespace)、all(包含\
  6916            前两者),默认(intrant)"
  6917          required: false
  6918          type: "string"
  6919          enum:
  6920          - "project"
  6921          - "intrant"
  6922          - "all"
  6923          x-exportParamName: "Mode"
  6924          x-optionalDataType: "String"
  6925        responses:
  6926          200:
  6927            description: "返回格式"
  6928            schema:
  6929              type: "array"
  6930              items:
  6931                $ref: "#/definitions/Namespace"
  6932    /v5/user/namespace:
  6933      get:
  6934        tags:
  6935        - "Users"
  6936        summary: "获取授权用户的一个 Namespace"
  6937        description: "获取授权用户的一个 Namespace"
  6938        operationId: "getV5UserNamespace"
  6939        consumes:
  6940        - "application/json"
  6941        - "multipart/form-data"
  6942        produces:
  6943        - "application/json"
  6944        parameters:
  6945        - name: "access_token"
  6946          in: "query"
  6947          description: "用户授权码"
  6948          required: false
  6949          type: "string"
  6950          x-exportParamName: "AccessToken"
  6951          x-optionalDataType: "String"
  6952        - name: "path"
  6953          in: "query"
  6954          description: "Namespace path"
  6955          required: true
  6956          type: "string"
  6957          x-exportParamName: "Path"
  6958        responses:
  6959          200:
  6960            description: "返回格式"
  6961            schema:
  6962              type: "array"
  6963              items:
  6964                $ref: "#/definitions/Namespace"
  6965    /v5/user/starred:
  6966      get:
  6967        tags:
  6968        - "Activity"
  6969        summary: "列出授权用户 star 了的仓库"
  6970        description: "列出授权用户 star 了的仓库"
  6971        operationId: "getV5UserStarred"
  6972        consumes:
  6973        - "application/json"
  6974        - "multipart/form-data"
  6975        produces:
  6976        - "application/json"
  6977        parameters:
  6978        - name: "access_token"
  6979          in: "query"
  6980          description: "用户授权码"
  6981          required: false
  6982          type: "string"
  6983          x-exportParamName: "AccessToken"
  6984          x-optionalDataType: "String"
  6985        - name: "sort"
  6986          in: "query"
  6987          description: "根据仓库创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间"
  6988          required: false
  6989          type: "string"
  6990          default: "created"
  6991          enum:
  6992          - "created"
  6993          - "last_push"
  6994          x-exportParamName: "Sort"
  6995          x-optionalDataType: "String"
  6996        - name: "direction"
  6997          in: "query"
  6998          description: "按递增(asc)或递减(desc)排序,默认:递减"
  6999          required: false
  7000          type: "string"
  7001          default: "desc"
  7002          enum:
  7003          - "asc"
  7004          - "desc"
  7005          x-exportParamName: "Direction"
  7006          x-optionalDataType: "String"
  7007        - name: "page"
  7008          in: "query"
  7009          description: "当前的页码"
  7010          required: false
  7011          type: "integer"
  7012          default: 1
  7013          format: "int32"
  7014          x-exportParamName: "Page"
  7015          x-optionalDataType: "Int32"
  7016        - name: "per_page"
  7017          in: "query"
  7018          description: "每页的数量,最大为 100"
  7019          required: false
  7020          type: "integer"
  7021          default: 20
  7022          format: "int32"
  7023          x-exportParamName: "PerPage"
  7024          x-optionalDataType: "Int32"
  7025        responses:
  7026          200:
  7027            description: "返回格式"
  7028            schema:
  7029              type: "array"
  7030              items:
  7031                $ref: "#/definitions/Project"
  7032          404:
  7033            description: "没有相关数据"
  7034    /v5/user/subscriptions:
  7035      get:
  7036        tags:
  7037        - "Activity"
  7038        summary: "列出授权用户 watch 了的仓库"
  7039        description: "列出授权用户 watch 了的仓库"
  7040        operationId: "getV5UserSubscriptions"
  7041        consumes:
  7042        - "application/json"
  7043        - "multipart/form-data"
  7044        produces:
  7045        - "application/json"
  7046        parameters:
  7047        - name: "access_token"
  7048          in: "query"
  7049          description: "用户授权码"
  7050          required: false
  7051          type: "string"
  7052          x-exportParamName: "AccessToken"
  7053          x-optionalDataType: "String"
  7054        - name: "sort"
  7055          in: "query"
  7056          description: "根据仓库创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间"
  7057          required: false
  7058          type: "string"
  7059          default: "created"
  7060          enum:
  7061          - "created"
  7062          - "last_push"
  7063          x-exportParamName: "Sort"
  7064          x-optionalDataType: "String"
  7065        - name: "direction"
  7066          in: "query"
  7067          description: "按递增(asc)或递减(desc)排序,默认:递减"
  7068          required: false
  7069          type: "string"
  7070          default: "desc"
  7071          enum:
  7072          - "asc"
  7073          - "desc"
  7074          x-exportParamName: "Direction"
  7075          x-optionalDataType: "String"
  7076        - name: "page"
  7077          in: "query"
  7078          description: "当前的页码"
  7079          required: false
  7080          type: "integer"
  7081          default: 1
  7082          format: "int32"
  7083          x-exportParamName: "Page"
  7084          x-optionalDataType: "Int32"
  7085        - name: "per_page"
  7086          in: "query"
  7087          description: "每页的数量,最大为 100"
  7088          required: false
  7089          type: "integer"
  7090          default: 20
  7091          format: "int32"
  7092          x-exportParamName: "PerPage"
  7093          x-optionalDataType: "Int32"
  7094        responses:
  7095          200:
  7096            description: "返回格式"
  7097            schema:
  7098              type: "array"
  7099              items:
  7100                $ref: "#/definitions/Project"
  7101    /v5/user/enterprises:
  7102      get:
  7103        tags:
  7104        - "Enterprises"
  7105        summary: "列出授权用户所属的企业"
  7106        description: "列出授权用户所属的企业"
  7107        operationId: "getV5UserEnterprises"
  7108        consumes:
  7109        - "application/json"
  7110        - "multipart/form-data"
  7111        produces:
  7112        - "application/json"
  7113        parameters:
  7114        - name: "access_token"
  7115          in: "query"
  7116          description: "用户授权码"
  7117          required: false
  7118          type: "string"
  7119          x-exportParamName: "AccessToken"
  7120          x-optionalDataType: "String"
  7121        - name: "page"
  7122          in: "query"
  7123          description: "当前的页码"
  7124          required: false
  7125          type: "integer"
  7126          default: 1
  7127          format: "int32"
  7128          x-exportParamName: "Page"
  7129          x-optionalDataType: "Int32"
  7130        - name: "per_page"
  7131          in: "query"
  7132          description: "每页的数量,最大为 100"
  7133          required: false
  7134          type: "integer"
  7135          default: 20
  7136          format: "int32"
  7137          x-exportParamName: "PerPage"
  7138          x-optionalDataType: "Int32"
  7139        - name: "admin"
  7140          in: "query"
  7141          description: "只列出授权用户管理的企业"
  7142          required: false
  7143          type: "boolean"
  7144          default: true
  7145          x-exportParamName: "Admin"
  7146          x-optionalDataType: "Bool"
  7147        responses:
  7148          200:
  7149            description: "返回格式"
  7150            schema:
  7151              type: "array"
  7152              items:
  7153                $ref: "#/definitions/EnterpriseBasic"
  7154    /v5/user/memberships/orgs:
  7155      get:
  7156        tags:
  7157        - "Organizations"
  7158        summary: "列出授权用户在所属组织的成员资料"
  7159        description: "列出授权用户在所属组织的成员资料"
  7160        operationId: "getV5UserMembershipsOrgs"
  7161        consumes:
  7162        - "application/json"
  7163        - "multipart/form-data"
  7164        produces:
  7165        - "application/json"
  7166        parameters:
  7167        - name: "access_token"
  7168          in: "query"
  7169          description: "用户授权码"
  7170          required: false
  7171          type: "string"
  7172          x-exportParamName: "AccessToken"
  7173          x-optionalDataType: "String"
  7174        - name: "active"
  7175          in: "query"
  7176          description: "根据成员是否已激活进行筛选资料,缺省返回所有资料"
  7177          required: false
  7178          type: "boolean"
  7179          x-exportParamName: "Active"
  7180          x-optionalDataType: "Bool"
  7181        - name: "page"
  7182          in: "query"
  7183          description: "当前的页码"
  7184          required: false
  7185          type: "integer"
  7186          default: 1
  7187          format: "int32"
  7188          x-exportParamName: "Page"
  7189          x-optionalDataType: "Int32"
  7190        - name: "per_page"
  7191          in: "query"
  7192          description: "每页的数量,最大为 100"
  7193          required: false
  7194          type: "integer"
  7195          default: 20
  7196          format: "int32"
  7197          x-exportParamName: "PerPage"
  7198          x-optionalDataType: "Int32"
  7199        responses:
  7200          200:
  7201            description: "返回格式"
  7202            schema:
  7203              type: "array"
  7204              items:
  7205                $ref: "#/definitions/GroupMember"
  7206    /v5/user/memberships/orgs/{org}:
  7207      get:
  7208        tags:
  7209        - "Organizations"
  7210        summary: "获取授权用户在一个组织的成员资料"
  7211        description: "获取授权用户在一个组织的成员资料"
  7212        operationId: "getV5UserMembershipsOrgsOrg"
  7213        consumes:
  7214        - "application/json"
  7215        - "multipart/form-data"
  7216        produces:
  7217        - "application/json"
  7218        parameters:
  7219        - name: "access_token"
  7220          in: "query"
  7221          description: "用户授权码"
  7222          required: false
  7223          type: "string"
  7224          x-exportParamName: "AccessToken"
  7225          x-optionalDataType: "String"
  7226        - name: "org"
  7227          in: "path"
  7228          description: "组织的路径(path/login)"
  7229          required: true
  7230          type: "string"
  7231          x-exportParamName: "Org"
  7232        responses:
  7233          200:
  7234            description: "返回格式"
  7235            schema:
  7236              $ref: "#/definitions/GroupMember"
  7237          403:
  7238            description: "没有权限"
  7239          404:
  7240            description: "没有相关数据"
  7241      delete:
  7242        tags:
  7243        - "Organizations"
  7244        summary: "退出一个组织"
  7245        description: "退出一个组织"
  7246        operationId: "deleteV5UserMembershipsOrgsOrg"
  7247        consumes:
  7248        - "application/json"
  7249        - "multipart/form-data"
  7250        produces:
  7251        - "application/json"
  7252        parameters:
  7253        - name: "access_token"
  7254          in: "query"
  7255          description: "用户授权码"
  7256          required: false
  7257          type: "string"
  7258          x-exportParamName: "AccessToken"
  7259          x-optionalDataType: "String"
  7260        - name: "org"
  7261          in: "path"
  7262          description: "组织的路径(path/login)"
  7263          required: true
  7264          type: "string"
  7265          x-exportParamName: "Org"
  7266        responses:
  7267          204:
  7268            description: "执行成功"
  7269          404:
  7270            description: "没有相关数据"
  7271      patch:
  7272        tags:
  7273        - "Organizations"
  7274        summary: "更新授权用户在一个组织的成员资料"
  7275        description: "更新授权用户在一个组织的成员资料"
  7276        operationId: "patchV5UserMembershipsOrgsOrg"
  7277        consumes:
  7278        - "application/json"
  7279        - "multipart/form-data"
  7280        produces:
  7281        - "application/json"
  7282        parameters:
  7283        - name: "access_token"
  7284          in: "formData"
  7285          description: "用户授权码"
  7286          required: false
  7287          type: "string"
  7288          x-exportParamName: "AccessToken"
  7289          x-optionalDataType: "String"
  7290        - name: "org"
  7291          in: "path"
  7292          description: "组织的路径(path/login)"
  7293          required: true
  7294          type: "string"
  7295          x-exportParamName: "Org"
  7296        - name: "remark"
  7297          in: "formData"
  7298          description: "在组织中的备注信息"
  7299          required: false
  7300          type: "string"
  7301          x-exportParamName: "Remark"
  7302          x-optionalDataType: "String"
  7303        responses:
  7304          200:
  7305            description: "返回格式"
  7306            schema:
  7307              $ref: "#/definitions/GroupMember"
  7308          403:
  7309            description: "没有权限"
  7310          404:
  7311            description: "没有相关数据"
  7312    /v5/user/following/{username}:
  7313      get:
  7314        tags:
  7315        - "Users"
  7316        summary: "检查授权用户是否关注了一个用户"
  7317        description: "检查授权用户是否关注了一个用户"
  7318        operationId: "getV5UserFollowingUsername"
  7319        consumes:
  7320        - "application/json"
  7321        - "multipart/form-data"
  7322        produces:
  7323        - "application/json"
  7324        parameters:
  7325        - name: "access_token"
  7326          in: "query"
  7327          description: "用户授权码"
  7328          required: false
  7329          type: "string"
  7330          x-exportParamName: "AccessToken"
  7331          x-optionalDataType: "String"
  7332        - name: "username"
  7333          in: "path"
  7334          description: "用户名(username/login)"
  7335          required: true
  7336          type: "string"
  7337          x-exportParamName: "Username"
  7338        responses:
  7339          204:
  7340            description: "已关注"
  7341          404:
  7342            description: "没有相关数据"
  7343      put:
  7344        tags:
  7345        - "Users"
  7346        summary: "关注一个用户"
  7347        description: "关注一个用户"
  7348        operationId: "putV5UserFollowingUsername"
  7349        consumes:
  7350        - "application/json"
  7351        - "multipart/form-data"
  7352        produces:
  7353        - "application/json"
  7354        parameters:
  7355        - name: "access_token"
  7356          in: "formData"
  7357          description: "用户授权码"
  7358          required: false
  7359          type: "string"
  7360          x-exportParamName: "AccessToken"
  7361          x-optionalDataType: "String"
  7362        - name: "username"
  7363          in: "path"
  7364          description: "用户名(username/login)"
  7365          required: true
  7366          type: "string"
  7367          x-exportParamName: "Username"
  7368        responses:
  7369          204:
  7370            description: "执行成功"
  7371      delete:
  7372        tags:
  7373        - "Users"
  7374        summary: "取消关注一个用户"
  7375        description: "取消关注一个用户"
  7376        operationId: "deleteV5UserFollowingUsername"
  7377        consumes:
  7378        - "application/json"
  7379        - "multipart/form-data"
  7380        produces:
  7381        - "application/json"
  7382        parameters:
  7383        - name: "access_token"
  7384          in: "query"
  7385          description: "用户授权码"
  7386          required: false
  7387          type: "string"
  7388          x-exportParamName: "AccessToken"
  7389          x-optionalDataType: "String"
  7390        - name: "username"
  7391          in: "path"
  7392          description: "用户名(username/login)"
  7393          required: true
  7394          type: "string"
  7395          x-exportParamName: "Username"
  7396        responses:
  7397          204:
  7398            description: "执行成功"
  7399    /v5/user/starred/{owner}/{repo}:
  7400      get:
  7401        tags:
  7402        - "Activity"
  7403        summary: "检查授权用户是否 star 了一个仓库"
  7404        description: "检查授权用户是否 star 了一个仓库"
  7405        operationId: "getV5UserStarredOwnerRepo"
  7406        consumes:
  7407        - "application/json"
  7408        - "multipart/form-data"
  7409        produces:
  7410        - "application/json"
  7411        parameters:
  7412        - name: "access_token"
  7413          in: "query"
  7414          description: "用户授权码"
  7415          required: false
  7416          type: "string"
  7417          x-exportParamName: "AccessToken"
  7418          x-optionalDataType: "String"
  7419        - name: "owner"
  7420          in: "path"
  7421          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  7422          required: true
  7423          type: "string"
  7424          x-exportParamName: "Owner"
  7425        - name: "repo"
  7426          in: "path"
  7427          description: "仓库路径(path)"
  7428          required: true
  7429          type: "string"
  7430          x-exportParamName: "Repo"
  7431        responses:
  7432          204:
  7433            description: "已经 star 了仓库"
  7434          404:
  7435            description: "没有相关数据"
  7436      put:
  7437        tags:
  7438        - "Activity"
  7439        summary: "star 一个仓库"
  7440        description: "star 一个仓库"
  7441        operationId: "putV5UserStarredOwnerRepo"
  7442        consumes:
  7443        - "application/json"
  7444        - "multipart/form-data"
  7445        produces:
  7446        - "application/json"
  7447        parameters:
  7448        - name: "access_token"
  7449          in: "formData"
  7450          description: "用户授权码"
  7451          required: false
  7452          type: "string"
  7453          x-exportParamName: "AccessToken"
  7454          x-optionalDataType: "String"
  7455        - name: "owner"
  7456          in: "path"
  7457          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  7458          required: true
  7459          type: "string"
  7460          x-exportParamName: "Owner"
  7461        - name: "repo"
  7462          in: "path"
  7463          description: "仓库路径(path)"
  7464          required: true
  7465          type: "string"
  7466          x-exportParamName: "Repo"
  7467        responses:
  7468          204:
  7469            description: "执行成功"
  7470          400:
  7471            description: "数据不合法"
  7472      delete:
  7473        tags:
  7474        - "Activity"
  7475        summary: "取消 star 一个仓库"
  7476        description: "取消 star 一个仓库"
  7477        operationId: "deleteV5UserStarredOwnerRepo"
  7478        consumes:
  7479        - "application/json"
  7480        - "multipart/form-data"
  7481        produces:
  7482        - "application/json"
  7483        parameters:
  7484        - name: "access_token"
  7485          in: "query"
  7486          description: "用户授权码"
  7487          required: false
  7488          type: "string"
  7489          x-exportParamName: "AccessToken"
  7490          x-optionalDataType: "String"
  7491        - name: "owner"
  7492          in: "path"
  7493          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  7494          required: true
  7495          type: "string"
  7496          x-exportParamName: "Owner"
  7497        - name: "repo"
  7498          in: "path"
  7499          description: "仓库路径(path)"
  7500          required: true
  7501          type: "string"
  7502          x-exportParamName: "Repo"
  7503        responses:
  7504          204:
  7505            description: "执行成功"
  7506    /v5/user/subscriptions/{owner}/{repo}:
  7507      get:
  7508        tags:
  7509        - "Activity"
  7510        summary: "检查授权用户是否 watch 了一个仓库"
  7511        description: "检查授权用户是否 watch 了一个仓库"
  7512        operationId: "getV5UserSubscriptionsOwnerRepo"
  7513        consumes:
  7514        - "application/json"
  7515        - "multipart/form-data"
  7516        produces:
  7517        - "application/json"
  7518        parameters:
  7519        - name: "access_token"
  7520          in: "query"
  7521          description: "用户授权码"
  7522          required: false
  7523          type: "string"
  7524          x-exportParamName: "AccessToken"
  7525          x-optionalDataType: "String"
  7526        - name: "owner"
  7527          in: "path"
  7528          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  7529          required: true
  7530          type: "string"
  7531          x-exportParamName: "Owner"
  7532        - name: "repo"
  7533          in: "path"
  7534          description: "仓库路径(path)"
  7535          required: true
  7536          type: "string"
  7537          x-exportParamName: "Repo"
  7538        responses:
  7539          204:
  7540            description: "已经 watch 了仓库"
  7541          404:
  7542            description: "没有相关数据"
  7543      put:
  7544        tags:
  7545        - "Activity"
  7546        summary: "watch 一个仓库"
  7547        description: "watch 一个仓库"
  7548        operationId: "putV5UserSubscriptionsOwnerRepo"
  7549        consumes:
  7550        - "application/json"
  7551        - "multipart/form-data"
  7552        produces:
  7553        - "application/json"
  7554        parameters:
  7555        - name: "access_token"
  7556          in: "formData"
  7557          description: "用户授权码"
  7558          required: false
  7559          type: "string"
  7560          x-exportParamName: "AccessToken"
  7561          x-optionalDataType: "String"
  7562        - name: "owner"
  7563          in: "path"
  7564          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  7565          required: true
  7566          type: "string"
  7567          x-exportParamName: "Owner"
  7568        - name: "repo"
  7569          in: "path"
  7570          description: "仓库路径(path)"
  7571          required: true
  7572          type: "string"
  7573          x-exportParamName: "Repo"
  7574        - name: "watch_type"
  7575          in: "formData"
  7576          description: "watch策略, watching: 关注所有动态, releases_only: 仅关注版本发行动态, ignoring:\
  7577            \ 关注但不提醒动态"
  7578          required: true
  7579          type: "string"
  7580          default: "watching"
  7581          enum:
  7582          - "watching"
  7583          - "releases_only"
  7584          - "ignoring"
  7585          x-exportParamName: "WatchType"
  7586        responses:
  7587          204:
  7588            description: "执行成功"
  7589          400:
  7590            description: "数据不合法"
  7591      delete:
  7592        tags:
  7593        - "Activity"
  7594        summary: "取消 watch 一个仓库"
  7595        description: "取消 watch 一个仓库"
  7596        operationId: "deleteV5UserSubscriptionsOwnerRepo"
  7597        consumes:
  7598        - "application/json"
  7599        - "multipart/form-data"
  7600        produces:
  7601        - "application/json"
  7602        parameters:
  7603        - name: "access_token"
  7604          in: "query"
  7605          description: "用户授权码"
  7606          required: false
  7607          type: "string"
  7608          x-exportParamName: "AccessToken"
  7609          x-optionalDataType: "String"
  7610        - name: "owner"
  7611          in: "path"
  7612          description: "仓库所属空间地址(企业、组织或个人的地址path)"
  7613          required: true
  7614          type: "string"
  7615          x-exportParamName: "Owner"
  7616        - name: "repo"
  7617          in: "path"
  7618          description: "仓库路径(path)"
  7619          required: true
  7620          type: "string"
  7621          x-exportParamName: "Repo"
  7622        responses:
  7623          204:
  7624            description: "执行成功"
  7625    /v5/gists:
  7626      get:
  7627        tags:
  7628        - "Gists"
  7629        summary: "获取代码片段"
  7630        description: "获取代码片段"
  7631        operationId: "getV5Gists"
  7632        consumes:
  7633        - "application/json"
  7634        - "multipart/form-data"
  7635        produces:
  7636        - "application/json"
  7637        parameters:
  7638        - name: "access_token"
  7639          in: "query"
  7640          description: "用户授权码"
  7641          required: false
  7642          type: "string"
  7643          x-exportParamName: "AccessToken"
  7644          x-optionalDataType: "String"
  7645        - name: "since"
  7646          in: "query"
  7647          description: "起始的更新时间,要求时间格式为 ISO 8601"
  7648          required: false
  7649          type: "string"
  7650          x-exportParamName: "Since"
  7651          x-optionalDataType: "String"
  7652        - name: "page"
  7653          in: "query"
  7654          description: "当前的页码"
  7655          required: false
  7656          type: "integer"
  7657          default: 1
  7658          format: "int32"
  7659          x-exportParamName: "Page"
  7660          x-optionalDataType: "Int32"
  7661        - name: "per_page"
  7662          in: "query"
  7663          description: "每页的数量,最大为 100"
  7664          required: false
  7665          type: "integer"
  7666          default: 20
  7667          format: "int32"
  7668          x-exportParamName: "PerPage"
  7669          x-optionalDataType: "Int32"
  7670        responses:
  7671          200:
  7672            description: "返回格式"
  7673            schema:
  7674              type: "array"
  7675              items:
  7676                $ref: "#/definitions/Code"
  7677      post:
  7678        tags:
  7679        - "Gists"
  7680        summary: "创建代码片段"
  7681        description: "创建代码片段"
  7682        operationId: "postV5Gists"
  7683        consumes:
  7684        - "application/json"
  7685        - "multipart/form-data"
  7686        produces:
  7687        - "application/json"
  7688        parameters:
  7689        - name: "access_token"
  7690          in: "formData"
  7691          description: "用户授权码"
  7692          required: false
  7693          type: "string"
  7694          x-exportParamName: "AccessToken"
  7695          x-optionalDataType: "String"
  7696        - name: "files"
  7697          in: "formData"
  7698          description: "Hash形式的代码片段文件名以及文件内容。如: { \"file1.txt\": { \"content\": \"String\
  7699            \ file contents\" } }"
  7700          required: true
  7701          type: "file"
  7702          x-exportParamName: "Files"
  7703        - name: "description"
  7704          in: "formData"
  7705          description: "代码片段描述,1~30个字符"
  7706          required: true
  7707          type: "string"
  7708          x-exportParamName: "Description"
  7709        - name: "public"
  7710          in: "formData"
  7711          description: "公开/私有,默认: 私有"
  7712          required: false
  7713          type: "boolean"
  7714          x-exportParamName: "Public"
  7715          x-optionalDataType: "Bool"
  7716        responses:
  7717          201:
  7718            description: "返回格式"
  7719            schema:
  7720              type: "array"
  7721              items:
  7722                $ref: "#/definitions/CodeForksHistory"
  7723    /v5/gists/public:
  7724      get:
  7725        tags:
  7726        - "Gists"
  7727        summary: "获取公开的代码片段"
  7728        description: "获取公开的代码片段"
  7729        operationId: "getV5GistsPublic"
  7730        consumes:
  7731        - "application/json"
  7732        - "multipart/form-data"
  7733        produces:
  7734        - "application/json"
  7735        parameters:
  7736        - name: "access_token"
  7737          in: "query"
  7738          description: "用户授权码"
  7739          required: false
  7740          type: "string"
  7741          x-exportParamName: "AccessToken"
  7742          x-optionalDataType: "String"
  7743        - name: "since"
  7744          in: "query"
  7745          description: "起始的更新时间,要求时间格式为 ISO 8601"
  7746          required: false
  7747          type: "string"
  7748          x-exportParamName: "Since"
  7749          x-optionalDataType: "String"
  7750        - name: "page"
  7751          in: "query"
  7752          description: "当前的页码"
  7753          required: false
  7754          type: "integer"
  7755          default: 1
  7756          format: "int32"
  7757          x-exportParamName: "Page"
  7758          x-optionalDataType: "Int32"
  7759        - name: "per_page"
  7760          in: "query"
  7761          description: "每页的数量,最大为 100"
  7762          required: false
  7763          type: "integer"
  7764          default: 20
  7765          format: "int32"
  7766          x-exportParamName: "PerPage"
  7767          x-optionalDataType: "Int32"
  7768        responses:
  7769          200:
  7770            description: "返回格式"
  7771            schema:
  7772              type: "array"
  7773              items:
  7774                $ref: "#/definitions/Code"
  7775    /v5/gists/starred:
  7776      get:
  7777        tags:
  7778        - "Gists"
  7779        summary: "获取用户Star的代码片段"
  7780        description: "获取用户Star的代码片段"
  7781        operationId: "getV5GistsStarred"
  7782        consumes:
  7783        - "application/json"
  7784        - "multipart/form-data"
  7785        produces:
  7786        - "application/json"
  7787        parameters:
  7788        - name: "access_token"
  7789          in: "query"
  7790          description: "用户授权码"
  7791          required: false
  7792          type: "string"
  7793          x-exportParamName: "AccessToken"
  7794          x-optionalDataType: "String"
  7795        - name: "since"
  7796          in: "query"
  7797          description: "起始的更新时间,要求时间格式为 ISO 8601"
  7798          required: false
  7799          type: "string"
  7800          x-exportParamName: "Since"
  7801          x-optionalDataType: "String"
  7802        - name: "page"
  7803          in: "query"
  7804          description: "当前的页码"
  7805          required: false
  7806          type: "integer"
  7807          default: 1
  7808          format: "int32"
  7809          x-exportParamName: "Page"
  7810          x-optionalDataType: "Int32"
  7811        - name: "per_page"
  7812          in: "query"
  7813          description: "每页的数量,最大为 100"
  7814          required: false
  7815          type: "integer"
  7816          default: 20
  7817          format: "int32"
  7818          x-exportParamName: "PerPage"
  7819          x-optionalDataType: "Int32"
  7820        responses:
  7821          200:
  7822            description: "返回格式"
  7823            schema:
  7824              type: "array"
  7825              items:
  7826                $ref: "#/definitions/Code"
  7827    /v5/gists/{gist_id}/comments:
  7828      get:
  7829        tags:
  7830        - "Gists"
  7831        summary: "获取代码片段的评论"
  7832        description: "获取代码片段的评论"
  7833        operationId: "getV5GistsGistIdComments"
  7834        consumes:
  7835        - "application/json"
  7836        - "multipart/form-data"
  7837        produces:
  7838        - "application/json"
  7839        parameters:
  7840        - name: "access_token"
  7841          in: "query"
  7842          description: "用户授权码"
  7843          required: false
  7844          type: "string"
  7845          x-exportParamName: "AccessToken"
  7846          x-optionalDataType: "String"
  7847        - name: "gist_id"
  7848          in: "path"
  7849          description: "代码片段的ID"
  7850          required: true
  7851          type: "string"
  7852          x-exportParamName: "GistId"
  7853        - name: "page"
  7854          in: "query"
  7855          description: "当前的页码"
  7856          required: false
  7857          type: "integer"
  7858          default: 1
  7859          format: "int32"
  7860          x-exportParamName: "Page"
  7861          x-optionalDataType: "Int32"
  7862        - name: "per_page"
  7863          in: "query"
  7864          description: "每页的数量,最大为 100"
  7865          required: false
  7866          type: "integer"
  7867          default: 20
  7868          format: "int32"
  7869          x-exportParamName: "PerPage"
  7870          x-optionalDataType: "Int32"
  7871        responses:
  7872          200:
  7873            description: "返回格式"
  7874            schema:
  7875              type: "array"
  7876              items:
  7877                $ref: "#/definitions/CodeComment"
  7878      post:
  7879        tags:
  7880        - "Gists"
  7881        summary: "增加代码片段的评论"
  7882        description: "增加代码片段的评论"
  7883        operationId: "postV5GistsGistIdComments"
  7884        consumes:
  7885        - "application/json"
  7886        - "multipart/form-data"
  7887        produces:
  7888        - "application/json"
  7889        parameters:
  7890        - name: "access_token"
  7891          in: "formData"
  7892          description: "用户授权码"
  7893          required: false
  7894          type: "string"
  7895          x-exportParamName: "AccessToken"
  7896          x-optionalDataType: "String"
  7897        - name: "gist_id"
  7898          in: "path"
  7899          description: "代码片段的ID"
  7900          required: true
  7901          type: "string"
  7902          x-exportParamName: "GistId"
  7903        - name: "body"
  7904          in: "formData"
  7905          description: "评论内容"
  7906          required: true
  7907          type: "string"
  7908          x-exportParamName: "Body"
  7909        responses:
  7910          201:
  7911            description: "返回格式"
  7912            schema:
  7913              $ref: "#/definitions/CodeComment"
  7914    /v5/gists/{gist_id}/comments/{id}:
  7915      get:
  7916        tags:
  7917        - "Gists"
  7918        summary: "获取单条代码片段的评论"
  7919        description: "获取单条代码片段的评论"
  7920        operationId: "getV5GistsGistIdCommentsId"
  7921        consumes:
  7922        - "application/json"
  7923        - "multipart/form-data"
  7924        produces:
  7925        - "application/json"
  7926        parameters:
  7927        - name: "access_token"
  7928          in: "query"
  7929          description: "用户授权码"
  7930          required: false
  7931          type: "string"
  7932          x-exportParamName: "AccessToken"
  7933          x-optionalDataType: "String"
  7934        - name: "gist_id"
  7935          in: "path"
  7936          description: "代码片段的ID"
  7937          required: true
  7938          type: "string"
  7939          x-exportParamName: "GistId"
  7940        - name: "id"
  7941          in: "path"
  7942          description: "评论的ID"
  7943          required: true
  7944          type: "integer"
  7945          format: "int32"
  7946          x-exportParamName: "Id"
  7947        responses:
  7948          200:
  7949            description: "返回格式"
  7950            schema:
  7951              $ref: "#/definitions/CodeComment"
  7952      delete:
  7953        tags:
  7954        - "Gists"
  7955        summary: "删除代码片段的评论"
  7956        description: "删除代码片段的评论"
  7957        operationId: "deleteV5GistsGistIdCommentsId"
  7958        consumes:
  7959        - "application/json"
  7960        - "multipart/form-data"
  7961        produces:
  7962        - "application/json"
  7963        parameters:
  7964        - name: "access_token"
  7965          in: "query"
  7966          description: "用户授权码"
  7967          required: false
  7968          type: "string"
  7969          x-exportParamName: "AccessToken"
  7970          x-optionalDataType: "String"
  7971        - name: "gist_id"
  7972          in: "path"
  7973          description: "代码片段的ID"
  7974          required: true
  7975          type: "string"
  7976          x-exportParamName: "GistId"
  7977        - name: "id"
  7978          in: "path"
  7979          description: "评论的ID"
  7980          required: true
  7981          type: "integer"
  7982          format: "int32"
  7983          x-exportParamName: "Id"
  7984        responses:
  7985          204:
  7986            description: "删除代码片段的评论"
  7987      patch:
  7988        tags:
  7989        - "Gists"
  7990        summary: "修改代码片段的评论"
  7991        description: "修改代码片段的评论"
  7992        operationId: "patchV5GistsGistIdCommentsId"
  7993        consumes:
  7994        - "application/json"
  7995        - "multipart/form-data"
  7996        produces:
  7997        - "application/json"
  7998        parameters:
  7999        - name: "access_token"
  8000          in: "formData"
  8001          description: "用户授权码"
  8002          required: false
  8003          type: "string"
  8004          x-exportParamName: "AccessToken"
  8005          x-optionalDataType: "String"
  8006        - name: "gist_id"
  8007          in: "path"
  8008          description: "代码片段的ID"
  8009          required: true
  8010          type: "string"
  8011          x-exportParamName: "GistId"
  8012        - name: "id"
  8013          in: "path"
  8014          description: "评论的ID"
  8015          required: true
  8016          type: "integer"
  8017          format: "int32"
  8018          x-exportParamName: "Id"
  8019        - name: "body"
  8020          in: "formData"
  8021          description: "评论内容"
  8022          required: true
  8023          type: "string"
  8024          x-exportParamName: "Body"
  8025        responses:
  8026          200:
  8027            description: "返回格式"
  8028            schema:
  8029              $ref: "#/definitions/CodeComment"
  8030    /v5/gists/{id}:
  8031      get:
  8032        tags:
  8033        - "Gists"
  8034        summary: "获取单条代码片段"
  8035        description: "获取单条代码片段"
  8036        operationId: "getV5GistsId"
  8037        consumes:
  8038        - "application/json"
  8039        - "multipart/form-data"
  8040        produces:
  8041        - "application/json"
  8042        parameters:
  8043        - name: "access_token"
  8044          in: "query"
  8045          description: "用户授权码"
  8046          required: false
  8047          type: "string"
  8048          x-exportParamName: "AccessToken"
  8049          x-optionalDataType: "String"
  8050        - name: "id"
  8051          in: "path"
  8052          description: "代码片段的ID"
  8053          required: true
  8054          type: "string"
  8055          x-exportParamName: "Id"
  8056        responses:
  8057          200:
  8058            description: "返回格式"
  8059            schema:
  8060              $ref: "#/definitions/CodeForksHistory"
  8061      delete:
  8062        tags:
  8063        - "Gists"
  8064        summary: "删除指定代码片段"
  8065        description: "删除指定代码片段"
  8066        operationId: "deleteV5GistsId"
  8067        consumes:
  8068        - "application/json"
  8069        - "multipart/form-data"
  8070        produces:
  8071        - "application/json"
  8072        parameters:
  8073        - name: "access_token"
  8074          in: "query"
  8075          description: "用户授权码"
  8076          required: false
  8077          type: "string"
  8078          x-exportParamName: "AccessToken"
  8079          x-optionalDataType: "String"
  8080        - name: "id"
  8081          in: "path"
  8082          description: "代码片段的ID"
  8083          required: true
  8084          type: "string"
  8085          x-exportParamName: "Id"
  8086        responses:
  8087          204:
  8088            description: "删除指定代码片段"
  8089      patch:
  8090        tags:
  8091        - "Gists"
  8092        summary: "修改代码片段"
  8093        description: "修改代码片段"
  8094        operationId: "patchV5GistsId"
  8095        consumes:
  8096        - "application/json"
  8097        - "multipart/form-data"
  8098        produces:
  8099        - "application/json"
  8100        parameters:
  8101        - name: "access_token"
  8102          in: "formData"
  8103          description: "用户授权码"
  8104          required: false
  8105          type: "string"
  8106          x-exportParamName: "AccessToken"
  8107          x-optionalDataType: "String"
  8108        - name: "id"
  8109          in: "path"
  8110          description: "代码片段的ID"
  8111          required: true
  8112          type: "string"
  8113          x-exportParamName: "Id"
  8114        - name: "files"
  8115          in: "formData"
  8116          description: "Hash形式的代码片段文件名以及文件内容。如: { \"file1.txt\": { \"content\": \"String\
  8117            \ file contents\" } }"
  8118          required: false
  8119          type: "file"
  8120          x-exportParamName: "Files"
  8121        - name: "description"
  8122          in: "formData"
  8123          description: "代码片段描述,1~30个字符"
  8124          required: false
  8125          type: "string"
  8126          x-exportParamName: "Description"
  8127          x-optionalDataType: "String"
  8128        - name: "public"
  8129          in: "formData"
  8130          description: "公开/私有,默认: 私有"
  8131          required: false
  8132          type: "boolean"
  8133          x-exportParamName: "Public"
  8134          x-optionalDataType: "Bool"
  8135        responses:
  8136          200:
  8137            description: "返回格式"
  8138            schema:
  8139              $ref: "#/definitions/CodeForksHistory"
  8140    /v5/gists/{id}/commits:
  8141      get:
  8142        tags:
  8143        - "Gists"
  8144        summary: "获取代码片段的commit"
  8145        description: "获取代码片段的commit"
  8146        operationId: "getV5GistsIdCommits"
  8147        consumes:
  8148        - "application/json"
  8149        - "multipart/form-data"
  8150        produces:
  8151        - "application/json"
  8152        parameters:
  8153        - name: "access_token"
  8154          in: "query"
  8155          description: "用户授权码"
  8156          required: false
  8157          type: "string"
  8158          x-exportParamName: "AccessToken"
  8159          x-optionalDataType: "String"
  8160        - name: "id"
  8161          in: "path"
  8162          description: "代码片段的ID"
  8163          required: true
  8164          type: "string"
  8165          x-exportParamName: "Id"
  8166        responses:
  8167          200:
  8168            description: "返回格式"
  8169            schema:
  8170              $ref: "#/definitions/CodeForksHistory"
  8171    /v5/gists/{id}/star:
  8172      get:
  8173        tags:
  8174        - "Gists"
  8175        summary: "判断代码片段是否已Star"
  8176        description: "判断代码片段是否已Star"
  8177        operationId: "getV5GistsIdStar"
  8178        consumes:
  8179        - "application/json"
  8180        - "multipart/form-data"
  8181        produces:
  8182        - "application/json"
  8183        parameters:
  8184        - name: "access_token"
  8185          in: "query"
  8186          description: "用户授权码"
  8187          required: false
  8188          type: "string"
  8189          x-exportParamName: "AccessToken"
  8190          x-optionalDataType: "String"
  8191        - name: "id"
  8192          in: "path"
  8193          description: "代码片段的ID"
  8194          required: true
  8195          type: "string"
  8196          x-exportParamName: "Id"
  8197        responses:
  8198          204:
  8199            description: "判断代码片段是否已Star"
  8200      put:
  8201        tags:
  8202        - "Gists"
  8203        summary: "Star代码片段"
  8204        description: "Star代码片段"
  8205        operationId: "putV5GistsIdStar"
  8206        consumes:
  8207        - "application/json"
  8208        - "multipart/form-data"
  8209        produces:
  8210        - "application/json"
  8211        parameters:
  8212        - name: "access_token"
  8213          in: "formData"
  8214          description: "用户授权码"
  8215          required: false
  8216          type: "string"
  8217          x-exportParamName: "AccessToken"
  8218          x-optionalDataType: "String"
  8219        - name: "id"
  8220          in: "path"
  8221          description: "代码片段的ID"
  8222          required: true
  8223          type: "string"
  8224          x-exportParamName: "Id"
  8225        responses:
  8226          204:
  8227            description: "Star代码片段"
  8228      delete:
  8229        tags:
  8230        - "Gists"
  8231        summary: "取消Star代码片段"
  8232        description: "取消Star代码片段"
  8233        operationId: "deleteV5GistsIdStar"
  8234        consumes:
  8235        - "application/json"
  8236        - "multipart/form-data"
  8237        produces:
  8238        - "application/json"
  8239        parameters:
  8240        - name: "access_token"
  8241          in: "query"
  8242          description: "用户授权码"
  8243          required: false
  8244          type: "string"
  8245          x-exportParamName: "AccessToken"
  8246          x-optionalDataType: "String"
  8247        - name: "id"
  8248          in: "path"
  8249          description: "代码片段的ID"
  8250          required: true
  8251          type: "string"
  8252          x-exportParamName: "Id"
  8253        responses:
  8254          204:
  8255            description: "取消Star代码片段"
  8256    /v5/gists/{id}/forks:
  8257      get:
  8258        tags:
  8259        - "Gists"
  8260        summary: "获取 Fork 了指定代码片段的列表"
  8261        description: "获取 Fork 了指定代码片段的列表"
  8262        operationId: "getV5GistsIdForks"
  8263        consumes:
  8264        - "application/json"
  8265        - "multipart/form-data"
  8266        produces:
  8267        - "application/json"
  8268        parameters:
  8269        - name: "access_token"
  8270          in: "query"
  8271          description: "用户授权码"
  8272          required: false
  8273          type: "string"
  8274          x-exportParamName: "AccessToken"
  8275          x-optionalDataType: "String"
  8276        - name: "id"
  8277          in: "path"
  8278          description: "代码片段的ID"
  8279          required: true
  8280          type: "string"
  8281          x-exportParamName: "Id"
  8282        - name: "page"
  8283          in: "query"
  8284          description: "当前的页码"
  8285          required: false
  8286          type: "integer"
  8287          default: 1
  8288          format: "int32"
  8289          x-exportParamName: "Page"
  8290          x-optionalDataType: "Int32"
  8291        - name: "per_page"
  8292          in: "query"
  8293          description: "每页的数量,最大为 100"
  8294          required: false
  8295          type: "integer"
  8296          default: 20
  8297          format: "int32"
  8298          x-exportParamName: "PerPage"
  8299          x-optionalDataType: "Int32"
  8300        responses:
  8301          200:
  8302            description: "返回格式"
  8303            schema:
  8304              $ref: "#/definitions/CodeForks"
  8305      post:
  8306        tags:
  8307        - "Gists"
  8308        summary: "Fork代码片段"
  8309        description: "Fork代码片段"
  8310        operationId: "postV5GistsIdForks"
  8311        consumes:
  8312        - "application/json"
  8313        - "multipart/form-data"
  8314        produces:
  8315        - "application/json"
  8316        parameters:
  8317        - name: "access_token"
  8318          in: "formData"
  8319          description: "用户授权码"
  8320          required: false
  8321          type: "string"
  8322          x-exportParamName: "AccessToken"
  8323          x-optionalDataType: "String"
  8324        - name: "id"
  8325          in: "path"
  8326          description: "代码片段的ID"
  8327          required: true
  8328          type: "string"
  8329          x-exportParamName: "Id"
  8330        responses:
  8331          201:
  8332            description: "Fork代码片段"
  8333    /v5/users/{username}/gists:
  8334      get:
  8335        tags:
  8336        - "Gists"
  8337        summary: "获取指定用户的公开代码片段"
  8338        description: "获取指定用户的公开代码片段"
  8339        operationId: "getV5UsersUsernameGists"
  8340        consumes:
  8341        - "application/json"
  8342        - "multipart/form-data"
  8343        produces:
  8344        - "application/json"
  8345        parameters:
  8346        - name: "access_token"
  8347          in: "query"
  8348          description: "用户授权码"
  8349          required: false
  8350          type: "string"
  8351          x-exportParamName: "AccessToken"
  8352          x-optionalDataType: "String"
  8353        - name: "username"
  8354          in: "path"
  8355          description: "用户名(username/login)"
  8356          required: true
  8357          type: "string"
  8358          x-exportParamName: "Username"
  8359        - name: "page"
  8360          in: "query"
  8361          description: "当前的页码"
  8362          required: false
  8363          type: "integer"
  8364          default: 1
  8365          format: "int32"
  8366          x-exportParamName: "Page"
  8367          x-optionalDataType: "Int32"
  8368        - name: "per_page"
  8369          in: "query"
  8370          description: "每页的数量,最大为 100"
  8371          required: false
  8372          type: "integer"
  8373          default: 20
  8374          format: "int32"
  8375          x-exportParamName: "PerPage"
  8376          x-optionalDataType: "Int32"
  8377        responses:
  8378          200:
  8379            description: "返回格式"
  8380            schema:
  8381              type: "array"
  8382              items:
  8383                $ref: "#/definitions/Code"
  8384    /v5/users/{username}/orgs:
  8385      get:
  8386        tags:
  8387        - "Organizations"
  8388        summary: "列出用户所属的组织"
  8389        description: "列出用户所属的组织"
  8390        operationId: "getV5UsersUsernameOrgs"
  8391        consumes:
  8392        - "application/json"
  8393        - "multipart/form-data"
  8394        produces:
  8395        - "application/json"
  8396        parameters:
  8397        - name: "access_token"
  8398          in: "query"
  8399          description: "用户授权码"
  8400          required: false
  8401          type: "string"
  8402          x-exportParamName: "AccessToken"
  8403          x-optionalDataType: "String"
  8404        - name: "username"
  8405          in: "path"
  8406          description: "用户名(username/login)"
  8407          required: true
  8408          type: "string"
  8409          x-exportParamName: "Username"
  8410        - name: "page"
  8411          in: "query"
  8412          description: "当前的页码"
  8413          required: false
  8414          type: "integer"
  8415          default: 1
  8416          format: "int32"
  8417          x-exportParamName: "Page"
  8418          x-optionalDataType: "Int32"
  8419        - name: "per_page"
  8420          in: "query"
  8421          description: "每页的数量,最大为 100"
  8422          required: false
  8423          type: "integer"
  8424          default: 20
  8425          format: "int32"
  8426          x-exportParamName: "PerPage"
  8427          x-optionalDataType: "Int32"
  8428        responses:
  8429          200:
  8430            description: "返回格式"
  8431            schema:
  8432              type: "array"
  8433              items:
  8434                $ref: "#/definitions/Group"
  8435    /v5/users/organization:
  8436      post:
  8437        tags:
  8438        - "Organizations"
  8439        summary: "创建组织"
  8440        description: "创建组织"
  8441        operationId: "postV5UsersOrganization"
  8442        consumes:
  8443        - "application/json"
  8444        - "multipart/form-data"
  8445        produces:
  8446        - "application/json"
  8447        parameters:
  8448        - name: "access_token"
  8449          in: "formData"
  8450          description: "用户授权码"
  8451          required: false
  8452          type: "string"
  8453          x-exportParamName: "AccessToken"
  8454          x-optionalDataType: "String"
  8455        - name: "name"
  8456          in: "formData"
  8457          description: "组织名称"
  8458          required: true
  8459          type: "string"
  8460          x-exportParamName: "Name"
  8461        - name: "org"
  8462          in: "formData"
  8463          description: "组织的路径(path/login)"
  8464          required: true
  8465          type: "string"
  8466          x-exportParamName: "Org"
  8467        - name: "description"
  8468          in: "formData"
  8469          description: "组织描述"
  8470          required: false
  8471          type: "string"
  8472          x-exportParamName: "Description"
  8473          x-optionalDataType: "String"
  8474        responses:
  8475          201:
  8476            description: "返回格式"
  8477            schema:
  8478              $ref: "#/definitions/Group"
  8479          403:
  8480            description: "没有权限"
  8481    /v5/users/{username}/repos:
  8482      get:
  8483        tags:
  8484        - "Repositories"
  8485        summary: "获取某个用户的公开仓库"
  8486        description: "获取某个用户的公开仓库"
  8487        operationId: "getV5UsersUsernameRepos"
  8488        consumes:
  8489        - "application/json"
  8490        - "multipart/form-data"
  8491        produces:
  8492        - "application/json"
  8493        parameters:
  8494        - name: "access_token"
  8495          in: "query"
  8496          description: "用户授权码"
  8497          required: false
  8498          type: "string"
  8499          x-exportParamName: "AccessToken"
  8500          x-optionalDataType: "String"
  8501        - name: "username"
  8502          in: "path"
  8503          description: "用户名(username/login)"
  8504          required: true
  8505          type: "string"
  8506          x-exportParamName: "Username"
  8507        - name: "type"
  8508          in: "query"
  8509          description: "用户创建的仓库(owner),用户个人仓库(personal),用户为仓库成员(member),所有(all)。默认:\
  8510            \ 所有(all)"
  8511          required: false
  8512          type: "string"
  8513          default: "all"
  8514          enum:
  8515          - "all"
  8516          - "owner"
  8517          - "personal"
  8518          - "member"
  8519          x-exportParamName: "Type_"
  8520          x-optionalDataType: "String"
  8521        - name: "sort"
  8522          in: "query"
  8523          description: "排序方式: 创建时间(created),更新时间(updated),最后推送时间(pushed),仓库所属与名称(full_name)。\
  8524            默认: full_name"
  8525          required: false
  8526          type: "string"
  8527          default: "full_name"
  8528          enum:
  8529          - "created"
  8530          - "updated"
  8531          - "pushed"
  8532          - "full_name"
  8533          x-exportParamName: "Sort"
  8534          x-optionalDataType: "String"
  8535        - name: "direction"
  8536          in: "query"
  8537          description: "如果sort参数为full_name,用升序(asc)。否则降序(desc)"
  8538          required: false
  8539          type: "string"
  8540          enum:
  8541          - "asc"
  8542          - "desc"
  8543          x-exportParamName: "Direction"
  8544          x-optionalDataType: "String"
  8545        - name: "page"
  8546          in: "query"
  8547          description: "当前的页码"
  8548          required: false
  8549          type: "integer"
  8550          default: 1
  8551          format: "int32"
  8552          x-exportParamName: "Page"
  8553          x-optionalDataType: "Int32"
  8554        - name: "per_page"
  8555          in: "query"
  8556          description: "每页的数量,最大为 100"
  8557          required: false
  8558          type: "integer"
  8559          default: 20
  8560          format: "int32"
  8561          x-exportParamName: "PerPage"
  8562          x-optionalDataType: "Int32"
  8563        responses:
  8564          200:
  8565            description: "返回格式"
  8566            schema:
  8567              $ref: "#/definitions/Project"
  8568    /v5/users/{username}:
  8569      get:
  8570        tags:
  8571        - "Users"
  8572        summary: "获取一个用户"
  8573        description: "获取一个用户"
  8574        operationId: "getV5UsersUsername"
  8575        consumes:
  8576        - "application/json"
  8577        - "multipart/form-data"
  8578        produces:
  8579        - "application/json"
  8580        parameters:
  8581        - name: "access_token"
  8582          in: "query"
  8583          description: "用户授权码"
  8584          required: false
  8585          type: "string"
  8586          x-exportParamName: "AccessToken"
  8587          x-optionalDataType: "String"
  8588        - name: "username"
  8589          in: "path"
  8590          description: "用户名(username/login)"
  8591          required: true
  8592          type: "string"
  8593          x-exportParamName: "Username"
  8594        responses:
  8595          200:
  8596            description: "返回格式"
  8597            schema:
  8598              $ref: "#/definitions/User"
  8599          404:
  8600            description: "没有相关数据"
  8601    /v5/users/{username}/followers:
  8602      get:
  8603        tags:
  8604        - "Users"
  8605        summary: "列出指定用户的关注者"
  8606        description: "列出指定用户的关注者"
  8607        operationId: "getV5UsersUsernameFollowers"
  8608        consumes:
  8609        - "application/json"
  8610        - "multipart/form-data"
  8611        produces:
  8612        - "application/json"
  8613        parameters:
  8614        - name: "access_token"
  8615          in: "query"
  8616          description: "用户授权码"
  8617          required: false
  8618          type: "string"
  8619          x-exportParamName: "AccessToken"
  8620          x-optionalDataType: "String"
  8621        - name: "username"
  8622          in: "path"
  8623          description: "用户名(username/login)"
  8624          required: true
  8625          type: "string"
  8626          x-exportParamName: "Username"
  8627        - name: "page"
  8628          in: "query"
  8629          description: "当前的页码"
  8630          required: false
  8631          type: "integer"
  8632          default: 1
  8633          format: "int32"
  8634          x-exportParamName: "Page"
  8635          x-optionalDataType: "Int32"
  8636        - name: "per_page"
  8637          in: "query"
  8638          description: "每页的数量,最大为 100"
  8639          required: false
  8640          type: "integer"
  8641          default: 20
  8642          format: "int32"
  8643          x-exportParamName: "PerPage"
  8644          x-optionalDataType: "Int32"
  8645        responses:
  8646          200:
  8647            description: "返回格式"
  8648            schema:
  8649              type: "array"
  8650              items:
  8651                $ref: "#/definitions/UserBasic"
  8652          404:
  8653            description: "没有相关数据"
  8654    /v5/users/{username}/following:
  8655      get:
  8656        tags:
  8657        - "Users"
  8658        summary: "列出指定用户正在关注的用户"
  8659        description: "列出指定用户正在关注的用户"
  8660        operationId: "getV5UsersUsernameFollowing"
  8661        consumes:
  8662        - "application/json"
  8663        - "multipart/form-data"
  8664        produces:
  8665        - "application/json"
  8666        parameters:
  8667        - name: "access_token"
  8668          in: "query"
  8669          description: "用户授权码"
  8670          required: false
  8671          type: "string"
  8672          x-exportParamName: "AccessToken"
  8673          x-optionalDataType: "String"
  8674        - name: "username"
  8675          in: "path"
  8676          description: "用户名(username/login)"
  8677          required: true
  8678          type: "string"
  8679          x-exportParamName: "Username"
  8680        - name: "page"
  8681          in: "query"
  8682          description: "当前的页码"
  8683          required: false
  8684          type: "integer"
  8685          default: 1
  8686          format: "int32"
  8687          x-exportParamName: "Page"
  8688          x-optionalDataType: "Int32"
  8689        - name: "per_page"
  8690          in: "query"
  8691          description: "每页的数量,最大为 100"
  8692          required: false
  8693          type: "integer"
  8694          default: 20
  8695          format: "int32"
  8696          x-exportParamName: "PerPage"
  8697          x-optionalDataType: "Int32"
  8698        responses:
  8699          200:
  8700            description: "返回格式"
  8701            schema:
  8702              type: "array"
  8703              items:
  8704                $ref: "#/definitions/UserBasic"
  8705          404:
  8706            description: "没有相关数据"
  8707    /v5/users/{username}/following/{target_user}:
  8708      get:
  8709        tags:
  8710        - "Users"
  8711        summary: "检查指定用户是否关注目标用户"
  8712        description: "检查指定用户是否关注目标用户"
  8713        operationId: "getV5UsersUsernameFollowingTargetUser"
  8714        consumes:
  8715        - "application/json"
  8716        - "multipart/form-data"
  8717        produces:
  8718        - "application/json"
  8719        parameters:
  8720        - name: "access_token"
  8721          in: "query"
  8722          description: "用户授权码"
  8723          required: false
  8724          type: "string"
  8725          x-exportParamName: "AccessToken"
  8726          x-optionalDataType: "String"
  8727        - name: "username"
  8728          in: "path"
  8729          description: "用户名(username/login)"
  8730          required: true
  8731          type: "string"
  8732          x-exportParamName: "Username"
  8733        - name: "target_user"
  8734          in: "path"
  8735          description: "目标用户的用户名(username/login)"
  8736          required: true
  8737          type: "string"
  8738          x-exportParamName: "TargetUser"
  8739        responses:
  8740          204:
  8741            description: "已关注目标用户"
  8742          404:
  8743            description: "没有相关数据"
  8744    /v5/users/{username}/keys:
  8745      get:
  8746        tags:
  8747        - "Users"
  8748        summary: "列出指定用户的所有公钥"
  8749        description: "列出指定用户的所有公钥"
  8750        operationId: "getV5UsersUsernameKeys"
  8751        consumes:
  8752        - "application/json"
  8753        - "multipart/form-data"
  8754        produces:
  8755        - "application/json"
  8756        parameters:
  8757        - name: "access_token"
  8758          in: "query"
  8759          description: "用户授权码"
  8760          required: false
  8761          type: "string"
  8762          x-exportParamName: "AccessToken"
  8763          x-optionalDataType: "String"
  8764        - name: "username"
  8765          in: "path"
  8766          description: "用户名(username/login)"
  8767          required: true
  8768          type: "string"
  8769          x-exportParamName: "Username"
  8770        - name: "page"
  8771          in: "query"
  8772          description: "当前的页码"
  8773          required: false
  8774          type: "integer"
  8775          default: 1
  8776          format: "int32"
  8777          x-exportParamName: "Page"
  8778          x-optionalDataType: "Int32"
  8779        - name: "per_page"
  8780          in: "query"
  8781          description: "每页的数量,最大为 100"
  8782          required: false
  8783          type: "integer"
  8784          default: 20
  8785          format: "int32"
  8786          x-exportParamName: "PerPage"
  8787          x-optionalDataType: "Int32"
  8788        responses:
  8789          200:
  8790            description: "返回格式"
  8791            schema:
  8792              type: "array"
  8793              items:
  8794                $ref: "#/definitions/SSHKeyBasic"
  8795          404:
  8796            description: "没有相关数据"
  8797    /v5/users/{username}/starred:
  8798      get:
  8799        tags:
  8800        - "Activity"
  8801        summary: "列出用户 star 了的仓库"
  8802        description: "列出用户 star 了的仓库"
  8803        operationId: "getV5UsersUsernameStarred"
  8804        consumes:
  8805        - "application/json"
  8806        - "multipart/form-data"
  8807        produces:
  8808        - "application/json"
  8809        parameters:
  8810        - name: "access_token"
  8811          in: "query"
  8812          description: "用户授权码"
  8813          required: false
  8814          type: "string"
  8815          x-exportParamName: "AccessToken"
  8816          x-optionalDataType: "String"
  8817        - name: "username"
  8818          in: "path"
  8819          description: "用户名(username/login)"
  8820          required: true
  8821          type: "string"
  8822          x-exportParamName: "Username"
  8823        - name: "page"
  8824          in: "query"
  8825          description: "当前的页码"
  8826          required: false
  8827          type: "integer"
  8828          default: 1
  8829          format: "int32"
  8830          x-exportParamName: "Page"
  8831          x-optionalDataType: "Int32"
  8832        - name: "per_page"
  8833          in: "query"
  8834          description: "每页的数量,最大为 100"
  8835          required: false
  8836          type: "integer"
  8837          default: 20
  8838          format: "int32"
  8839          x-exportParamName: "PerPage"
  8840          x-optionalDataType: "Int32"
  8841        - name: "sort"
  8842          in: "query"
  8843          description: "根据仓库创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间"
  8844          required: false
  8845          type: "string"
  8846          default: "created"
  8847          enum:
  8848          - "created"
  8849          - "last_push"
  8850          x-exportParamName: "Sort"
  8851          x-optionalDataType: "String"
  8852        - name: "direction"
  8853          in: "query"
  8854          description: "按递增(asc)或递减(desc)排序,默认:递减"
  8855          required: false
  8856          type: "string"
  8857          default: "desc"
  8858          enum:
  8859          - "asc"
  8860          - "desc"
  8861          x-exportParamName: "Direction"
  8862          x-optionalDataType: "String"
  8863        responses:
  8864          200:
  8865            description: "返回格式"
  8866            schema:
  8867              type: "array"
  8868              items:
  8869                $ref: "#/definitions/Project"
  8870          404:
  8871            description: "没有相关数据"
  8872    /v5/users/{username}/subscriptions:
  8873      get:
  8874        tags:
  8875        - "Activity"
  8876        summary: "列出用户 watch 了的仓库"
  8877        description: "列出用户 watch 了的仓库"
  8878        operationId: "getV5UsersUsernameSubscriptions"
  8879        consumes:
  8880        - "application/json"
  8881        - "multipart/form-data"
  8882        produces:
  8883        - "application/json"
  8884        parameters:
  8885        - name: "access_token"
  8886          in: "query"
  8887          description: "用户授权码"
  8888          required: false
  8889          type: "string"
  8890          x-exportParamName: "AccessToken"
  8891          x-optionalDataType: "String"
  8892        - name: "username"
  8893          in: "path"
  8894          description: "用户名(username/login)"
  8895          required: true
  8896          type: "string"
  8897          x-exportParamName: "Username"
  8898        - name: "page"
  8899          in: "query"
  8900          description: "当前的页码"
  8901          required: false
  8902          type: "integer"
  8903          default: 1
  8904          format: "int32"
  8905          x-exportParamName: "Page"
  8906          x-optionalDataType: "Int32"
  8907        - name: "per_page"
  8908          in: "query"
  8909          description: "每页的数量,最大为 100"
  8910          required: false
  8911          type: "integer"
  8912          default: 20
  8913          format: "int32"
  8914          x-exportParamName: "PerPage"
  8915          x-optionalDataType: "Int32"
  8916        - name: "sort"
  8917          in: "query"
  8918          description: "根据仓库创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间"
  8919          required: false
  8920          type: "string"
  8921          default: "created"
  8922          enum:
  8923          - "created"
  8924          - "last_push"
  8925          x-exportParamName: "Sort"
  8926          x-optionalDataType: "String"
  8927        - name: "direction"
  8928          in: "query"
  8929          description: "按递增(asc)或递减(desc)排序,默认:递减"
  8930          required: false
  8931          type: "string"
  8932          default: "desc"
  8933          enum:
  8934          - "asc"
  8935          - "desc"
  8936          x-exportParamName: "Direction"
  8937          x-optionalDataType: "String"
  8938        responses:
  8939          200:
  8940            description: "返回格式"
  8941            schema:
  8942              type: "array"
  8943              items:
  8944                $ref: "#/definitions/Project"
  8945          404:
  8946            description: "没有相关数据"
  8947    /v5/users/{username}/received_events:
  8948      get:
  8949        tags:
  8950        - "Activity"
  8951        summary: "列出一个用户收到的动态"
  8952        description: "列出一个用户收到的动态"
  8953        operationId: "getV5UsersUsernameReceivedEvents"
  8954        consumes:
  8955        - "application/json"
  8956        - "multipart/form-data"
  8957        produces:
  8958        - "application/json"
  8959        parameters:
  8960        - name: "access_token"
  8961          in: "query"
  8962          description: "用户授权码"
  8963          required: false
  8964          type: "string"
  8965          x-exportParamName: "AccessToken"
  8966          x-optionalDataType: "String"
  8967        - name: "username"
  8968          in: "path"
  8969          description: "用户名(username/login)"
  8970          required: true
  8971          type: "string"
  8972          x-exportParamName: "Username"
  8973        - name: "page"
  8974          in: "query"
  8975          description: "当前的页码"
  8976          required: false
  8977          type: "integer"
  8978          default: 1
  8979          format: "int32"
  8980          x-exportParamName: "Page"
  8981          x-optionalDataType: "Int32"
  8982        - name: "per_page"
  8983          in: "query"
  8984          description: "每页的数量,最大为 100"
  8985          required: false
  8986          type: "integer"
  8987          default: 20
  8988          format: "int32"
  8989          x-exportParamName: "PerPage"
  8990          x-optionalDataType: "Int32"
  8991        responses:
  8992          200:
  8993            description: "返回格式"
  8994            schema:
  8995              type: "array"
  8996              items:
  8997                $ref: "#/definitions/Event"
  8998          404:
  8999            description: "没有相关数据"
  9000    /v5/users/{username}/received_events/public:
  9001      get:
  9002        tags:
  9003        - "Activity"
  9004        summary: "列出一个用户收到的公开动态"
  9005        description: "列出一个用户收到的公开动态"
  9006        operationId: "getV5UsersUsernameReceivedEventsPublic"
  9007        consumes:
  9008        - "application/json"
  9009        - "multipart/form-data"
  9010        produces:
  9011        - "application/json"
  9012        parameters:
  9013        - name: "access_token"
  9014          in: "query"
  9015          description: "用户授权码"
  9016          required: false
  9017          type: "string"
  9018          x-exportParamName: "AccessToken"
  9019          x-optionalDataType: "String"
  9020        - name: "username"
  9021          in: "path"
  9022          description: "用户名(username/login)"
  9023          required: true
  9024          type: "string"
  9025          x-exportParamName: "Username"
  9026        - name: "page"
  9027          in: "query"
  9028          description: "当前的页码"
  9029          required: false
  9030          type: "integer"
  9031          default: 1
  9032          format: "int32"
  9033          x-exportParamName: "Page"
  9034          x-optionalDataType: "Int32"
  9035        - name: "per_page"
  9036          in: "query"
  9037          description: "每页的数量,最大为 100"
  9038          required: false
  9039          type: "integer"
  9040          default: 20
  9041          format: "int32"
  9042          x-exportParamName: "PerPage"
  9043          x-optionalDataType: "Int32"
  9044        responses:
  9045          200:
  9046            description: "返回格式"
  9047            schema:
  9048              type: "array"
  9049              items:
  9050                $ref: "#/definitions/Event"
  9051          404:
  9052            description: "没有相关数据"
  9053    /v5/users/{username}/events:
  9054      get:
  9055        tags:
  9056        - "Activity"
  9057        summary: "列出用户的动态"
  9058        description: "列出用户的动态"
  9059        operationId: "getV5UsersUsernameEvents"
  9060        consumes:
  9061        - "application/json"
  9062        - "multipart/form-data"
  9063        produces:
  9064        - "application/json"
  9065        parameters:
  9066        - name: "access_token"
  9067          in: "query"
  9068          description: "用户授权码"
  9069          required: false
  9070          type: "string"
  9071          x-exportParamName: "AccessToken"
  9072          x-optionalDataType: "String"
  9073        - name: "username"
  9074          in: "path"
  9075          description: "用户名(username/login)"
  9076          required: true
  9077          type: "string"
  9078          x-exportParamName: "Username"
  9079        - name: "page"
  9080          in: "query"
  9081          description: "当前的页码"
  9082          required: false
  9083          type: "integer"
  9084          default: 1
  9085          format: "int32"
  9086          x-exportParamName: "Page"
  9087          x-optionalDataType: "Int32"
  9088        - name: "per_page"
  9089          in: "query"
  9090          description: "每页的数量,最大为 100"
  9091          required: false
  9092          type: "integer"
  9093          default: 20
  9094          format: "int32"
  9095          x-exportParamName: "PerPage"
  9096          x-optionalDataType: "Int32"
  9097        responses:
  9098          200:
  9099            description: "返回格式"
  9100            schema:
  9101              type: "array"
  9102              items:
  9103                $ref: "#/definitions/Event"
  9104          404:
  9105            description: "没有相关数据"
  9106    /v5/users/{username}/events/public:
  9107      get:
  9108        tags:
  9109        - "Activity"
  9110        summary: "列出用户的公开动态"
  9111        description: "列出用户的公开动态"
  9112        operationId: "getV5UsersUsernameEventsPublic"
  9113        consumes:
  9114        - "application/json"
  9115        - "multipart/form-data"
  9116        produces:
  9117        - "application/json"
  9118        parameters:
  9119        - name: "access_token"
  9120          in: "query"
  9121          description: "用户授权码"
  9122          required: false
  9123          type: "string"
  9124          x-exportParamName: "AccessToken"
  9125          x-optionalDataType: "String"
  9126        - name: "username"
  9127          in: "path"
  9128          description: "用户名(username/login)"
  9129          required: true
  9130          type: "string"
  9131          x-exportParamName: "Username"
  9132        - name: "page"
  9133          in: "query"
  9134          description: "当前的页码"
  9135          required: false
  9136          type: "integer"
  9137          default: 1
  9138          format: "int32"
  9139          x-exportParamName: "Page"
  9140          x-optionalDataType: "Int32"
  9141        - name: "per_page"
  9142          in: "query"
  9143          description: "每页的数量,最大为 100"
  9144          required: false
  9145          type: "integer"
  9146          default: 20
  9147          format: "int32"
  9148          x-exportParamName: "PerPage"
  9149          x-optionalDataType: "Int32"
  9150        responses:
  9151          200:
  9152            description: "返回格式"
  9153            schema:
  9154              type: "array"
  9155              items:
  9156                $ref: "#/definitions/Event"
  9157          404:
  9158            description: "没有相关数据"
  9159    /v5/users/{username}/events/orgs/{org}:
  9160      get:
  9161        tags:
  9162        - "Activity"
  9163        summary: "列出用户所属组织的动态"
  9164        description: "列出用户所属组织的动态"
  9165        operationId: "getV5UsersUsernameEventsOrgsOrg"
  9166        consumes:
  9167        - "application/json"
  9168        - "multipart/form-data"
  9169        produces:
  9170        - "application/json"
  9171        parameters:
  9172        - name: "access_token"
  9173          in: "query"
  9174          description: "用户授权码"
  9175          required: false
  9176          type: "string"
  9177          x-exportParamName: "AccessToken"
  9178          x-optionalDataType: "String"
  9179        - name: "username"
  9180          in: "path"
  9181          description: "用户名(username/login)"
  9182          required: true
  9183          type: "string"
  9184          x-exportParamName: "Username"
  9185        - name: "page"
  9186          in: "query"
  9187          description: "当前的页码"
  9188          required: false
  9189          type: "integer"
  9190          default: 1
  9191          format: "int32"
  9192          x-exportParamName: "Page"
  9193          x-optionalDataType: "Int32"
  9194        - name: "per_page"
  9195          in: "query"
  9196          description: "每页的数量,最大为 100"
  9197          required: false
  9198          type: "integer"
  9199          default: 20
  9200          format: "int32"
  9201          x-exportParamName: "PerPage"
  9202          x-optionalDataType: "Int32"
  9203        - name: "org"
  9204          in: "path"
  9205          description: "组织的路径(path/login)"
  9206          required: true
  9207          type: "string"
  9208          x-exportParamName: "Org"
  9209        responses:
  9210          200:
  9211            description: "返回格式"
  9212            schema:
  9213              type: "array"
  9214              items:
  9215                $ref: "#/definitions/Event"
  9216          403:
  9217            description: "没有权限"
  9218          404:
  9219            description: "没有相关数据"
  9220    /v5/orgs/{org}:
  9221      get:
  9222        tags:
  9223        - "Organizations"
  9224        summary: "获取一个组织"
  9225        description: "获取一个组织"
  9226        operationId: "getV5OrgsOrg"
  9227        consumes:
  9228        - "application/json"
  9229        - "multipart/form-data"
  9230        produces:
  9231        - "application/json"
  9232        parameters:
  9233        - name: "access_token"
  9234          in: "query"
  9235          description: "用户授权码"
  9236          required: false
  9237          type: "string"
  9238          x-exportParamName: "AccessToken"
  9239          x-optionalDataType: "String"
  9240        - name: "org"
  9241          in: "path"
  9242          description: "组织的路径(path/login)"
  9243          required: true
  9244          type: "string"
  9245          x-exportParamName: "Org"
  9246        responses:
  9247          200:
  9248            description: "返回格式"
  9249            schema:
  9250              $ref: "#/definitions/Group"
  9251          403:
  9252            description: "没有权限"
  9253          404:
  9254            description: "没有相关数据"
  9255      patch:
  9256        tags:
  9257        - "Organizations"
  9258        summary: "更新授权用户所管理的组织资料"
  9259        description: "更新授权用户所管理的组织资料"
  9260        operationId: "patchV5OrgsOrg"
  9261        consumes:
  9262        - "application/json"
  9263        - "multipart/form-data"
  9264        produces:
  9265        - "application/json"
  9266        parameters:
  9267        - name: "access_token"
  9268          in: "formData"
  9269          description: "用户授权码"
  9270          required: false
  9271          type: "string"
  9272          x-exportParamName: "AccessToken"
  9273          x-optionalDataType: "String"
  9274        - name: "org"
  9275          in: "path"
  9276          description: "组织的路径(path/login)"
  9277          required: true
  9278          type: "string"
  9279          x-exportParamName: "Org"
  9280        - name: "email"
  9281          in: "formData"
  9282          description: "组织公开的邮箱地址"
  9283          required: false
  9284          type: "string"
  9285          x-exportParamName: "Email"
  9286          x-optionalDataType: "String"
  9287        - name: "location"
  9288          in: "formData"
  9289          description: "组织所在地"
  9290          required: false
  9291          type: "string"
  9292          x-exportParamName: "Location"
  9293          x-optionalDataType: "String"
  9294        - name: "name"
  9295          in: "formData"
  9296          description: "组织名称"
  9297          required: false
  9298          type: "string"
  9299          x-exportParamName: "Name"
  9300          x-optionalDataType: "String"
  9301        - name: "description"
  9302          in: "formData"
  9303          description: "组织简介"
  9304          required: false
  9305          type: "string"
  9306          x-exportParamName: "Description"
  9307          x-optionalDataType: "String"
  9308        - name: "html_url"
  9309          in: "formData"
  9310          description: "组织站点"
  9311          required: false
  9312          type: "string"
  9313          x-exportParamName: "HtmlUrl"
  9314          x-optionalDataType: "String"
  9315        responses:
  9316          200:
  9317            description: "返回格式"
  9318            schema:
  9319              $ref: "#/definitions/GroupDetail"
  9320          400:
  9321            description: "数据不合法"
  9322          403:
  9323            description: "没有权限"
  9324          404:
  9325            description: "没有相关数据"
  9326    /v5/orgs/{org}/members:
  9327      get:
  9328        tags:
  9329        - "Organizations"
  9330        summary: "列出一个组织的所有成员"
  9331        description: "列出一个组织的所有成员"
  9332        operationId: "getV5OrgsOrgMembers"
  9333        consumes:
  9334        - "application/json"
  9335        - "multipart/form-data"
  9336        produces:
  9337        - "application/json"
  9338        parameters:
  9339        - name: "access_token"
  9340          in: "query"
  9341          description: "用户授权码"
  9342          required: false
  9343          type: "string"
  9344          x-exportParamName: "AccessToken"
  9345          x-optionalDataType: "String"
  9346        - name: "org"
  9347          in: "path"
  9348          description: "组织的路径(path/login)"
  9349          required: true
  9350          type: "string"
  9351          x-exportParamName: "Org"
  9352        - name: "page"
  9353          in: "query"
  9354          description: "当前的页码"
  9355          required: false
  9356          type: "integer"
  9357          default: 1
  9358          format: "int32"
  9359          x-exportParamName: "Page"
  9360          x-optionalDataType: "Int32"
  9361        - name: "per_page"
  9362          in: "query"
  9363          description: "每页的数量,最大为 100"
  9364          required: false
  9365          type: "integer"
  9366          default: 20
  9367          format: "int32"
  9368          x-exportParamName: "PerPage"
  9369          x-optionalDataType: "Int32"
  9370        - name: "role"
  9371          in: "query"
  9372          description: "根据角色筛选成员"
  9373          required: false
  9374          type: "string"
  9375          default: "all"
  9376          enum:
  9377          - "all"
  9378          - "admin"
  9379          - "member"
  9380          x-exportParamName: "Role"
  9381          x-optionalDataType: "String"
  9382        responses:
  9383          200:
  9384            description: "返回格式"
  9385            schema:
  9386              type: "array"
  9387              items:
  9388                $ref: "#/definitions/UserBasic"
  9389          403:
  9390            description: "没有权限"
  9391          404:
  9392            description: "没有相关数据"
  9393    /v5/orgs/{org}/issues:
  9394      get:
  9395        tags:
  9396        - "Issues"
  9397        summary: "获取当前用户某个组织的Issues"
  9398        description: "获取当前用户某个组织的Issues"
  9399        operationId: "getV5OrgsOrgIssues"
  9400        consumes:
  9401        - "application/json"
  9402        - "multipart/form-data"
  9403        produces:
  9404        - "application/json"
  9405        parameters:
  9406        - name: "access_token"
  9407          in: "query"
  9408          description: "用户授权码"
  9409          required: false
  9410          type: "string"
  9411          x-exportParamName: "AccessToken"
  9412          x-optionalDataType: "String"
  9413        - name: "filter"
  9414          in: "query"
  9415          description: "筛选参数: 授权用户负责的(assigned),授权用户创建的(created),包含前两者的(all)。默认: assigned"
  9416          required: false
  9417          type: "string"
  9418          default: "assigned"
  9419          enum:
  9420          - "assigned"
  9421          - "created"
  9422          - "all"
  9423          x-exportParamName: "Filter"
  9424          x-optionalDataType: "String"
  9425        - name: "state"
  9426          in: "query"
  9427          description: "Issue的状态: open(开启的), progressing(进行中), closed(关闭的), rejected(\
  9428            拒绝的)。 默认: open"
  9429          required: false
  9430          type: "string"
  9431          default: "open"
  9432          enum:
  9433          - "open"
  9434          - "progressing"
  9435          - "closed"
  9436          - "rejected"
  9437          - "all"
  9438          x-exportParamName: "State"
  9439          x-optionalDataType: "String"
  9440        - name: "labels"
  9441          in: "query"
  9442          description: "用逗号分开的标签。如: bug,performance"
  9443          required: false
  9444          type: "string"
  9445          x-exportParamName: "Labels"
  9446          x-optionalDataType: "String"
  9447        - name: "sort"
  9448          in: "query"
  9449          description: "排序依据: 创建时间(created),更新时间(updated_at)。默认: created_at"
  9450          required: false
  9451          type: "string"
  9452          default: "created"
  9453          enum:
  9454          - "created"
  9455          - "updated"
  9456          x-exportParamName: "Sort"
  9457          x-optionalDataType: "String"
  9458        - name: "direction"
  9459          in: "query"
  9460          description: "排序方式: 升序(asc),降序(desc)。默认: desc"
  9461          required: false
  9462          type: "string"
  9463          default: "desc"
  9464          enum:
  9465          - "asc"
  9466          - "desc"
  9467          x-exportParamName: "Direction"
  9468          x-optionalDataType: "String"
  9469        - name: "since"
  9470          in: "query"
  9471          description: "起始的更新时间,要求时间格式为 ISO 8601"
  9472          required: false
  9473          type: "string"
  9474          x-exportParamName: "Since"
  9475          x-optionalDataType: "String"
  9476        - name: "page"
  9477          in: "query"
  9478          description: "当前的页码"
  9479          required: false
  9480          type: "integer"
  9481          default: 1
  9482          format: "int32"
  9483          x-exportParamName: "Page"
  9484          x-optionalDataType: "Int32"
  9485        - name: "per_page"
  9486          in: "query"
  9487          description: "每页的数量,最大为 100"
  9488          required: false
  9489          type: "integer"
  9490          default: 20
  9491          format: "int32"
  9492          x-exportParamName: "PerPage"
  9493          x-optionalDataType: "Int32"
  9494        - name: "schedule"
  9495          in: "query"
  9496          description: "计划开始日期,格式:20181006T173008+80-20181007T173008+80(区间),或者 -20181007T173008+80(\
  9497            小于20181007T173008+80),或者 20181006T173008+80-(大于20181006T173008+80),要求时间格\
  9498            式为20181006T173008+80"
  9499          required: false
  9500          type: "string"
  9501          x-exportParamName: "Schedule"
  9502          x-optionalDataType: "String"
  9503        - name: "deadline"
  9504          in: "query"
  9505          description: "计划截止日期,格式同上"
  9506          required: false
  9507          type: "string"
  9508          x-exportParamName: "Deadline"
  9509          x-optionalDataType: "String"
  9510        - name: "created_at"
  9511          in: "query"
  9512          description: "任务创建时间,格式同上"
  9513          required: false
  9514          type: "string"
  9515          x-exportParamName: "CreatedAt"
  9516          x-optionalDataType: "String"
  9517        - name: "finished_at"
  9518          in: "query"
  9519          description: "任务完成时间,即任务最后一次转为已完成状态的时间点。格式同上"
  9520          required: false
  9521          type: "string"
  9522          x-exportParamName: "FinishedAt"
  9523          x-optionalDataType: "String"
  9524        - name: "org"
  9525          in: "path"
  9526          description: "组织的路径(path/login)"
  9527          required: true
  9528          type: "string"
  9529          x-exportParamName: "Org"
  9530        responses:
  9531          200:
  9532            description: "返回格式"
  9533            schema:
  9534              type: "array"
  9535              items:
  9536                $ref: "#/definitions/Issue"
  9537    /v5/orgs/{org}/repos:
  9538      get:
  9539        tags:
  9540        - "Repositories"
  9541        summary: "获取一个组织的仓库"
  9542        description: "获取一个组织的仓库"
  9543        operationId: "getV5OrgsOrgRepos"
  9544        consumes:
  9545        - "application/json"
  9546        - "multipart/form-data"
  9547        produces:
  9548        - "application/json"
  9549        parameters:
  9550        - name: "access_token"
  9551          in: "query"
  9552          description: "用户授权码"
  9553          required: false
  9554          type: "string"
  9555          x-exportParamName: "AccessToken"
  9556          x-optionalDataType: "String"
  9557        - name: "org"
  9558          in: "path"
  9559          description: "组织的路径(path/login)"
  9560          required: true
  9561          type: "string"
  9562          x-exportParamName: "Org"
  9563        - name: "type"
  9564          in: "query"
  9565          description: "筛选仓库的类型,可以是 all, public, private。默认: all"
  9566          required: false
  9567          type: "string"
  9568          default: "all"
  9569          enum:
  9570          - "all"
  9571          - "public"
  9572          - "private"
  9573          x-exportParamName: "Type_"
  9574          x-optionalDataType: "String"
  9575        - name: "page"
  9576          in: "query"
  9577          description: "当前的页码"
  9578          required: false
  9579          type: "integer"
  9580          default: 1
  9581          format: "int32"
  9582          x-exportParamName: "Page"
  9583          x-optionalDataType: "Int32"
  9584        - name: "per_page"
  9585          in: "query"
  9586          description: "每页的数量,最大为 100"
  9587          required: false
  9588          type: "integer"
  9589          default: 20
  9590          format: "int32"
  9591          x-exportParamName: "PerPage"
  9592          x-optionalDataType: "Int32"
  9593        responses:
  9594          200:
  9595            description: "返回格式"
  9596            schema:
  9597              type: "array"
  9598              items:
  9599                $ref: "#/definitions/Project"
  9600      post:
  9601        tags:
  9602        - "Repositories"
  9603        summary: "创建组织仓库"
  9604        description: "创建组织仓库"
  9605        operationId: "postV5OrgsOrgRepos"
  9606        consumes:
  9607        - "application/json"
  9608        - "multipart/form-data"
  9609        produces:
  9610        - "application/json"
  9611        parameters:
  9612        - name: "org"
  9613          in: "path"
  9614          description: "组织的路径(path/login)"
  9615          required: true
  9616          type: "string"
  9617          x-exportParamName: "Org"
  9618        - in: "body"
  9619          name: "body"
  9620          description: "Repositorie 内容"
  9621          required: true
  9622          schema:
  9623            $ref: "#/definitions/RepositoryPostParam"
  9624          x-exportParamName: "Body"
  9625        responses:
  9626          201:
  9627            description: "返回格式"
  9628            schema:
  9629              $ref: "#/definitions/Project"
  9630    /v5/orgs/{org}/memberships/{username}:
  9631      get:
  9632        tags:
  9633        - "Organizations"
  9634        summary: "获取授权用户所属组织的一个成员"
  9635        description: "获取授权用户所属组织的一个成员"
  9636        operationId: "getV5OrgsOrgMembershipsUsername"
  9637        consumes:
  9638        - "application/json"
  9639        - "multipart/form-data"
  9640        produces:
  9641        - "application/json"
  9642        parameters:
  9643        - name: "access_token"
  9644          in: "query"
  9645          description: "用户授权码"
  9646          required: false
  9647          type: "string"
  9648          x-exportParamName: "AccessToken"
  9649          x-optionalDataType: "String"
  9650        - name: "org"
  9651          in: "path"
  9652          description: "组织的路径(path/login)"
  9653          required: true
  9654          type: "string"
  9655          x-exportParamName: "Org"
  9656        - name: "username"
  9657          in: "path"
  9658          description: "用户名(username/login)"
  9659          required: true
  9660          type: "string"
  9661          x-exportParamName: "Username"
  9662        responses:
  9663          200:
  9664            description: "返回格式"
  9665            schema:
  9666              $ref: "#/definitions/GroupMember"
  9667          404:
  9668            description: "没有相关数据"
  9669      put:
  9670        tags:
  9671        - "Organizations"
  9672        summary: "增加或更新授权用户所管理组织的成员"
  9673        description: "增加或更新授权用户所管理组织的成员"
  9674        operationId: "putV5OrgsOrgMembershipsUsername"
  9675        consumes:
  9676        - "application/json"
  9677        - "multipart/form-data"
  9678        produces:
  9679        - "application/json"
  9680        parameters:
  9681        - name: "access_token"
  9682          in: "formData"
  9683          description: "用户授权码"
  9684          required: false
  9685          type: "string"
  9686          x-exportParamName: "AccessToken"
  9687          x-optionalDataType: "String"
  9688        - name: "org"
  9689          in: "path"
  9690          description: "组织的路径(path/login)"
  9691          required: true
  9692          type: "string"
  9693          x-exportParamName: "Org"
  9694        - name: "username"
  9695          in: "path"
  9696          description: "用户名(username/login)"
  9697          required: true
  9698          type: "string"
  9699          x-exportParamName: "Username"
  9700        - name: "role"
  9701          in: "formData"
  9702          description: "设置用户在组织的角色"
  9703          required: false
  9704          type: "string"
  9705          default: "member"
  9706          enum:
  9707          - "admin"
  9708          - "member"
  9709          x-exportParamName: "Role"
  9710          x-optionalDataType: "String"
  9711        responses:
  9712          200:
  9713            description: "返回格式"
  9714            schema:
  9715              $ref: "#/definitions/GroupMember"
  9716          400:
  9717            description: "数据不合法"
  9718          403:
  9719            description: "没有权限"
  9720          404:
  9721            description: "没有相关数据"
  9722      delete:
  9723        tags:
  9724        - "Organizations"
  9725        summary: "移除授权用户所管理组织中的成员"
  9726        description: "移除授权用户所管理组织中的成员"
  9727        operationId: "deleteV5OrgsOrgMembershipsUsername"
  9728        consumes:
  9729        - "application/json"
  9730        - "multipart/form-data"
  9731        produces:
  9732        - "application/json"
  9733        parameters:
  9734        - name: "access_token"
  9735          in: "query"
  9736          description: "用户授权码"
  9737          required: false
  9738          type: "string"
  9739          x-exportParamName: "AccessToken"
  9740          x-optionalDataType: "String"
  9741        - name: "org"
  9742          in: "path"
  9743          description: "组织的路径(path/login)"
  9744          required: true
  9745          type: "string"
  9746          x-exportParamName: "Org"
  9747        - name: "username"
  9748          in: "path"
  9749          description: "用户名(username/login)"
  9750          required: true
  9751          type: "string"
  9752          x-exportParamName: "Username"
  9753        responses:
  9754          204:
  9755            description: "执行成功"
  9756          403:
  9757            description: "没有权限"
  9758          404:
  9759            description: "没有相关数据"
  9760    /v5/orgs/{org}/events:
  9761      get:
  9762        tags:
  9763        - "Activity"
  9764        summary: "列出组织的公开动态"
  9765        description: "列出组织的公开动态"
  9766        operationId: "getV5OrgsOrgEvents"
  9767        consumes:
  9768        - "application/json"
  9769        - "multipart/form-data"
  9770        produces:
  9771        - "application/json"
  9772        parameters:
  9773        - name: "access_token"
  9774          in: "query"
  9775          description: "用户授权码"
  9776          required: false
  9777          type: "string"
  9778          x-exportParamName: "AccessToken"
  9779          x-optionalDataType: "String"
  9780        - name: "org"
  9781          in: "path"
  9782          description: "组织的路径(path/login)"
  9783          required: true
  9784          type: "string"
  9785          x-exportParamName: "Org"
  9786        - name: "page"
  9787          in: "query"
  9788          description: "当前的页码"
  9789          required: false
  9790          type: "integer"
  9791          default: 1
  9792          format: "int32"
  9793          x-exportParamName: "Page"
  9794          x-optionalDataType: "Int32"
  9795        - name: "per_page"
  9796          in: "query"
  9797          description: "每页的数量,最大为 100"
  9798          required: false
  9799          type: "integer"
  9800          default: 20
  9801          format: "int32"
  9802          x-exportParamName: "PerPage"
  9803          x-optionalDataType: "Int32"
  9804        responses:
  9805          200:
  9806            description: "返回格式"
  9807            schema:
  9808              type: "array"
  9809              items:
  9810                $ref: "#/definitions/Event"
  9811          403:
  9812            description: "没有权限"
  9813          404:
  9814            description: "没有相关数据"
  9815    /v5/issues:
  9816      get:
  9817        tags:
  9818        - "Issues"
  9819        summary: "获取当前授权用户的所有Issues"
  9820        description: "获取当前授权用户的所有Issues"
  9821        operationId: "getV5Issues"
  9822        consumes:
  9823        - "application/json"
  9824        - "multipart/form-data"
  9825        produces:
  9826        - "application/json"
  9827        parameters:
  9828        - name: "access_token"
  9829          in: "query"
  9830          description: "用户授权码"
  9831          required: false
  9832          type: "string"
  9833          x-exportParamName: "AccessToken"
  9834          x-optionalDataType: "String"
  9835        - name: "filter"
  9836          in: "query"
  9837          description: "筛选参数: 授权用户负责的(assigned),授权用户创建的(created),包含前两者的(all)。默认: assigned"
  9838          required: false
  9839          type: "string"
  9840          default: "assigned"
  9841          enum:
  9842          - "assigned"
  9843          - "created"
  9844          - "all"
  9845          x-exportParamName: "Filter"
  9846          x-optionalDataType: "String"
  9847        - name: "state"
  9848          in: "query"
  9849          description: "Issue的状态: open(开启的), progressing(进行中), closed(关闭的), rejected(\
  9850            拒绝的)。 默认: open"
  9851          required: false
  9852          type: "string"
  9853          default: "open"
  9854          enum:
  9855          - "open"
  9856          - "progressing"
  9857          - "closed"
  9858          - "rejected"
  9859          - "all"
  9860          x-exportParamName: "State"
  9861          x-optionalDataType: "String"
  9862        - name: "labels"
  9863          in: "query"
  9864          description: "用逗号分开的标签。如: bug,performance"
  9865          required: false
  9866          type: "string"
  9867          x-exportParamName: "Labels"
  9868          x-optionalDataType: "String"
  9869        - name: "sort"
  9870          in: "query"
  9871          description: "排序依据: 创建时间(created),更新时间(updated_at)。默认: created_at"
  9872          required: false
  9873          type: "string"
  9874          default: "created"
  9875          enum:
  9876          - "created"
  9877          - "updated"
  9878          x-exportParamName: "Sort"
  9879          x-optionalDataType: "String"
  9880        - name: "direction"
  9881          in: "query"
  9882          description: "排序方式: 升序(asc),降序(desc)。默认: desc"
  9883          required: false
  9884          type: "string"
  9885          default: "desc"
  9886          enum:
  9887          - "asc"
  9888          - "desc"
  9889          x-exportParamName: "Direction"
  9890          x-optionalDataType: "String"
  9891        - name: "since"
  9892          in: "query"
  9893          description: "起始的更新时间,要求时间格式为 ISO 8601"
  9894          required: false
  9895          type: "string"
  9896          x-exportParamName: "Since"
  9897          x-optionalDataType: "String"
  9898        - name: "page"
  9899          in: "query"
  9900          description: "当前的页码"
  9901          required: false
  9902          type: "integer"
  9903          default: 1
  9904          format: "int32"
  9905          x-exportParamName: "Page"
  9906          x-optionalDataType: "Int32"
  9907        - name: "per_page"
  9908          in: "query"
  9909          description: "每页的数量,最大为 100"
  9910          required: false
  9911          type: "integer"
  9912          default: 20
  9913          format: "int32"
  9914          x-exportParamName: "PerPage"
  9915          x-optionalDataType: "Int32"
  9916        - name: "schedule"
  9917          in: "query"
  9918          description: "计划开始日期,格式:20181006T173008+80-20181007T173008+80(区间),或者 -20181007T173008+80(\
  9919            小于20181007T173008+80),或者 20181006T173008+80-(大于20181006T173008+80),要求时间格\
  9920            式为20181006T173008+80"
  9921          required: false
  9922          type: "string"
  9923          x-exportParamName: "Schedule"
  9924          x-optionalDataType: "String"
  9925        - name: "deadline"
  9926          in: "query"
  9927          description: "计划截止日期,格式同上"
  9928          required: false
  9929          type: "string"
  9930          x-exportParamName: "Deadline"
  9931          x-optionalDataType: "String"
  9932        - name: "created_at"
  9933          in: "query"
  9934          description: "任务创建时间,格式同上"
  9935          required: false
  9936          type: "string"
  9937          x-exportParamName: "CreatedAt"
  9938          x-optionalDataType: "String"
  9939        - name: "finished_at"
  9940          in: "query"
  9941          description: "任务完成时间,即任务最后一次转为已完成状态的时间点。格式同上"
  9942          required: false
  9943          type: "string"
  9944          x-exportParamName: "FinishedAt"
  9945          x-optionalDataType: "String"
  9946        responses:
  9947          200:
  9948            description: "返回格式"
  9949            schema:
  9950              type: "array"
  9951              items:
  9952                $ref: "#/definitions/Issue"
  9953    /v5/enterprises/{enterprise}/issues:
  9954      get:
  9955        tags:
  9956        - "Issues"
  9957        summary: "获取某个企业的所有Issues"
  9958        description: "获取某个企业的所有Issues"
  9959        operationId: "getV5EnterprisesEnterpriseIssues"
  9960        consumes:
  9961        - "application/json"
  9962        - "multipart/form-data"
  9963        produces:
  9964        - "application/json"
  9965        parameters:
  9966        - name: "access_token"
  9967          in: "query"
  9968          description: "用户授权码"
  9969          required: false
  9970          type: "string"
  9971          x-exportParamName: "AccessToken"
  9972          x-optionalDataType: "String"
  9973        - name: "enterprise"
  9974          in: "path"
  9975          description: "企业的路径(path/login)"
  9976          required: true
  9977          type: "string"
  9978          x-exportParamName: "Enterprise"
  9979        - name: "state"
  9980          in: "query"
  9981          description: "Issue的状态: open(开启的), progressing(进行中), closed(关闭的), rejected(\
  9982            拒绝的)。 默认: open"
  9983          required: false
  9984          type: "string"
  9985          default: "open"
  9986          enum:
  9987          - "open"
  9988          - "progressing"
  9989          - "closed"
  9990          - "rejected"
  9991          - "all"
  9992          x-exportParamName: "State"
  9993          x-optionalDataType: "String"
  9994        - name: "labels"
  9995          in: "query"
  9996          description: "用逗号分开的标签。如: bug,performance"
  9997          required: false
  9998          type: "string"
  9999          x-exportParamName: "Labels"
 10000          x-optionalDataType: "String"
 10001        - name: "sort"
 10002          in: "query"
 10003          description: "排序依据: 创建时间(created),更新时间(updated_at)。默认: created_at"
 10004          required: false
 10005          type: "string"
 10006          default: "created"
 10007          enum:
 10008          - "created"
 10009          - "updated"
 10010          x-exportParamName: "Sort"
 10011          x-optionalDataType: "String"
 10012        - name: "direction"
 10013          in: "query"
 10014          description: "排序方式: 升序(asc),降序(desc)。默认: desc"
 10015          required: false
 10016          type: "string"
 10017          default: "desc"
 10018          enum:
 10019          - "asc"
 10020          - "desc"
 10021          x-exportParamName: "Direction"
 10022          x-optionalDataType: "String"
 10023        - name: "since"
 10024          in: "query"
 10025          description: "起始的更新时间,要求时间格式为 ISO 8601"
 10026          required: false
 10027          type: "string"
 10028          x-exportParamName: "Since"
 10029          x-optionalDataType: "String"
 10030        - name: "page"
 10031          in: "query"
 10032          description: "当前的页码"
 10033          required: false
 10034          type: "integer"
 10035          default: 1
 10036          format: "int32"
 10037          x-exportParamName: "Page"
 10038          x-optionalDataType: "Int32"
 10039        - name: "per_page"
 10040          in: "query"
 10041          description: "每页的数量,最大为 100"
 10042          required: false
 10043          type: "integer"
 10044          default: 20
 10045          format: "int32"
 10046          x-exportParamName: "PerPage"
 10047          x-optionalDataType: "Int32"
 10048        - name: "schedule"
 10049          in: "query"
 10050          description: "计划开始日期,格式:20181006T173008+80-20181007T173008+80(区间),或者 -20181007T173008+80(\
 10051            小于20181007T173008+80),或者 20181006T173008+80-(大于20181006T173008+80),要求时间格\
 10052            式为20181006T173008+80"
 10053          required: false
 10054          type: "string"
 10055          x-exportParamName: "Schedule"
 10056          x-optionalDataType: "String"
 10057        - name: "deadline"
 10058          in: "query"
 10059          description: "计划截止日期,格式同上"
 10060          required: false
 10061          type: "string"
 10062          x-exportParamName: "Deadline"
 10063          x-optionalDataType: "String"
 10064        - name: "created_at"
 10065          in: "query"
 10066          description: "任务创建时间,格式同上"
 10067          required: false
 10068          type: "string"
 10069          x-exportParamName: "CreatedAt"
 10070          x-optionalDataType: "String"
 10071        - name: "finished_at"
 10072          in: "query"
 10073          description: "任务完成时间,即任务最后一次转为已完成状态的时间点。格式同上"
 10074          required: false
 10075          type: "string"
 10076          x-exportParamName: "FinishedAt"
 10077          x-optionalDataType: "String"
 10078        - name: "milestone"
 10079          in: "query"
 10080          description: "根据里程碑标题。none为没里程碑的,*为所有带里程碑的"
 10081          required: false
 10082          type: "string"
 10083          x-exportParamName: "Milestone"
 10084          x-optionalDataType: "String"
 10085        - name: "assignee"
 10086          in: "query"
 10087          description: "用户的username。 none为没指派者, *为所有带有指派者的"
 10088          required: false
 10089          type: "string"
 10090          x-exportParamName: "Assignee"
 10091          x-optionalDataType: "String"
 10092        - name: "creator"
 10093          in: "query"
 10094          description: "创建Issues的用户username"
 10095          required: false
 10096          type: "string"
 10097          x-exportParamName: "Creator"
 10098          x-optionalDataType: "String"
 10099        - name: "program"
 10100          in: "query"
 10101          description: "所属项目名称。none为没所属有项目的,*为所有带所属项目的"
 10102          required: false
 10103          type: "string"
 10104          x-exportParamName: "Program"
 10105          x-optionalDataType: "String"
 10106        responses:
 10107          200:
 10108            description: "返回格式"
 10109            schema:
 10110              type: "array"
 10111              items:
 10112                $ref: "#/definitions/Issue"
 10113    /v5/enterprises/{enterprise}:
 10114      get:
 10115        tags:
 10116        - "Enterprises"
 10117        summary: "获取一个企业"
 10118        description: "获取一个企业"
 10119        operationId: "getV5EnterprisesEnterprise"
 10120        consumes:
 10121        - "application/json"
 10122        - "multipart/form-data"
 10123        produces:
 10124        - "application/json"
 10125        parameters:
 10126        - name: "access_token"
 10127          in: "query"
 10128          description: "用户授权码"
 10129          required: false
 10130          type: "string"
 10131          x-exportParamName: "AccessToken"
 10132          x-optionalDataType: "String"
 10133        - name: "enterprise"
 10134          in: "path"
 10135          description: "企业的路径(path/login)"
 10136          required: true
 10137          type: "string"
 10138          x-exportParamName: "Enterprise"
 10139        responses:
 10140          200:
 10141            description: "返回格式"
 10142            schema:
 10143              $ref: "#/definitions/EnterpriseBasic"
 10144          403:
 10145            description: "没有权限"
 10146          404:
 10147            description: "没有相关数据"
 10148    /v5/enterprises/{enterprise}/members:
 10149      get:
 10150        tags:
 10151        - "Enterprises"
 10152        summary: "列出企业的所有成员"
 10153        description: "列出企业的所有成员"
 10154        operationId: "getV5EnterprisesEnterpriseMembers"
 10155        consumes:
 10156        - "application/json"
 10157        - "multipart/form-data"
 10158        produces:
 10159        - "application/json"
 10160        parameters:
 10161        - name: "access_token"
 10162          in: "query"
 10163          description: "用户授权码"
 10164          required: false
 10165          type: "string"
 10166          x-exportParamName: "AccessToken"
 10167          x-optionalDataType: "String"
 10168        - name: "enterprise"
 10169          in: "path"
 10170          description: "企业的路径(path/login)"
 10171          required: true
 10172          type: "string"
 10173          x-exportParamName: "Enterprise"
 10174        - name: "role"
 10175          in: "query"
 10176          description: "根据角色筛选成员"
 10177          required: false
 10178          type: "string"
 10179          default: "all"
 10180          enum:
 10181          - "all"
 10182          - "admin"
 10183          - "member"
 10184          x-exportParamName: "Role"
 10185          x-optionalDataType: "String"
 10186        responses:
 10187          200:
 10188            description: "返回格式"
 10189            schema:
 10190              type: "array"
 10191              items:
 10192                $ref: "#/definitions/EnterpriseMember"
 10193          403:
 10194            description: "没有权限"
 10195          404:
 10196            description: "没有相关数据"
 10197      post:
 10198        tags:
 10199        - "Enterprises"
 10200        summary: "添加或邀请企业成员"
 10201        description: "添加或邀请企业成员"
 10202        operationId: "postV5EnterprisesEnterpriseMembers"
 10203        consumes:
 10204        - "application/json"
 10205        - "multipart/form-data"
 10206        produces:
 10207        - "application/json"
 10208        parameters:
 10209        - name: "access_token"
 10210          in: "formData"
 10211          description: "用户授权码"
 10212          required: false
 10213          type: "string"
 10214          x-exportParamName: "AccessToken"
 10215          x-optionalDataType: "String"
 10216        - name: "enterprise"
 10217          in: "path"
 10218          description: "企业的路径(path/login)"
 10219          required: true
 10220          type: "string"
 10221          x-exportParamName: "Enterprise"
 10222        - name: "username"
 10223          in: "formData"
 10224          description: "需要邀请的码云用户名(username/login),username,email至少填写一个"
 10225          required: false
 10226          type: "string"
 10227          x-exportParamName: "Username"
 10228          x-optionalDataType: "String"
 10229        - name: "email"
 10230          in: "formData"
 10231          description: "要添加邮箱地址,若该邮箱未注册则自动创建帐号。username,email至少填写一个"
 10232          required: false
 10233          type: "string"
 10234          x-exportParamName: "Email"
 10235          x-optionalDataType: "String"
 10236        - name: "outsourced"
 10237          in: "formData"
 10238          description: "是否企业外包成员,默认:否"
 10239          required: false
 10240          type: "boolean"
 10241          x-exportParamName: "Outsourced"
 10242          x-optionalDataType: "Bool"
 10243        - name: "role"
 10244          in: "formData"
 10245          description: "企业角色,默认普通成员"
 10246          required: false
 10247          type: "string"
 10248          default: "member"
 10249          enum:
 10250          - "admin"
 10251          - "member"
 10252          x-exportParamName: "Role"
 10253          x-optionalDataType: "String"
 10254        - name: "name"
 10255          in: "formData"
 10256          description: "企业成员真实姓名(备注)"
 10257          required: false
 10258          type: "string"
 10259          x-exportParamName: "Name"
 10260          x-optionalDataType: "String"
 10261        responses:
 10262          204:
 10263            description: "执行成功"
 10264          403:
 10265            description: "没有权限"
 10266          404:
 10267            description: "没有相关数据"
 10268    /v5/enterprises/{enterprise}/week_reports/{id}/comments:
 10269      get:
 10270        tags:
 10271        - "Enterprises"
 10272        summary: "某个周报评论列表"
 10273        description: "某个周报评论列表"
 10274        operationId: "getV5EnterprisesEnterpriseWeekReportsIdComments"
 10275        consumes:
 10276        - "application/json"
 10277        - "multipart/form-data"
 10278        produces:
 10279        - "application/json"
 10280        parameters:
 10281        - name: "access_token"
 10282          in: "query"
 10283          description: "用户授权码"
 10284          required: false
 10285          type: "string"
 10286          x-exportParamName: "AccessToken"
 10287          x-optionalDataType: "String"
 10288        - name: "enterprise"
 10289          in: "path"
 10290          description: "企业的路径(path/login)"
 10291          required: true
 10292          type: "string"
 10293          x-exportParamName: "Enterprise"
 10294        - name: "page"
 10295          in: "query"
 10296          description: "当前的页码"
 10297          required: false
 10298          type: "integer"
 10299          default: 1
 10300          format: "int32"
 10301          x-exportParamName: "Page"
 10302          x-optionalDataType: "Int32"
 10303        - name: "per_page"
 10304          in: "query"
 10305          description: "每页的数量,最大为 100"
 10306          required: false
 10307          type: "integer"
 10308          default: 20
 10309          format: "int32"
 10310          x-exportParamName: "PerPage"
 10311          x-optionalDataType: "Int32"
 10312        - name: "id"
 10313          in: "path"
 10314          description: "周报ID"
 10315          required: true
 10316          type: "integer"
 10317          format: "int32"
 10318          x-exportParamName: "Id"
 10319        responses:
 10320          200:
 10321            description: "返回格式"
 10322            schema:
 10323              type: "array"
 10324              items:
 10325                $ref: "#/definitions/Note"
 10326    /v5/enterprises/{enterprise}/week_reports/{id}/comment:
 10327      post:
 10328        tags:
 10329        - "Enterprises"
 10330        summary: "评论周报"
 10331        description: "评论周报"
 10332        operationId: "postV5EnterprisesEnterpriseWeekReportsIdComment"
 10333        consumes:
 10334        - "application/json"
 10335        - "multipart/form-data"
 10336        produces:
 10337        - "application/json"
 10338        parameters:
 10339        - name: "access_token"
 10340          in: "formData"
 10341          description: "用户授权码"
 10342          required: false
 10343          type: "string"
 10344          x-exportParamName: "AccessToken"
 10345          x-optionalDataType: "String"
 10346        - name: "enterprise"
 10347          in: "path"
 10348          description: "企业的路径(path/login)"
 10349          required: true
 10350          type: "string"
 10351          x-exportParamName: "Enterprise"
 10352        - name: "id"
 10353          in: "path"
 10354          description: "周报ID"
 10355          required: true
 10356          type: "integer"
 10357          format: "int32"
 10358          x-exportParamName: "Id"
 10359        - name: "body"
 10360          in: "formData"
 10361          description: "评论的内容"
 10362          required: true
 10363          type: "string"
 10364          x-exportParamName: "Body"
 10365        responses:
 10366          201:
 10367            description: "返回格式"
 10368            schema:
 10369              $ref: "#/definitions/Note"
 10370    /v5/enterprises/{enterprise}/week_reports/{report_id}/comments/{id}:
 10371      delete:
 10372        tags:
 10373        - "Enterprises"
 10374        summary: "删除周报某个评论"
 10375        description: "删除周报某个评论"
 10376        operationId: "deleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsId"
 10377        consumes:
 10378        - "application/json"
 10379        - "multipart/form-data"
 10380        produces:
 10381        - "application/json"
 10382        parameters:
 10383        - name: "access_token"
 10384          in: "query"
 10385          description: "用户授权码"
 10386          required: false
 10387          type: "string"
 10388          x-exportParamName: "AccessToken"
 10389          x-optionalDataType: "String"
 10390        - name: "enterprise"
 10391          in: "path"
 10392          description: "企业的路径(path/login)"
 10393          required: true
 10394          type: "string"
 10395          x-exportParamName: "Enterprise"
 10396        - name: "report_id"
 10397          in: "path"
 10398          description: "周报ID"
 10399          required: true
 10400          type: "integer"
 10401          format: "int32"
 10402          x-exportParamName: "ReportId"
 10403        - name: "id"
 10404          in: "path"
 10405          description: "评论ID"
 10406          required: true
 10407          type: "integer"
 10408          format: "int32"
 10409          x-exportParamName: "Id"
 10410        responses:
 10411          204:
 10412            description: "删除周报某个评论"
 10413    /v5/enterprises/{enterprise}/users/{username}/week_reports:
 10414      get:
 10415        tags:
 10416        - "Enterprises"
 10417        summary: "个人周报列表"
 10418        description: "个人周报列表"
 10419        operationId: "getV5EnterprisesEnterpriseUsersUsernameWeekReports"
 10420        consumes:
 10421        - "application/json"
 10422        - "multipart/form-data"
 10423        produces:
 10424        - "application/json"
 10425        parameters:
 10426        - name: "access_token"
 10427          in: "query"
 10428          description: "用户授权码"
 10429          required: false
 10430          type: "string"
 10431          x-exportParamName: "AccessToken"
 10432          x-optionalDataType: "String"
 10433        - name: "enterprise"
 10434          in: "path"
 10435          description: "企业的路径(path/login)"
 10436          required: true
 10437          type: "string"
 10438          x-exportParamName: "Enterprise"
 10439        - name: "username"
 10440          in: "path"
 10441          description: "用户名(username/login)"
 10442          required: true
 10443          type: "string"
 10444          x-exportParamName: "Username"
 10445        - name: "page"
 10446          in: "query"
 10447          description: "当前的页码"
 10448          required: false
 10449          type: "integer"
 10450          default: 1
 10451          format: "int32"
 10452          x-exportParamName: "Page"
 10453          x-optionalDataType: "Int32"
 10454        - name: "per_page"
 10455          in: "query"
 10456          description: "每页的数量,最大为 100"
 10457          required: false
 10458          type: "integer"
 10459          default: 20
 10460          format: "int32"
 10461          x-exportParamName: "PerPage"
 10462          x-optionalDataType: "Int32"
 10463        responses:
 10464          200:
 10465            description: "返回格式"
 10466            schema:
 10467              type: "array"
 10468              items:
 10469                $ref: "#/definitions/WeekReport"
 10470    /v5/enterprises/{enterprise}/week_reports:
 10471      get:
 10472        tags:
 10473        - "Enterprises"
 10474        summary: "企业成员周报列表"
 10475        description: "企业成员周报列表"
 10476        operationId: "getV5EnterprisesEnterpriseWeekReports"
 10477        consumes:
 10478        - "application/json"
 10479        - "multipart/form-data"
 10480        produces:
 10481        - "application/json"
 10482        parameters:
 10483        - name: "access_token"
 10484          in: "query"
 10485          description: "用户授权码"
 10486          required: false
 10487          type: "string"
 10488          x-exportParamName: "AccessToken"
 10489          x-optionalDataType: "String"
 10490        - name: "enterprise"
 10491          in: "path"
 10492          description: "企业的路径(path/login)"
 10493          required: true
 10494          type: "string"
 10495          x-exportParamName: "Enterprise"
 10496        - name: "page"
 10497          in: "query"
 10498          description: "当前的页码"
 10499          required: false
 10500          type: "integer"
 10501          default: 1
 10502          format: "int32"
 10503          x-exportParamName: "Page"
 10504          x-optionalDataType: "Int32"
 10505        - name: "per_page"
 10506          in: "query"
 10507          description: "每页的数量,最大为 100"
 10508          required: false
 10509          type: "integer"
 10510          default: 20
 10511          format: "int32"
 10512          x-exportParamName: "PerPage"
 10513          x-optionalDataType: "Int32"
 10514        - name: "username"
 10515          in: "query"
 10516          description: "用户名(username/login)"
 10517          required: false
 10518          type: "string"
 10519          x-exportParamName: "Username"
 10520          x-optionalDataType: "String"
 10521        - name: "year"
 10522          in: "query"
 10523          description: "周报所属年"
 10524          required: false
 10525          type: "integer"
 10526          format: "int32"
 10527          x-exportParamName: "Year"
 10528          x-optionalDataType: "Int32"
 10529        - name: "week_index"
 10530          in: "query"
 10531          description: "周报所属周"
 10532          required: false
 10533          type: "integer"
 10534          format: "int32"
 10535          x-exportParamName: "WeekIndex"
 10536          x-optionalDataType: "Int32"
 10537        - name: "date"
 10538          in: "query"
 10539          description: "周报日期(格式:2019-03-25)"
 10540          required: false
 10541          type: "string"
 10542          x-exportParamName: "Date"
 10543          x-optionalDataType: "String"
 10544        responses:
 10545          200:
 10546            description: "返回格式"
 10547            schema:
 10548              type: "array"
 10549              items:
 10550                $ref: "#/definitions/WeekReport"
 10551    /v5/enterprises/{enterprise}/week_reports/{id}:
 10552      get:
 10553        tags:
 10554        - "Enterprises"
 10555        summary: "周报详情"
 10556        description: "周报详情"
 10557        operationId: "getV5EnterprisesEnterpriseWeekReportsId"
 10558        consumes:
 10559        - "application/json"
 10560        - "multipart/form-data"
 10561        produces:
 10562        - "application/json"
 10563        parameters:
 10564        - name: "access_token"
 10565          in: "query"
 10566          description: "用户授权码"
 10567          required: false
 10568          type: "string"
 10569          x-exportParamName: "AccessToken"
 10570          x-optionalDataType: "String"
 10571        - name: "enterprise"
 10572          in: "path"
 10573          description: "企业的路径(path/login)"
 10574          required: true
 10575          type: "string"
 10576          x-exportParamName: "Enterprise"
 10577        - name: "id"
 10578          in: "path"
 10579          description: "周报ID"
 10580          required: true
 10581          type: "integer"
 10582          format: "int32"
 10583          x-exportParamName: "Id"
 10584        responses:
 10585          200:
 10586            description: "返回格式"
 10587            schema:
 10588              $ref: "#/definitions/WeekReport"
 10589    /v5/enterprises/{enterprise}/week_report/{id}:
 10590      patch:
 10591        tags:
 10592        - "Enterprises"
 10593        summary: "编辑周报"
 10594        description: "编辑周报"
 10595        operationId: "patchV5EnterprisesEnterpriseWeekReportId"
 10596        consumes:
 10597        - "application/json"
 10598        - "multipart/form-data"
 10599        produces:
 10600        - "application/json"
 10601        parameters:
 10602        - name: "access_token"
 10603          in: "formData"
 10604          description: "用户授权码"
 10605          required: false
 10606          type: "string"
 10607          x-exportParamName: "AccessToken"
 10608          x-optionalDataType: "String"
 10609        - name: "enterprise"
 10610          in: "path"
 10611          description: "企业的路径(path/login)"
 10612          required: true
 10613          type: "string"
 10614          x-exportParamName: "Enterprise"
 10615        - name: "id"
 10616          in: "path"
 10617          description: "周报ID"
 10618          required: true
 10619          type: "integer"
 10620          format: "int32"
 10621          x-exportParamName: "Id"
 10622        - name: "content"
 10623          in: "formData"
 10624          description: "周报内容"
 10625          required: true
 10626          type: "string"
 10627          x-exportParamName: "Content"
 10628        responses:
 10629          200:
 10630            description: "返回格式"
 10631            schema:
 10632              $ref: "#/definitions/WeekReport"
 10633    /v5/enterprises/{enterprise}/week_report:
 10634      post:
 10635        tags:
 10636        - "Enterprises"
 10637        summary: "新建周报"
 10638        description: "新建周报"
 10639        operationId: "postV5EnterprisesEnterpriseWeekReport"
 10640        consumes:
 10641        - "application/json"
 10642        - "multipart/form-data"
 10643        produces:
 10644        - "application/json"
 10645        parameters:
 10646        - name: "access_token"
 10647          in: "formData"
 10648          description: "用户授权码"
 10649          required: false
 10650          type: "string"
 10651          x-exportParamName: "AccessToken"
 10652          x-optionalDataType: "String"
 10653        - name: "enterprise"
 10654          in: "path"
 10655          description: "企业的路径(path/login)"
 10656          required: true
 10657          type: "string"
 10658          x-exportParamName: "Enterprise"
 10659        - name: "year"
 10660          in: "formData"
 10661          description: "周报所属年"
 10662          required: true
 10663          type: "integer"
 10664          format: "int32"
 10665          x-exportParamName: "Year"
 10666        - name: "content"
 10667          in: "formData"
 10668          description: "周报内容"
 10669          required: true
 10670          type: "string"
 10671          x-exportParamName: "Content"
 10672        - name: "week_index"
 10673          in: "formData"
 10674          description: "周报所属周"
 10675          required: true
 10676          type: "integer"
 10677          format: "int32"
 10678          x-exportParamName: "WeekIndex"
 10679        - name: "username"
 10680          in: "formData"
 10681          description: "用户名(username/login)"
 10682          required: true
 10683          type: "string"
 10684          x-exportParamName: "Username"
 10685        - name: "date"
 10686          in: "formData"
 10687          description: "周报日期(格式:2019-03-25)"
 10688          required: false
 10689          type: "string"
 10690          x-exportParamName: "Date"
 10691          x-optionalDataType: "String"
 10692        responses:
 10693          201:
 10694            description: "返回格式"
 10695            schema:
 10696              $ref: "#/definitions/WeekReport"
 10697    /v5/enterprises/{enterprise}/issues/{number}:
 10698      get:
 10699        tags:
 10700        - "Issues"
 10701        summary: "获取企业的某个Issue"
 10702        description: "获取企业的某个Issue"
 10703        operationId: "getV5EnterprisesEnterpriseIssuesNumber"
 10704        consumes:
 10705        - "application/json"
 10706        - "multipart/form-data"
 10707        produces:
 10708        - "application/json"
 10709        parameters:
 10710        - name: "access_token"
 10711          in: "query"
 10712          description: "用户授权码"
 10713          required: false
 10714          type: "string"
 10715          x-exportParamName: "AccessToken"
 10716          x-optionalDataType: "String"
 10717        - name: "enterprise"
 10718          in: "path"
 10719          description: "企业的路径(path/login)"
 10720          required: true
 10721          type: "string"
 10722          x-exportParamName: "Enterprise"
 10723        - name: "number"
 10724          in: "path"
 10725          description: "Issue 编号(区分大小写,无需添加 # 号)"
 10726          required: true
 10727          type: "string"
 10728          x-exportParamName: "Number"
 10729        responses:
 10730          200:
 10731            description: "返回格式"
 10732            schema:
 10733              $ref: "#/definitions/Issue"
 10734    /v5/enterprises/{enterprise}/issues/{number}/comments:
 10735      get:
 10736        tags:
 10737        - "Issues"
 10738        summary: "获取企业某个Issue所有评论"
 10739        description: "获取企业某个Issue所有评论"
 10740        operationId: "getV5EnterprisesEnterpriseIssuesNumberComments"
 10741        consumes:
 10742        - "application/json"
 10743        - "multipart/form-data"
 10744        produces:
 10745        - "application/json"
 10746        parameters:
 10747        - name: "access_token"
 10748          in: "query"
 10749          description: "用户授权码"
 10750          required: false
 10751          type: "string"
 10752          x-exportParamName: "AccessToken"
 10753          x-optionalDataType: "String"
 10754        - name: "enterprise"
 10755          in: "path"
 10756          description: "企业的路径(path/login)"
 10757          required: true
 10758          type: "string"
 10759          x-exportParamName: "Enterprise"
 10760        - name: "number"
 10761          in: "path"
 10762          description: "Issue 编号(区分大小写,无需添加 # 号)"
 10763          required: true
 10764          type: "string"
 10765          x-exportParamName: "Number"
 10766        - name: "page"
 10767          in: "query"
 10768          description: "当前的页码"
 10769          required: false
 10770          type: "integer"
 10771          default: 1
 10772          format: "int32"
 10773          x-exportParamName: "Page"
 10774          x-optionalDataType: "Int32"
 10775        - name: "per_page"
 10776          in: "query"
 10777          description: "每页的数量,最大为 100"
 10778          required: false
 10779          type: "integer"
 10780          default: 20
 10781          format: "int32"
 10782          x-exportParamName: "PerPage"
 10783          x-optionalDataType: "Int32"
 10784        responses:
 10785          200:
 10786            description: "返回格式"
 10787            schema:
 10788              type: "array"
 10789              items:
 10790                $ref: "#/definitions/Note"
 10791    /v5/enterprises/{enterprise}/issues/{number}/labels:
 10792      get:
 10793        tags:
 10794        - "Issues"
 10795        summary: "获取企业某个Issue所有标签"
 10796        description: "获取企业某个Issue所有标签"
 10797        operationId: "getV5EnterprisesEnterpriseIssuesNumberLabels"
 10798        consumes:
 10799        - "application/json"
 10800        - "multipart/form-data"
 10801        produces:
 10802        - "application/json"
 10803        parameters:
 10804        - name: "access_token"
 10805          in: "query"
 10806          description: "用户授权码"
 10807          required: false
 10808          type: "string"
 10809          x-exportParamName: "AccessToken"
 10810          x-optionalDataType: "String"
 10811        - name: "enterprise"
 10812          in: "path"
 10813          description: "企业的路径(path/login)"
 10814          required: true
 10815          type: "string"
 10816          x-exportParamName: "Enterprise"
 10817        - name: "number"
 10818          in: "path"
 10819          description: "Issue 编号(区分大小写,无需添加 # 号)"
 10820          required: true
 10821          type: "string"
 10822          x-exportParamName: "Number"
 10823        - name: "page"
 10824          in: "query"
 10825          description: "当前的页码"
 10826          required: false
 10827          type: "integer"
 10828          default: 1
 10829          format: "int32"
 10830          x-exportParamName: "Page"
 10831          x-optionalDataType: "Int32"
 10832        - name: "per_page"
 10833          in: "query"
 10834          description: "每页的数量,最大为 100"
 10835          required: false
 10836          type: "integer"
 10837          default: 20
 10838          format: "int32"
 10839          x-exportParamName: "PerPage"
 10840          x-optionalDataType: "Int32"
 10841        responses:
 10842          200:
 10843            description: "返回格式"
 10844            schema:
 10845              type: "array"
 10846              items:
 10847                $ref: "#/definitions/Label"
 10848    /v5/enterprises/{enterprise}/labels:
 10849      get:
 10850        tags:
 10851        - "Labels"
 10852        summary: "获取企业所有标签"
 10853        description: "获取企业所有标签"
 10854        operationId: "getV5EnterprisesEnterpriseLabels"
 10855        consumes:
 10856        - "application/json"
 10857        - "multipart/form-data"
 10858        produces:
 10859        - "application/json"
 10860        parameters:
 10861        - name: "access_token"
 10862          in: "query"
 10863          description: "用户授权码"
 10864          required: false
 10865          type: "string"
 10866          x-exportParamName: "AccessToken"
 10867          x-optionalDataType: "String"
 10868        - name: "enterprise"
 10869          in: "path"
 10870          description: "企业的路径(path/login)"
 10871          required: true
 10872          type: "string"
 10873          x-exportParamName: "Enterprise"
 10874        responses:
 10875          200:
 10876            description: "返回格式"
 10877            schema:
 10878              type: "array"
 10879              items:
 10880                $ref: "#/definitions/Label"
 10881    /v5/enterprises/{enterprise}/labels/{name}:
 10882      get:
 10883        tags:
 10884        - "Labels"
 10885        summary: "获取企业某个标签"
 10886        description: "获取企业某个标签"
 10887        operationId: "getV5EnterprisesEnterpriseLabelsName"
 10888        consumes:
 10889        - "application/json"
 10890        - "multipart/form-data"
 10891        produces:
 10892        - "application/json"
 10893        parameters:
 10894        - name: "access_token"
 10895          in: "query"
 10896          description: "用户授权码"
 10897          required: false
 10898          type: "string"
 10899          x-exportParamName: "AccessToken"
 10900          x-optionalDataType: "String"
 10901        - name: "enterprise"
 10902          in: "path"
 10903          description: "企业的路径(path/login)"
 10904          required: true
 10905          type: "string"
 10906          x-exportParamName: "Enterprise"
 10907        - name: "name"
 10908          in: "path"
 10909          description: "标签名称"
 10910          required: true
 10911          type: "string"
 10912          x-exportParamName: "Name"
 10913        responses:
 10914          200:
 10915            description: "返回格式"
 10916            schema:
 10917              $ref: "#/definitions/Label"
 10918    /v5/enterprises/{enterprise}/repos:
 10919      get:
 10920        tags:
 10921        - "Repositories"
 10922        summary: "获取企业的所有仓库"
 10923        description: "获取企业的所有仓库"
 10924        operationId: "getV5EnterprisesEnterpriseRepos"
 10925        consumes:
 10926        - "application/json"
 10927        - "multipart/form-data"
 10928        produces:
 10929        - "application/json"
 10930        parameters:
 10931        - name: "access_token"
 10932          in: "query"
 10933          description: "用户授权码"
 10934          required: false
 10935          type: "string"
 10936          x-exportParamName: "AccessToken"
 10937          x-optionalDataType: "String"
 10938        - name: "enterprise"
 10939          in: "path"
 10940          description: "企业的路径(path/login)"
 10941          required: true
 10942          type: "string"
 10943          x-exportParamName: "Enterprise"
 10944        - name: "type"
 10945          in: "query"
 10946          description: "筛选仓库的类型,可以是 all, public, internal, private。默认: all"
 10947          required: false
 10948          type: "string"
 10949          default: "all"
 10950          enum:
 10951          - "all"
 10952          - "public"
 10953          - "internal"
 10954          - "private"
 10955          x-exportParamName: "Type_"
 10956          x-optionalDataType: "String"
 10957        - name: "direct"
 10958          in: "query"
 10959          description: "只获取直属仓库,默认: false"
 10960          required: false
 10961          type: "boolean"
 10962          x-exportParamName: "Direct"
 10963          x-optionalDataType: "Bool"
 10964        - name: "page"
 10965          in: "query"
 10966          description: "当前的页码"
 10967          required: false
 10968          type: "integer"
 10969          default: 1
 10970          format: "int32"
 10971          x-exportParamName: "Page"
 10972          x-optionalDataType: "Int32"
 10973        - name: "per_page"
 10974          in: "query"
 10975          description: "每页的数量,最大为 100"
 10976          required: false
 10977          type: "integer"
 10978          default: 20
 10979          format: "int32"
 10980          x-exportParamName: "PerPage"
 10981          x-optionalDataType: "Int32"
 10982        responses:
 10983          200:
 10984            description: "返回格式"
 10985            schema:
 10986              $ref: "#/definitions/Project"
 10987      post:
 10988        tags:
 10989        - "Repositories"
 10990        summary: "创建企业仓库"
 10991        description: "创建企业仓库"
 10992        operationId: "postV5EnterprisesEnterpriseRepos"
 10993        consumes:
 10994        - "application/json"
 10995        - "multipart/form-data"
 10996        produces:
 10997        - "application/json"
 10998        parameters:
 10999        - name: "access_token"
 11000          in: "formData"
 11001          description: "用户授权码"
 11002          required: false
 11003          type: "string"
 11004          x-exportParamName: "AccessToken"
 11005          x-optionalDataType: "String"
 11006        - name: "name"
 11007          in: "formData"
 11008          description: "仓库名称"
 11009          required: true
 11010          type: "string"
 11011          x-exportParamName: "Name"
 11012        - name: "description"
 11013          in: "formData"
 11014          description: "仓库描述"
 11015          required: false
 11016          type: "string"
 11017          x-exportParamName: "Description"
 11018          x-optionalDataType: "String"
 11019        - name: "homepage"
 11020          in: "formData"
 11021          description: "主页(eg: https://gitee.com)"
 11022          required: false
 11023          type: "string"
 11024          x-exportParamName: "Homepage"
 11025          x-optionalDataType: "String"
 11026        - name: "has_issues"
 11027          in: "formData"
 11028          description: "允许提Issue与否。默认: 允许(true)"
 11029          required: false
 11030          type: "boolean"
 11031          default: true
 11032          x-exportParamName: "HasIssues"
 11033          x-optionalDataType: "Bool"
 11034        - name: "has_wiki"
 11035          in: "formData"
 11036          description: "提供Wiki与否。默认: 提供(true)"
 11037          required: false
 11038          type: "boolean"
 11039          default: true
 11040          x-exportParamName: "HasWiki"
 11041          x-optionalDataType: "Bool"
 11042        - name: "can_comment"
 11043          in: "formData"
 11044          description: "允许用户对仓库进行评论。默认: 允许(true)"
 11045          required: false
 11046          type: "boolean"
 11047          default: true
 11048          x-exportParamName: "CanComment"
 11049          x-optionalDataType: "Bool"
 11050        - name: "enterprise"
 11051          in: "path"
 11052          description: "企业的路径(path/login)"
 11053          required: true
 11054          type: "string"
 11055          x-exportParamName: "Enterprise"
 11056        - name: "auto_init"
 11057          in: "formData"
 11058          description: "值为true时则会用README初始化仓库。默认: 不初始化(false)"
 11059          required: false
 11060          type: "boolean"
 11061          x-exportParamName: "AutoInit"
 11062          x-optionalDataType: "Bool"
 11063        - name: "gitignore_template"
 11064          in: "formData"
 11065          description: "Git Ingore模版"
 11066          required: false
 11067          type: "string"
 11068          enum:
 11069          - "Actionscript"
 11070          - "Ada"
 11071          - "Agda"
 11072          - "Android"
 11073          - "AppEngine"
 11074          - "AppceleratorTitanium"
 11075          - "ArchLinuxPackages"
 11076          - "Autotools"
 11077          - "C"
 11078          - "C++"
 11079          - "CFWheels"
 11080          - "CMake"
 11081          - "CUDA"
 11082          - "CakePHP"
 11083          - "ChefCookbook"
 11084          - "Clojure"
 11085          - "CodeIgniter"
 11086          - "CommonLisp"
 11087          - "Composer"
 11088          - "Concrete5"
 11089          - "Coq"
 11090          - "CraftCMS"
 11091          - "D"
 11092          - "DM"
 11093          - "Dart"
 11094          - "Delphi"
 11095          - "Drupal"
 11096          - "EPiServer"
 11097          - "Eagle"
 11098          - "Elisp"
 11099          - "Elixir"
 11100          - "Elm"
 11101          - "Erlang"
 11102          - "ExpressionEngine"
 11103          - "ExtJs"
 11104          - "Fancy"
 11105          - "Finale"
 11106          - "Flutter"
 11107          - "ForceDotCom"
 11108          - "Fortran"
 11109          - "FuelPHP"
 11110          - "GWT"
 11111          - "Gcov"
 11112          - "GitBook"
 11113          - "Global/Anjuta"
 11114          - "Global/Ansible"
 11115          - "Global/Archives"
 11116          - "Global/Backup"
 11117          - "Global/Bazaar"
 11118          - "Global/BricxCC"
 11119          - "Global/CVS"
 11120          - "Global/Calabash"
 11121          - "Global/Cloud9"
 11122          - "Global/CodeKit"
 11123          - "Global/DartEditor"
 11124          - "Global/Diff"
 11125          - "Global/Dreamweaver"
 11126          - "Global/Dropbox"
 11127          - "Global/Eclipse"
 11128          - "Global/EiffelStudio"
 11129          - "Global/Emacs"
 11130          - "Global/Ensime"
 11131          - "Global/Espresso"
 11132          - "Global/FlexBuilder"
 11133          - "Global/GPG"
 11134          - "Global/Images"
 11135          - "Global/JDeveloper"
 11136          - "Global/JEnv"
 11137          - "Global/JetBrains"
 11138          - "Global/KDevelop4"
 11139          - "Global/Kate"
 11140          - "Global/Lazarus"
 11141          - "Global/LibreOffice"
 11142          - "Global/Linux"
 11143          - "Global/LyX"
 11144          - "Global/MATLAB"
 11145          - "Global/Mercurial"
 11146          - "Global/MicrosoftOffice"
 11147          - "Global/ModelSim"
 11148          - "Global/Momentics"
 11149          - "Global/MonoDevelop"
 11150          - "Global/NetBeans"
 11151          - "Global/Ninja"
 11152          - "Global/NotepadPP"
 11153          - "Global/Octave"
 11154          - "Global/Otto"
 11155          - "Global/PSoCCreator"
 11156          - "Global/Patch"
 11157          - "Global/PuTTY"
 11158          - "Global/Redcar"
 11159          - "Global/Redis"
 11160          - "Global/SBT"
 11161          - "Global/SVN"
 11162          - "Global/SlickEdit"
 11163          - "Global/Stata"
 11164          - "Global/SublimeText"
 11165          - "Global/SynopsysVCS"
 11166          - "Global/Tags"
 11167          - "Global/TextMate"
 11168          - "Global/TortoiseGit"
 11169          - "Global/Vagrant"
 11170          - "Global/Vim"
 11171          - "Global/VirtualEnv"
 11172          - "Global/Virtuoso"
 11173          - "Global/VisualStudioCode"
 11174          - "Global/WebMethods"
 11175          - "Global/Windows"
 11176          - "Global/Xcode"
 11177          - "Global/XilinxISE"
 11178          - "Global/macOS"
 11179          - "Go"
 11180          - "Godot"
 11181          - "Gradle"
 11182          - "Grails"
 11183          - "Haskell"
 11184          - "IGORPro"
 11185          - "Idris"
 11186          - "JBoss"
 11187          - "Java"
 11188          - "Jekyll"
 11189          - "Joomla"
 11190          - "Julia"
 11191          - "KiCad"
 11192          - "Kohana"
 11193          - "Kotlin"
 11194          - "LabVIEW"
 11195          - "Laravel"
 11196          - "Leiningen"
 11197          - "LemonStand"
 11198          - "Lilypond"
 11199          - "Lithium"
 11200          - "Lua"
 11201          - "Magento"
 11202          - "Maven"
 11203          - "Mercury"
 11204          - "MetaProgrammingSystem"
 11205          - "MiniProgram"
 11206          - "Nanoc"
 11207          - "Nim"
 11208          - "Node"
 11209          - "OCaml"
 11210          - "Objective-C"
 11211          - "Opa"
 11212          - "OpenCart"
 11213          - "OracleForms"
 11214          - "Packer"
 11215          - "Perl"
 11216          - "Perl6"
 11217          - "Phalcon"
 11218          - "PlayFramework"
 11219          - "Plone"
 11220          - "Prestashop"
 11221          - "Processing"
 11222          - "PureScript"
 11223          - "Python"
 11224          - "Qooxdoo"
 11225          - "Qt"
 11226          - "R"
 11227          - "ROS"
 11228          - "Rails"
 11229          - "RhodesRhomobile"
 11230          - "Ruby"
 11231          - "Rust"
 11232          - "SCons"
 11233          - "Sass"
 11234          - "Scala"
 11235          - "Scheme"
 11236          - "Scrivener"
 11237          - "Sdcc"
 11238          - "SeamGen"
 11239          - "SketchUp"
 11240          - "Smalltalk"
 11241          - "Stella"
 11242          - "SugarCRM"
 11243          - "Swift"
 11244          - "Symfony"
 11245          - "SymphonyCMS"
 11246          - "TeX"
 11247          - "Terraform"
 11248          - "Textpattern"
 11249          - "TurboGears2"
 11250          - "Typo3"
 11251          - "Umbraco"
 11252          - "Unity"
 11253          - "UnrealEngine"
 11254          - "VVVV"
 11255          - "VisualStudio"
 11256          - "Waf"
 11257          - "WordPress"
 11258          - "Xojo"
 11259          - "Yeoman"
 11260          - "Yii"
 11261          - "ZendFramework"
 11262          - "Zephir"
 11263          x-exportParamName: "GitignoreTemplate"
 11264          x-optionalDataType: "String"
 11265        - name: "license_template"
 11266          in: "formData"
 11267          description: "License模版"
 11268          required: false
 11269          type: "string"
 11270          enum:
 11271          - "MulanPSL-1.0"
 11272          - "AFL-3.0"
 11273          - "AGPL-3.0"
 11274          - "Apache-2.0"
 11275          - "Artistic-2.0"
 11276          - "BSD-2-Clause"
 11277          - "BSD-3-Clause"
 11278          - "BSD-3-Clause-Clear"
 11279          - "BSL-1.0"
 11280          - "CC-BY-4.0"
 11281          - "CC-BY-SA-4.0"
 11282          - "CC0-1.0"
 11283          - "ECL-2.0"
 11284          - "EPL-1.0"
 11285          - "EUPL-1.1"
 11286          - "GPL-2.0"
 11287          - "GPL-3.0"
 11288          - "ISC"
 11289          - "LGPL-2.1"
 11290          - "LGPL-3.0"
 11291          - "LPPL-1.3c"
 11292          - "MIT"
 11293          - "MPL-2.0"
 11294          - "MS-PL"
 11295          - "MS-RL"
 11296          - "NCSA"
 11297          - "OFL-1.1"
 11298          - "OSL-3.0"
 11299          - "PostgreSQL"
 11300          - "Unlicense"
 11301          - "WTFPL"
 11302          - "Zlib"
 11303          x-exportParamName: "LicenseTemplate"
 11304          x-optionalDataType: "String"
 11305        - name: "private"
 11306          in: "formData"
 11307          description: "仓库开源类型。0(私有), 1(外部开源), 2(内部开源)。默认: 0"
 11308          required: false
 11309          type: "integer"
 11310          default: 0
 11311          format: "int32"
 11312          enum:
 11313          - 0
 11314          - 1
 11315          - 2
 11316          x-exportParamName: "Private"
 11317          x-optionalDataType: "Int32"
 11318        - name: "outsourced"
 11319          in: "formData"
 11320          description: "值为true值为外包仓库, false值为内部仓库。默认: 内部仓库(false)"
 11321          required: false
 11322          type: "boolean"
 11323          x-exportParamName: "Outsourced"
 11324          x-optionalDataType: "Bool"
 11325        - name: "project_creator"
 11326          in: "formData"
 11327          description: "负责人的username"
 11328          required: false
 11329          type: "string"
 11330          x-exportParamName: "ProjectCreator"
 11331          x-optionalDataType: "String"
 11332        - name: "members"
 11333          in: "formData"
 11334          description: "用逗号分开的仓库成员。如: member1,member2"
 11335          required: false
 11336          type: "string"
 11337          x-exportParamName: "Members"
 11338          x-optionalDataType: "String"
 11339        responses:
 11340          201:
 11341            description: "返回格式"
 11342            schema:
 11343              $ref: "#/definitions/Project"
 11344    /v5/enterprises/{enterprise}/members/{username}:
 11345      get:
 11346        tags:
 11347        - "Enterprises"
 11348        summary: "获取企业的一个成员"
 11349        description: "获取企业的一个成员"
 11350        operationId: "getV5EnterprisesEnterpriseMembersUsername"
 11351        consumes:
 11352        - "application/json"
 11353        - "multipart/form-data"
 11354        produces:
 11355        - "application/json"
 11356        parameters:
 11357        - name: "access_token"
 11358          in: "query"
 11359          description: "用户授权码"
 11360          required: false
 11361          type: "string"
 11362          x-exportParamName: "AccessToken"
 11363          x-optionalDataType: "String"
 11364        - name: "enterprise"
 11365          in: "path"
 11366          description: "企业的路径(path/login)"
 11367          required: true
 11368          type: "string"
 11369          x-exportParamName: "Enterprise"
 11370        - name: "username"
 11371          in: "path"
 11372          description: "用户名(username/login)"
 11373          required: true
 11374          type: "string"
 11375          x-exportParamName: "Username"
 11376        responses:
 11377          200:
 11378            description: "返回格式"
 11379            schema:
 11380              $ref: "#/definitions/EnterpriseMember"
 11381          404:
 11382            description: "没有相关数据"
 11383      put:
 11384        tags:
 11385        - "Enterprises"
 11386        summary: "修改企业成员权限或备注"
 11387        description: "修改企业成员权限或备注"
 11388        operationId: "putV5EnterprisesEnterpriseMembersUsername"
 11389        consumes:
 11390        - "application/json"
 11391        - "multipart/form-data"
 11392        produces:
 11393        - "application/json"
 11394        parameters:
 11395        - name: "access_token"
 11396          in: "formData"
 11397          description: "用户授权码"
 11398          required: false
 11399          type: "string"
 11400          x-exportParamName: "AccessToken"
 11401          x-optionalDataType: "String"
 11402        - name: "enterprise"
 11403          in: "path"
 11404          description: "企业的路径(path/login)"
 11405          required: true
 11406          type: "string"
 11407          x-exportParamName: "Enterprise"
 11408        - name: "username"
 11409          in: "path"
 11410          description: "用户名(username/login)"
 11411          required: true
 11412          type: "string"
 11413          x-exportParamName: "Username"
 11414        - name: "outsourced"
 11415          in: "formData"
 11416          description: "是否企业外包成员,默认:否"
 11417          required: false
 11418          type: "boolean"
 11419          x-exportParamName: "Outsourced"
 11420          x-optionalDataType: "Bool"
 11421        - name: "role"
 11422          in: "formData"
 11423          description: "企业角色,默认普通成员"
 11424          required: false
 11425          type: "string"
 11426          default: "member"
 11427          enum:
 11428          - "admin"
 11429          - "member"
 11430          x-exportParamName: "Role"
 11431          x-optionalDataType: "String"
 11432        - name: "active"
 11433          in: "formData"
 11434          description: "是否可访问企业资源,默认:是。(若选否则禁止该用户访问企业资源)"
 11435          required: false
 11436          type: "boolean"
 11437          default: true
 11438          x-exportParamName: "Active"
 11439          x-optionalDataType: "Bool"
 11440        - name: "name"
 11441          in: "formData"
 11442          description: "企业成员真实姓名(备注)"
 11443          required: false
 11444          type: "string"
 11445          x-exportParamName: "Name"
 11446          x-optionalDataType: "String"
 11447        responses:
 11448          200:
 11449            description: "返回格式"
 11450            schema:
 11451              $ref: "#/definitions/EnterpriseMember"
 11452          400:
 11453            description: "数据不合法"
 11454          403:
 11455            description: "没有权限"
 11456          404:
 11457            description: "没有相关数据"
 11458      delete:
 11459        tags:
 11460        - "Enterprises"
 11461        summary: "移除企业成员"
 11462        description: "移除企业成员"
 11463        operationId: "deleteV5EnterprisesEnterpriseMembersUsername"
 11464        consumes:
 11465        - "application/json"
 11466        - "multipart/form-data"
 11467        produces:
 11468        - "application/json"
 11469        parameters:
 11470        - name: "access_token"
 11471          in: "query"
 11472          description: "用户授权码"
 11473          required: false
 11474          type: "string"
 11475          x-exportParamName: "AccessToken"
 11476          x-optionalDataType: "String"
 11477        - name: "enterprise"
 11478          in: "path"
 11479          description: "企业的路径(path/login)"
 11480          required: true
 11481          type: "string"
 11482          x-exportParamName: "Enterprise"
 11483        - name: "username"
 11484          in: "path"
 11485          description: "用户名(username/login)"
 11486          required: true
 11487          type: "string"
 11488          x-exportParamName: "Username"
 11489        responses:
 11490          204:
 11491            description: "执行成功"
 11492          403:
 11493            description: "没有权限"
 11494          404:
 11495            description: "没有相关数据"
 11496    /v5/gitignore/templates:
 11497      get:
 11498        tags:
 11499        - "Miscellaneous"
 11500        summary: "列出可使用的 .gitignore 模板"
 11501        description: "列出可使用的 .gitignore 模板"
 11502        operationId: "getV5GitignoreTemplates"
 11503        consumes:
 11504        - "application/json"
 11505        - "multipart/form-data"
 11506        produces:
 11507        - "application/json"
 11508        parameters:
 11509        - name: "access_token"
 11510          in: "query"
 11511          description: "用户授权码"
 11512          required: false
 11513          type: "string"
 11514          x-exportParamName: "AccessToken"
 11515          x-optionalDataType: "String"
 11516        responses:
 11517          200:
 11518            description: "列出可使用的 .gitignore 模板"
 11519    /v5/gitignore/templates/{name}:
 11520      get:
 11521        tags:
 11522        - "Miscellaneous"
 11523        summary: "获取一个 .gitignore 模板"
 11524        description: "获取一个 .gitignore 模板"
 11525        operationId: "getV5GitignoreTemplatesName"
 11526        consumes:
 11527        - "application/json"
 11528        - "multipart/form-data"
 11529        produces:
 11530        - "application/json"
 11531        parameters:
 11532        - name: "access_token"
 11533          in: "query"
 11534          description: "用户授权码"
 11535          required: false
 11536          type: "string"
 11537          x-exportParamName: "AccessToken"
 11538          x-optionalDataType: "String"
 11539        - name: "name"
 11540          in: "path"
 11541          description: ".gitignore 模板名"
 11542          required: true
 11543          type: "string"
 11544          enum:
 11545          - "Actionscript"
 11546          - "Ada"
 11547          - "Agda"
 11548          - "Android"
 11549          - "AppEngine"
 11550          - "AppceleratorTitanium"
 11551          - "ArchLinuxPackages"
 11552          - "Autotools"
 11553          - "C"
 11554          - "C++"
 11555          - "CFWheels"
 11556          - "CMake"
 11557          - "CUDA"
 11558          - "CakePHP"
 11559          - "ChefCookbook"
 11560          - "Clojure"
 11561          - "CodeIgniter"
 11562          - "CommonLisp"
 11563          - "Composer"
 11564          - "Concrete5"
 11565          - "Coq"
 11566          - "CraftCMS"
 11567          - "D"
 11568          - "DM"
 11569          - "Dart"
 11570          - "Delphi"
 11571          - "Drupal"
 11572          - "EPiServer"
 11573          - "Eagle"
 11574          - "Elisp"
 11575          - "Elixir"
 11576          - "Elm"
 11577          - "Erlang"
 11578          - "ExpressionEngine"
 11579          - "ExtJs"
 11580          - "Fancy"
 11581          - "Finale"
 11582          - "Flutter"
 11583          - "ForceDotCom"
 11584          - "Fortran"
 11585          - "FuelPHP"
 11586          - "GWT"
 11587          - "Gcov"
 11588          - "GitBook"
 11589          - "Anjuta"
 11590          - "Ansible"
 11591          - "Archives"
 11592          - "Backup"
 11593          - "Bazaar"
 11594          - "BricxCC"
 11595          - "CVS"
 11596          - "Calabash"
 11597          - "Cloud9"
 11598          - "CodeKit"
 11599          - "DartEditor"
 11600          - "Diff"
 11601          - "Dreamweaver"
 11602          - "Dropbox"
 11603          - "Eclipse"
 11604          - "EiffelStudio"
 11605          - "Emacs"
 11606          - "Ensime"
 11607          - "Espresso"
 11608          - "FlexBuilder"
 11609          - "GPG"
 11610          - "Images"
 11611          - "JDeveloper"
 11612          - "JEnv"
 11613          - "JetBrains"
 11614          - "KDevelop4"
 11615          - "Kate"
 11616          - "Lazarus"
 11617          - "LibreOffice"
 11618          - "Linux"
 11619          - "LyX"
 11620          - "MATLAB"
 11621          - "Mercurial"
 11622          - "MicrosoftOffice"
 11623          - "ModelSim"
 11624          - "Momentics"
 11625          - "MonoDevelop"
 11626          - "NetBeans"
 11627          - "Ninja"
 11628          - "NotepadPP"
 11629          - "Octave"
 11630          - "Otto"
 11631          - "PSoCCreator"
 11632          - "Patch"
 11633          - "PuTTY"
 11634          - "Redcar"
 11635          - "Redis"
 11636          - "SBT"
 11637          - "SVN"
 11638          - "SlickEdit"
 11639          - "Stata"
 11640          - "SublimeText"
 11641          - "SynopsysVCS"
 11642          - "Tags"
 11643          - "TextMate"
 11644          - "TortoiseGit"
 11645          - "Vagrant"
 11646          - "Vim"
 11647          - "VirtualEnv"
 11648          - "Virtuoso"
 11649          - "VisualStudioCode"
 11650          - "WebMethods"
 11651          - "Windows"
 11652          - "Xcode"
 11653          - "XilinxISE"
 11654          - "macOS"
 11655          - "Go"
 11656          - "Godot"
 11657          - "Gradle"
 11658          - "Grails"
 11659          - "Haskell"
 11660          - "IGORPro"
 11661          - "Idris"
 11662          - "JBoss"
 11663          - "Java"
 11664          - "Jekyll"
 11665          - "Joomla"
 11666          - "Julia"
 11667          - "KiCad"
 11668          - "Kohana"
 11669          - "Kotlin"
 11670          - "LabVIEW"
 11671          - "Laravel"
 11672          - "Leiningen"
 11673          - "LemonStand"
 11674          - "Lilypond"
 11675          - "Lithium"
 11676          - "Lua"
 11677          - "Magento"
 11678          - "Maven"
 11679          - "Mercury"
 11680          - "MetaProgrammingSystem"
 11681          - "MiniProgram"
 11682          - "Nanoc"
 11683          - "Nim"
 11684          - "Node"
 11685          - "OCaml"
 11686          - "Objective-C"
 11687          - "Opa"
 11688          - "OpenCart"
 11689          - "OracleForms"
 11690          - "Packer"
 11691          - "Perl"
 11692          - "Perl6"
 11693          - "Phalcon"
 11694          - "PlayFramework"
 11695          - "Plone"
 11696          - "Prestashop"
 11697          - "Processing"
 11698          - "PureScript"
 11699          - "Python"
 11700          - "Qooxdoo"
 11701          - "Qt"
 11702          - "R"
 11703          - "ROS"
 11704          - "Rails"
 11705          - "RhodesRhomobile"
 11706          - "Ruby"
 11707          - "Rust"
 11708          - "SCons"
 11709          - "Sass"
 11710          - "Scala"
 11711          - "Scheme"
 11712          - "Scrivener"
 11713          - "Sdcc"
 11714          - "SeamGen"
 11715          - "SketchUp"
 11716          - "Smalltalk"
 11717          - "Stella"
 11718          - "SugarCRM"
 11719          - "Swift"
 11720          - "Symfony"
 11721          - "SymphonyCMS"
 11722          - "TeX"
 11723          - "Terraform"
 11724          - "Textpattern"
 11725          - "TurboGears2"
 11726          - "Typo3"
 11727          - "Umbraco"
 11728          - "Unity"
 11729          - "UnrealEngine"
 11730          - "VVVV"
 11731          - "VisualStudio"
 11732          - "Waf"
 11733          - "WordPress"
 11734          - "Xojo"
 11735          - "Yeoman"
 11736          - "Yii"
 11737          - "ZendFramework"
 11738          - "Zephir"
 11739          x-exportParamName: "Name"
 11740        responses:
 11741          200:
 11742            description: "获取一个 .gitignore 模板"
 11743    /v5/gitignore/templates/{name}/raw:
 11744      get:
 11745        tags:
 11746        - "Miscellaneous"
 11747        summary: "获取一个 .gitignore 模板原始文件"
 11748        description: "获取一个 .gitignore 模板原始文件"
 11749        operationId: "getV5GitignoreTemplatesNameRaw"
 11750        consumes:
 11751        - "application/json"
 11752        - "multipart/form-data"
 11753        produces:
 11754        - "application/json"
 11755        parameters:
 11756        - name: "access_token"
 11757          in: "query"
 11758          description: "用户授权码"
 11759          required: false
 11760          type: "string"
 11761          x-exportParamName: "AccessToken"
 11762          x-optionalDataType: "String"
 11763        - name: "name"
 11764          in: "path"
 11765          description: ".gitignore 模板名"
 11766          required: true
 11767          type: "string"
 11768          enum:
 11769          - "Actionscript"
 11770          - "Ada"
 11771          - "Agda"
 11772          - "Android"
 11773          - "AppEngine"
 11774          - "AppceleratorTitanium"
 11775          - "ArchLinuxPackages"
 11776          - "Autotools"
 11777          - "C"
 11778          - "C++"
 11779          - "CFWheels"
 11780          - "CMake"
 11781          - "CUDA"
 11782          - "CakePHP"
 11783          - "ChefCookbook"
 11784          - "Clojure"
 11785          - "CodeIgniter"
 11786          - "CommonLisp"
 11787          - "Composer"
 11788          - "Concrete5"
 11789          - "Coq"
 11790          - "CraftCMS"
 11791          - "D"
 11792          - "DM"
 11793          - "Dart"
 11794          - "Delphi"
 11795          - "Drupal"
 11796          - "EPiServer"
 11797          - "Eagle"
 11798          - "Elisp"
 11799          - "Elixir"
 11800          - "Elm"
 11801          - "Erlang"
 11802          - "ExpressionEngine"
 11803          - "ExtJs"
 11804          - "Fancy"
 11805          - "Finale"
 11806          - "Flutter"
 11807          - "ForceDotCom"
 11808          - "Fortran"
 11809          - "FuelPHP"
 11810          - "GWT"
 11811          - "Gcov"
 11812          - "GitBook"
 11813          - "Anjuta"
 11814          - "Ansible"
 11815          - "Archives"
 11816          - "Backup"
 11817          - "Bazaar"
 11818          - "BricxCC"
 11819          - "CVS"
 11820          - "Calabash"
 11821          - "Cloud9"
 11822          - "CodeKit"
 11823          - "DartEditor"
 11824          - "Diff"
 11825          - "Dreamweaver"
 11826          - "Dropbox"
 11827          - "Eclipse"
 11828          - "EiffelStudio"
 11829          - "Emacs"
 11830          - "Ensime"
 11831          - "Espresso"
 11832          - "FlexBuilder"
 11833          - "GPG"
 11834          - "Images"
 11835          - "JDeveloper"
 11836          - "JEnv"
 11837          - "JetBrains"
 11838          - "KDevelop4"
 11839          - "Kate"
 11840          - "Lazarus"
 11841          - "LibreOffice"
 11842          - "Linux"
 11843          - "LyX"
 11844          - "MATLAB"
 11845          - "Mercurial"
 11846          - "MicrosoftOffice"
 11847          - "ModelSim"
 11848          - "Momentics"
 11849          - "MonoDevelop"
 11850          - "NetBeans"
 11851          - "Ninja"
 11852          - "NotepadPP"
 11853          - "Octave"
 11854          - "Otto"
 11855          - "PSoCCreator"
 11856          - "Patch"
 11857          - "PuTTY"
 11858          - "Redcar"
 11859          - "Redis"
 11860          - "SBT"
 11861          - "SVN"
 11862          - "SlickEdit"
 11863          - "Stata"
 11864          - "SublimeText"
 11865          - "SynopsysVCS"
 11866          - "Tags"
 11867          - "TextMate"
 11868          - "TortoiseGit"
 11869          - "Vagrant"
 11870          - "Vim"
 11871          - "VirtualEnv"
 11872          - "Virtuoso"
 11873          - "VisualStudioCode"
 11874          - "WebMethods"
 11875          - "Windows"
 11876          - "Xcode"
 11877          - "XilinxISE"
 11878          - "macOS"
 11879          - "Go"
 11880          - "Godot"
 11881          - "Gradle"
 11882          - "Grails"
 11883          - "Haskell"
 11884          - "IGORPro"
 11885          - "Idris"
 11886          - "JBoss"
 11887          - "Java"
 11888          - "Jekyll"
 11889          - "Joomla"
 11890          - "Julia"
 11891          - "KiCad"
 11892          - "Kohana"
 11893          - "Kotlin"
 11894          - "LabVIEW"
 11895          - "Laravel"
 11896          - "Leiningen"
 11897          - "LemonStand"
 11898          - "Lilypond"
 11899          - "Lithium"
 11900          - "Lua"
 11901          - "Magento"
 11902          - "Maven"
 11903          - "Mercury"
 11904          - "MetaProgrammingSystem"
 11905          - "MiniProgram"
 11906          - "Nanoc"
 11907          - "Nim"
 11908          - "Node"
 11909          - "OCaml"
 11910          - "Objective-C"
 11911          - "Opa"
 11912          - "OpenCart"
 11913          - "OracleForms"
 11914          - "Packer"
 11915          - "Perl"
 11916          - "Perl6"
 11917          - "Phalcon"
 11918          - "PlayFramework"
 11919          - "Plone"
 11920          - "Prestashop"
 11921          - "Processing"
 11922          - "PureScript"
 11923          - "Python"
 11924          - "Qooxdoo"
 11925          - "Qt"
 11926          - "R"
 11927          - "ROS"
 11928          - "Rails"
 11929          - "RhodesRhomobile"
 11930          - "Ruby"
 11931          - "Rust"
 11932          - "SCons"
 11933          - "Sass"
 11934          - "Scala"
 11935          - "Scheme"
 11936          - "Scrivener"
 11937          - "Sdcc"
 11938          - "SeamGen"
 11939          - "SketchUp"
 11940          - "Smalltalk"
 11941          - "Stella"
 11942          - "SugarCRM"
 11943          - "Swift"
 11944          - "Symfony"
 11945          - "SymphonyCMS"
 11946          - "TeX"
 11947          - "Terraform"
 11948          - "Textpattern"
 11949          - "TurboGears2"
 11950          - "Typo3"
 11951          - "Umbraco"
 11952          - "Unity"
 11953          - "UnrealEngine"
 11954          - "VVVV"
 11955          - "VisualStudio"
 11956          - "Waf"
 11957          - "WordPress"
 11958          - "Xojo"
 11959          - "Yeoman"
 11960          - "Yii"
 11961          - "ZendFramework"
 11962          - "Zephir"
 11963          x-exportParamName: "Name"
 11964        responses:
 11965          200:
 11966            description: "获取一个 .gitignore 模板原始文件"
 11967    /v5/licenses:
 11968      get:
 11969        tags:
 11970        - "Miscellaneous"
 11971        summary: "列出可使用的开源许可协议"
 11972        description: "列出可使用的开源许可协议"
 11973        operationId: "getV5Licenses"
 11974        consumes:
 11975        - "application/json"
 11976        - "multipart/form-data"
 11977        produces:
 11978        - "application/json"
 11979        parameters:
 11980        - name: "access_token"
 11981          in: "query"
 11982          description: "用户授权码"
 11983          required: false
 11984          type: "string"
 11985          x-exportParamName: "AccessToken"
 11986          x-optionalDataType: "String"
 11987        responses:
 11988          200:
 11989            description: "列出可使用的开源许可协议"
 11990    /v5/licenses/{license}:
 11991      get:
 11992        tags:
 11993        - "Miscellaneous"
 11994        summary: "获取一个开源许可协议"
 11995        description: "获取一个开源许可协议"
 11996        operationId: "getV5LicensesLicense"
 11997        consumes:
 11998        - "application/json"
 11999        - "multipart/form-data"
 12000        produces:
 12001        - "application/json"
 12002        parameters:
 12003        - name: "access_token"
 12004          in: "query"
 12005          description: "用户授权码"
 12006          required: false
 12007          type: "string"
 12008          x-exportParamName: "AccessToken"
 12009          x-optionalDataType: "String"
 12010        - name: "license"
 12011          in: "path"
 12012          description: "协议名称"
 12013          required: true
 12014          type: "string"
 12015          enum:
 12016          - "MulanPSL-1.0"
 12017          - "AFL-3.0"
 12018          - "AGPL-3.0"
 12019          - "Apache-2.0"
 12020          - "Artistic-2.0"
 12021          - "BSD-2-Clause"
 12022          - "BSD-3-Clause"
 12023          - "BSD-3-Clause-Clear"
 12024          - "BSL-1.0"
 12025          - "CC-BY-4.0"
 12026          - "CC-BY-SA-4.0"
 12027          - "CC0-1.0"
 12028          - "ECL-2.0"
 12029          - "EPL-1.0"
 12030          - "EUPL-1.1"
 12031          - "GPL-2.0"
 12032          - "GPL-3.0"
 12033          - "ISC"
 12034          - "LGPL-2.1"
 12035          - "LGPL-3.0"
 12036          - "LPPL-1.3c"
 12037          - "MIT"
 12038          - "MPL-2.0"
 12039          - "MS-PL"
 12040          - "MS-RL"
 12041          - "NCSA"
 12042          - "OFL-1.1"
 12043          - "OSL-3.0"
 12044          - "PostgreSQL"
 12045          - "Unlicense"
 12046          - "WTFPL"
 12047          - "Zlib"
 12048          x-exportParamName: "License"
 12049        responses:
 12050          200:
 12051            description: "获取一个开源许可协议"
 12052    /v5/licenses/{license}/raw:
 12053      get:
 12054        tags:
 12055        - "Miscellaneous"
 12056        summary: "获取一个开源许可协议原始文件"
 12057        description: "获取一个开源许可协议原始文件"
 12058        operationId: "getV5LicensesLicenseRaw"
 12059        consumes:
 12060        - "application/json"
 12061        - "multipart/form-data"
 12062        produces:
 12063        - "application/json"
 12064        parameters:
 12065        - name: "access_token"
 12066          in: "query"
 12067          description: "用户授权码"
 12068          required: false
 12069          type: "string"
 12070          x-exportParamName: "AccessToken"
 12071          x-optionalDataType: "String"
 12072        - name: "license"
 12073          in: "path"
 12074          description: "协议名称"
 12075          required: true
 12076          type: "string"
 12077          enum:
 12078          - "MulanPSL-1.0"
 12079          - "AFL-3.0"
 12080          - "AGPL-3.0"
 12081          - "Apache-2.0"
 12082          - "Artistic-2.0"
 12083          - "BSD-2-Clause"
 12084          - "BSD-3-Clause"
 12085          - "BSD-3-Clause-Clear"
 12086          - "BSL-1.0"
 12087          - "CC-BY-4.0"
 12088          - "CC-BY-SA-4.0"
 12089          - "CC0-1.0"
 12090          - "ECL-2.0"
 12091          - "EPL-1.0"
 12092          - "EUPL-1.1"
 12093          - "GPL-2.0"
 12094          - "GPL-3.0"
 12095          - "ISC"
 12096          - "LGPL-2.1"
 12097          - "LGPL-3.0"
 12098          - "LPPL-1.3c"
 12099          - "MIT"
 12100          - "MPL-2.0"
 12101          - "MS-PL"
 12102          - "MS-RL"
 12103          - "NCSA"
 12104          - "OFL-1.1"
 12105          - "OSL-3.0"
 12106          - "PostgreSQL"
 12107          - "Unlicense"
 12108          - "WTFPL"
 12109          - "Zlib"
 12110          x-exportParamName: "License"
 12111        responses:
 12112          200:
 12113            description: "获取一个开源许可协议原始文件"
 12114    /v5/markdown:
 12115      post:
 12116        tags:
 12117        - "Miscellaneous"
 12118        summary: "渲染 Markdown 文本"
 12119        description: "渲染 Markdown 文本"
 12120        operationId: "postV5Markdown"
 12121        consumes:
 12122        - "application/json"
 12123        - "multipart/form-data"
 12124        produces:
 12125        - "application/json"
 12126        parameters:
 12127        - name: "access_token"
 12128          in: "formData"
 12129          description: "用户授权码"
 12130          required: false
 12131          type: "string"
 12132          x-exportParamName: "AccessToken"
 12133          x-optionalDataType: "String"
 12134        - name: "text"
 12135          in: "formData"
 12136          description: "Markdown 文本"
 12137          required: true
 12138          type: "string"
 12139          x-exportParamName: "Text"
 12140        responses:
 12141          201:
 12142            description: "渲染 Markdown 文本"
 12143    /v5/events:
 12144      get:
 12145        tags:
 12146        - "Activity"
 12147        summary: "获取站内所有公开动态"
 12148        description: "获取站内所有公开动态"
 12149        operationId: "getV5Events"
 12150        consumes:
 12151        - "application/json"
 12152        - "multipart/form-data"
 12153        produces:
 12154        - "application/json"
 12155        parameters:
 12156        - name: "access_token"
 12157          in: "query"
 12158          description: "用户授权码"
 12159          required: false
 12160          type: "string"
 12161          x-exportParamName: "AccessToken"
 12162          x-optionalDataType: "String"
 12163        - name: "page"
 12164          in: "query"
 12165          description: "当前的页码"
 12166          required: false
 12167          type: "integer"
 12168          default: 1
 12169          format: "int32"
 12170          x-exportParamName: "Page"
 12171          x-optionalDataType: "Int32"
 12172        - name: "per_page"
 12173          in: "query"
 12174          description: "每页的数量,最大为 100"
 12175          required: false
 12176          type: "integer"
 12177          default: 20
 12178          format: "int32"
 12179          x-exportParamName: "PerPage"
 12180          x-optionalDataType: "Int32"
 12181        responses:
 12182          200:
 12183            description: "返回数据"
 12184            schema:
 12185              type: "array"
 12186              items:
 12187                $ref: "#/definitions/Event"
 12188    /v5/networks/{owner}/{repo}/events:
 12189      get:
 12190        tags:
 12191        - "Activity"
 12192        summary: "列出仓库的所有公开动态"
 12193        description: "列出仓库的所有公开动态"
 12194        operationId: "getV5NetworksOwnerRepoEvents"
 12195        consumes:
 12196        - "application/json"
 12197        - "multipart/form-data"
 12198        produces:
 12199        - "application/json"
 12200        parameters:
 12201        - name: "access_token"
 12202          in: "query"
 12203          description: "用户授权码"
 12204          required: false
 12205          type: "string"
 12206          x-exportParamName: "AccessToken"
 12207          x-optionalDataType: "String"
 12208        - name: "owner"
 12209          in: "path"
 12210          description: "仓库所属空间地址(企业、组织或个人的地址path)"
 12211          required: true
 12212          type: "string"
 12213          x-exportParamName: "Owner"
 12214        - name: "repo"
 12215          in: "path"
 12216          description: "仓库路径(path)"
 12217          required: true
 12218          type: "string"
 12219          x-exportParamName: "Repo"
 12220        - name: "page"
 12221          in: "query"
 12222          description: "当前的页码"
 12223          required: false
 12224          type: "integer"
 12225          default: 1
 12226          format: "int32"
 12227          x-exportParamName: "Page"
 12228          x-optionalDataType: "Int32"
 12229        - name: "per_page"
 12230          in: "query"
 12231          description: "每页的数量,最大为 100"
 12232          required: false
 12233          type: "integer"
 12234          default: 20
 12235          format: "int32"
 12236          x-exportParamName: "PerPage"
 12237          x-optionalDataType: "Int32"
 12238        responses:
 12239          200:
 12240            description: "返回格式"
 12241            schema:
 12242              type: "array"
 12243              items:
 12244                $ref: "#/definitions/Event"
 12245          403:
 12246            description: "没有权限"
 12247          404:
 12248            description: "没有相关数据"
 12249    /v5/search/repositories:
 12250      get:
 12251        tags:
 12252        - "Search"
 12253        summary: "搜索仓库"
 12254        description: "搜索仓库"
 12255        operationId: "getV5SearchRepositories"
 12256        consumes:
 12257        - "application/json"
 12258        - "multipart/form-data"
 12259        produces:
 12260        - "application/json"
 12261        parameters:
 12262        - name: "access_token"
 12263          in: "query"
 12264          description: "用户授权码"
 12265          required: false
 12266          type: "string"
 12267          x-exportParamName: "AccessToken"
 12268          x-optionalDataType: "String"
 12269        - name: "q"
 12270          in: "query"
 12271          description: "搜索关键字"
 12272          required: true
 12273          type: "string"
 12274          x-exportParamName: "Q"
 12275        - name: "page"
 12276          in: "query"
 12277          description: "当前的页码"
 12278          required: false
 12279          type: "integer"
 12280          default: 1
 12281          format: "int32"
 12282          x-exportParamName: "Page"
 12283          x-optionalDataType: "Int32"
 12284        - name: "per_page"
 12285          in: "query"
 12286          description: "每页的数量,最大为 100"
 12287          required: false
 12288          type: "integer"
 12289          default: 20
 12290          format: "int32"
 12291          x-exportParamName: "PerPage"
 12292          x-optionalDataType: "Int32"
 12293        - name: "owner"
 12294          in: "query"
 12295          description: "筛选指定空间地址(企业、组织或个人的地址 path) 的仓库"
 12296          required: false
 12297          type: "string"
 12298          x-exportParamName: "Owner"
 12299          x-optionalDataType: "String"
 12300        - name: "fork"
 12301          in: "query"
 12302          description: "是否搜索含 fork 的仓库,默认:否"
 12303          required: false
 12304          type: "boolean"
 12305          x-exportParamName: "Fork"
 12306          x-optionalDataType: "Bool"
 12307        - name: "language"
 12308          in: "query"
 12309          description: "筛选指定语言的仓库"
 12310          required: false
 12311          type: "string"
 12312          enum:
 12313          - "Java"
 12314          - "JavaScript"
 12315          - "PHP"
 12316          - "Python"
 12317          - "Android"
 12318          - "Objective-C"
 12319          - "C#"
 12320          - "Go"
 12321          - "C++"
 12322          - "HTML"
 12323          - "C"
 12324          - "NodeJS"
 12325          - "Swift"
 12326          - "Ruby"
 12327          - "TypeScript"
 12328          - "Shell"
 12329          - "CSS"
 12330          - "Docker"
 12331          - "Lua"
 12332          - "Dart"
 12333          - "Scala"
 12334          - "Matlab"
 12335          - "Delphi"
 12336          - "ASP"
 12337          - "TeX/LaTeX"
 12338          - "Visual Basic"
 12339          - "ActionScript"
 12340          - "Groovy"
 12341          - "Erlang"
 12342          - "R"
 12343          - "Rust"
 12344          - "Verilog"
 12345          - "VimL"
 12346          - "Perl"
 12347          - "QML"
 12348          - "Arduino"
 12349          - "Assembly"
 12350          - "Pascal"
 12351          - "Clojure"
 12352          - "Emacs Lisp"
 12353          - "FORTRAN"
 12354          - "CoffeeScript"
 12355          - "PowerShell"
 12356          - "AutoHotkey"
 12357          - "Elixir"
 12358          - "VHDL"
 12359          - "D"
 12360          - "Haskell"
 12361          - "M"
 12362          - "Julia"
 12363          - "Scheme"
 12364          - "Common Lisp"
 12365          - "XSLT"
 12366          - "Logos"
 12367          - "DOT"
 12368          - "Racket"
 12369          - "OCaml"
 12370          - "Puppet"
 12371          - "Haxe"
 12372          - "Coq"
 12373          - "LiveScript"
 12374          - "Vala"
 12375          - "Nemerle"
 12376          - "Prolog"
 12377          - "Smalltalk"
 12378          - "Eiffel"
 12379          - "Standard ML"
 12380          - "eC"
 12381          - "Ada"
 12382          - "Slash"
 12383          - "Scilab"
 12384          - "Awk"
 12385          - "ColdFusion"
 12386          - "微信"
 12387          - "Crystal"
 12388          - "Kotlin"
 12389          - "SQL"
 12390          - "Lisp"
 12391          - "XML"
 12392          - "C/C++"
 12393          - "HTML/CSS"
 12394          - "易语言"
 12395          - "汇编"
 12396          - "其他"
 12397          - "Zephir"
 12398          - "Pawn"
 12399          x-exportParamName: "Language"
 12400          x-optionalDataType: "String"
 12401        - name: "sort"
 12402          in: "query"
 12403          description: "排序字段,created_at(创建时间)、last_push_at(更新时间)、stars_count(收藏数)、forks_count(Fork\
 12404            \ 数)、watches_count(关注数),默认为最佳匹配"
 12405          required: false
 12406          type: "string"
 12407          enum:
 12408          - "created_at"
 12409          - "last_push_at"
 12410          - "stars_count"
 12411          - "forks_count"
 12412          - "watches_count"
 12413          x-exportParamName: "Sort"
 12414          x-optionalDataType: "String"
 12415        - name: "order"
 12416          in: "query"
 12417          description: "排序顺序: desc(default)、asc"
 12418          required: false
 12419          type: "string"
 12420          default: "desc"
 12421          enum:
 12422          - "asc"
 12423          - "desc"
 12424          x-exportParamName: "Order"
 12425          x-optionalDataType: "String"
 12426        responses:
 12427          200:
 12428            description: "返回格式"
 12429            schema:
 12430              type: "array"
 12431              items:
 12432                $ref: "#/definitions/Project"
 12433    /v5/search/issues:
 12434      get:
 12435        tags:
 12436        - "Search"
 12437        summary: "搜索 Issues"
 12438        description: "搜索 Issues"
 12439        operationId: "getV5SearchIssues"
 12440        consumes:
 12441        - "application/json"
 12442        - "multipart/form-data"
 12443        produces:
 12444        - "application/json"
 12445        parameters:
 12446        - name: "access_token"
 12447          in: "query"
 12448          description: "用户授权码"
 12449          required: false
 12450          type: "string"
 12451          x-exportParamName: "AccessToken"
 12452          x-optionalDataType: "String"
 12453        - name: "q"
 12454          in: "query"
 12455          description: "搜索关键字"
 12456          required: true
 12457          type: "string"
 12458          x-exportParamName: "Q"
 12459        - name: "page"
 12460          in: "query"
 12461          description: "当前的页码"
 12462          required: false
 12463          type: "integer"
 12464          default: 1
 12465          format: "int32"
 12466          x-exportParamName: "Page"
 12467          x-optionalDataType: "Int32"
 12468        - name: "per_page"
 12469          in: "query"
 12470          description: "每页的数量,最大为 100"
 12471          required: false
 12472          type: "integer"
 12473          default: 20
 12474          format: "int32"
 12475          x-exportParamName: "PerPage"
 12476          x-optionalDataType: "Int32"
 12477        - name: "repo"
 12478          in: "query"
 12479          description: "筛选指定仓库 (path, e.g. oschina/git-osc) 的 issues"
 12480          required: false
 12481          type: "string"
 12482          x-exportParamName: "Repo"
 12483          x-optionalDataType: "String"
 12484        - name: "language"
 12485          in: "query"
 12486          description: "筛选指定语言的 issues"
 12487          required: false
 12488          type: "string"
 12489          enum:
 12490          - "Java"
 12491          - "JavaScript"
 12492          - "PHP"
 12493          - "Python"
 12494          - "Android"
 12495          - "Objective-C"
 12496          - "C#"
 12497          - "Go"
 12498          - "C++"
 12499          - "HTML"
 12500          - "C"
 12501          - "NodeJS"
 12502          - "Swift"
 12503          - "Ruby"
 12504          - "TypeScript"
 12505          - "Shell"
 12506          - "CSS"
 12507          - "Docker"
 12508          - "Lua"
 12509          - "Dart"
 12510          - "Scala"
 12511          - "Matlab"
 12512          - "Delphi"
 12513          - "ASP"
 12514          - "TeX/LaTeX"
 12515          - "Visual Basic"
 12516          - "ActionScript"
 12517          - "Groovy"
 12518          - "Erlang"
 12519          - "R"
 12520          - "Rust"
 12521          - "Verilog"
 12522          - "VimL"
 12523          - "Perl"
 12524          - "QML"
 12525          - "Arduino"
 12526          - "Assembly"
 12527          - "Pascal"
 12528          - "Clojure"
 12529          - "Emacs Lisp"
 12530          - "FORTRAN"
 12531          - "CoffeeScript"
 12532          - "PowerShell"
 12533          - "AutoHotkey"
 12534          - "Elixir"
 12535          - "VHDL"
 12536          - "D"
 12537          - "Haskell"
 12538          - "M"
 12539          - "Julia"
 12540          - "Scheme"
 12541          - "Common Lisp"
 12542          - "XSLT"
 12543          - "Logos"
 12544          - "DOT"
 12545          - "Racket"
 12546          - "OCaml"
 12547          - "Puppet"
 12548          - "Haxe"
 12549          - "Coq"
 12550          - "LiveScript"
 12551          - "Vala"
 12552          - "Nemerle"
 12553          - "Prolog"
 12554          - "Smalltalk"
 12555          - "Eiffel"
 12556          - "Standard ML"
 12557          - "eC"
 12558          - "Ada"
 12559          - "Slash"
 12560          - "Scilab"
 12561          - "Awk"
 12562          - "ColdFusion"
 12563          - "微信"
 12564          - "Crystal"
 12565          - "Kotlin"
 12566          - "SQL"
 12567          - "Lisp"
 12568          - "XML"
 12569          - "C/C++"
 12570          - "HTML/CSS"
 12571          - "易语言"
 12572          - "汇编"
 12573          - "其他"
 12574          - "Zephir"
 12575          - "Pawn"
 12576          x-exportParamName: "Language"
 12577          x-optionalDataType: "String"
 12578        - name: "label"
 12579          in: "query"
 12580          description: "筛选指定标签的 issues"
 12581          required: false
 12582          type: "string"
 12583          x-exportParamName: "Label"
 12584          x-optionalDataType: "String"
 12585        - name: "state"
 12586          in: "query"
 12587          description: "筛选指定状态的 issues, open(开启)、closed(完成)、rejected(拒绝)"
 12588          required: false
 12589          type: "string"
 12590          enum:
 12591          - "open"
 12592          - "progressing"
 12593          - "closed"
 12594          - "rejected"
 12595          x-exportParamName: "State"
 12596          x-optionalDataType: "String"
 12597        - name: "author"
 12598          in: "query"
 12599          description: "筛选指定创建者 (username/login) 的 issues"
 12600          required: false
 12601          type: "string"
 12602          x-exportParamName: "Author"
 12603          x-optionalDataType: "String"
 12604        - name: "assignee"
 12605          in: "query"
 12606          description: "筛选指定负责人 (username/login) 的 issues"
 12607          required: false
 12608          type: "string"
 12609          x-exportParamName: "Assignee"
 12610          x-optionalDataType: "String"
 12611        - name: "sort"
 12612          in: "query"
 12613          description: "排序字段,created_at(创建时间)、last_push_at(更新时间)、notes_count(评论数),默认\
 12614            为最佳匹配"
 12615          required: false
 12616          type: "string"
 12617          enum:
 12618          - "created_at"
 12619          - "updated_at"
 12620          - "notes_count"
 12621          x-exportParamName: "Sort"
 12622          x-optionalDataType: "String"
 12623        - name: "order"
 12624          in: "query"
 12625          description: "排序顺序: desc(default)、asc"
 12626          required: false
 12627          type: "string"
 12628          default: "desc"
 12629          enum:
 12630          - "asc"
 12631          - "desc"
 12632          x-exportParamName: "Order"
 12633          x-optionalDataType: "String"
 12634        responses:
 12635          200:
 12636            description: "返回格式"
 12637            schema:
 12638              type: "array"
 12639              items:
 12640                $ref: "#/definitions/Issue"
 12641    /v5/search/gists:
 12642      get:
 12643        tags:
 12644        - "Search"
 12645        summary: "搜索代码片段"
 12646        description: "搜索代码片段"
 12647        operationId: "getV5SearchGists"
 12648        consumes:
 12649        - "application/json"
 12650        - "multipart/form-data"
 12651        produces:
 12652        - "application/json"
 12653        parameters:
 12654        - name: "access_token"
 12655          in: "query"
 12656          description: "用户授权码"
 12657          required: false
 12658          type: "string"
 12659          x-exportParamName: "AccessToken"
 12660          x-optionalDataType: "String"
 12661        - name: "q"
 12662          in: "query"
 12663          description: "搜索关键字"
 12664          required: true
 12665          type: "string"
 12666          x-exportParamName: "Q"
 12667        - name: "page"
 12668          in: "query"
 12669          description: "当前的页码"
 12670          required: false
 12671          type: "integer"
 12672          default: 1
 12673          format: "int32"
 12674          x-exportParamName: "Page"
 12675          x-optionalDataType: "Int32"
 12676        - name: "per_page"
 12677          in: "query"
 12678          description: "每页的数量,最大为 100"
 12679          required: false
 12680          type: "integer"
 12681          default: 20
 12682          format: "int32"
 12683          x-exportParamName: "PerPage"
 12684          x-optionalDataType: "Int32"
 12685        - name: "language"
 12686          in: "query"
 12687          description: "筛选指定语言的代码片段"
 12688          required: false
 12689          type: "string"
 12690          enum:
 12691          - "Java"
 12692          - "Zephir"
 12693          - "Pawn"
 12694          - "PHP"
 12695          - "JavaScript"
 12696          - "C#"
 12697          - "C/C++"
 12698          - "Python"
 12699          - "Ruby"
 12700          - "Go"
 12701          - "Perl"
 12702          - "ASP"
 12703          - "Objective-C"
 12704          - "HTML"
 12705          - "CSS"
 12706          - "TypeScript"
 12707          - "Shell"
 12708          - "Erlang"
 12709          - "Kotlin"
 12710          - "Swift"
 12711          - "Rust"
 12712          - "Lua"
 12713          - "Assembly"
 12714          - "Pascal"
 12715          - "Scala"
 12716          - "ActionScript"
 12717          - "Groovy"
 12718          - "Clojure"
 12719          - "Matlab"
 12720          - "VimL"
 12721          - "R"
 12722          - "Lisp"
 12723          - "SQL"
 12724          - "XML"
 12725          - "易语言"
 12726          - "Smalltalk"
 12727          - "其他"
 12728          - "C"
 12729          - "CoffeeScript"
 12730          - "C++"
 12731          - "AutoHotkey"
 12732          - "Arduino"
 12733          - "Common Lisp"
 12734          - "Scheme"
 12735          - "FORTRAN"
 12736          - "Verilog"
 12737          - "Puppet"
 12738          - "XSLT"
 12739          - "Delphi"
 12740          - "eC"
 12741          - "D"
 12742          - "Haskell"
 12743          - "Visual Basic"
 12744          - "PowerShell"
 12745          - "Emacs Lisp"
 12746          - "Racket"
 12747          - "OCaml"
 12748          - "Vala"
 12749          - "Ada"
 12750          - "Dart"
 12751          - "M"
 12752          - "ColdFusion"
 12753          - "Awk"
 12754          - "LiveScript"
 12755          - "Slash"
 12756          - "Julia"
 12757          - "Nemerle"
 12758          - "Elixir"
 12759          - "VHDL"
 12760          - "TeX/LaTeX"
 12761          - "Standard ML"
 12762          - "Haxe"
 12763          - "Eiffel"
 12764          - "DOT"
 12765          - "Scilab"
 12766          - "Prolog"
 12767          - "NodeJS"
 12768          - "Android"
 12769          - "Coq"
 12770          - "Logos"
 12771          - "QML"
 12772          - "Docker"
 12773          - "微信"
 12774          - "Crystal"
 12775          - "HTML/CSS"
 12776          - "汇编"
 12777          x-exportParamName: "Language"
 12778          x-optionalDataType: "String"
 12779        - name: "owner"
 12780          in: "query"
 12781          description: "筛选所属用户 (username/login) 的代码片段"
 12782          required: false
 12783          type: "string"
 12784          x-exportParamName: "Owner"
 12785          x-optionalDataType: "String"
 12786        - name: "sort"
 12787          in: "query"
 12788          description: "排序字段,created_at(创建时间)、updated_at(更新时间)、notes_count(评论数)、stars_count(收\
 12789            藏数)、forks_count(Fork 数),默认为最佳匹配"
 12790          required: false
 12791          type: "string"
 12792          enum:
 12793          - "created_at"
 12794          - "updated_at"
 12795          - "notes_count"
 12796          - "stars_count"
 12797          - "forks_count"
 12798          x-exportParamName: "Sort"
 12799          x-optionalDataType: "String"
 12800        - name: "order"
 12801          in: "query"
 12802          description: "排序顺序: desc(default)、asc"
 12803          required: false
 12804          type: "string"
 12805          default: "desc"
 12806          enum:
 12807          - "asc"
 12808          - "desc"
 12809          x-exportParamName: "Order"
 12810          x-optionalDataType: "String"
 12811        responses:
 12812          200:
 12813            description: "返回格式"
 12814            schema:
 12815              type: "array"
 12816              items:
 12817                $ref: "#/definitions/Code"
 12818    /v5/search/users:
 12819      get:
 12820        tags:
 12821        - "Search"
 12822        summary: "搜索用户"
 12823        description: "搜索用户"
 12824        operationId: "getV5SearchUsers"
 12825        consumes:
 12826        - "application/json"
 12827        - "multipart/form-data"
 12828        produces:
 12829        - "application/json"
 12830        parameters:
 12831        - name: "access_token"
 12832          in: "query"
 12833          description: "用户授权码"
 12834          required: false
 12835          type: "string"
 12836          x-exportParamName: "AccessToken"
 12837          x-optionalDataType: "String"
 12838        - name: "q"
 12839          in: "query"
 12840          description: "搜索关键字"
 12841          required: true
 12842          type: "string"
 12843          x-exportParamName: "Q"
 12844        - name: "page"
 12845          in: "query"
 12846          description: "当前的页码"
 12847          required: false
 12848          type: "integer"
 12849          default: 1
 12850          format: "int32"
 12851          x-exportParamName: "Page"
 12852          x-optionalDataType: "Int32"
 12853        - name: "per_page"
 12854          in: "query"
 12855          description: "每页的数量,最大为 100"
 12856          required: false
 12857          type: "integer"
 12858          default: 20
 12859          format: "int32"
 12860          x-exportParamName: "PerPage"
 12861          x-optionalDataType: "Int32"
 12862        - name: "sort"
 12863          in: "query"
 12864          description: "排序字段,joined_at(注册时间),默认为最佳匹配"
 12865          required: false
 12866          type: "string"
 12867          enum:
 12868          - "joined_at"
 12869          x-exportParamName: "Sort"
 12870          x-optionalDataType: "String"
 12871        - name: "order"
 12872          in: "query"
 12873          description: "排序顺序: desc(default)、asc"
 12874          required: false
 12875          type: "string"
 12876          default: "desc"
 12877          enum:
 12878          - "asc"
 12879          - "desc"
 12880          x-exportParamName: "Order"
 12881          x-optionalDataType: "String"
 12882        responses:
 12883          200:
 12884            description: "返回格式"
 12885            schema:
 12886              type: "array"
 12887              items:
 12888                $ref: "#/definitions/User"
 12889    /v5/notifications/count:
 12890      get:
 12891        tags:
 12892        - "Activity"
 12893        summary: "获取授权用户的通知数"
 12894        description: "获取授权用户的通知数"
 12895        operationId: "getV5NotificationsCount"
 12896        consumes:
 12897        - "application/json"
 12898        - "multipart/form-data"
 12899        produces:
 12900        - "application/json"
 12901        parameters:
 12902        - name: "access_token"
 12903          in: "query"
 12904          description: "用户授权码"
 12905          required: false
 12906          type: "string"
 12907          x-exportParamName: "AccessToken"
 12908          x-optionalDataType: "String"
 12909        - name: "unread"
 12910          in: "query"
 12911          description: "是否只获取未读消息,默认:否"
 12912          required: false
 12913          type: "boolean"
 12914          x-exportParamName: "Unread"
 12915          x-optionalDataType: "Bool"
 12916        responses:
 12917          200:
 12918            description: "返回数据"
 12919            schema:
 12920              $ref: "#/definitions/UserNotificationCount"
 12921    /v5/notifications/threads:
 12922      get:
 12923        tags:
 12924        - "Activity"
 12925        summary: "列出授权用户的所有通知"
 12926        description: "列出授权用户的所有通知"
 12927        operationId: "getV5NotificationsThreads"
 12928        consumes:
 12929        - "application/json"
 12930        - "multipart/form-data"
 12931        produces:
 12932        - "application/json"
 12933        parameters:
 12934        - name: "access_token"
 12935          in: "query"
 12936          description: "用户授权码"
 12937          required: false
 12938          type: "string"
 12939          x-exportParamName: "AccessToken"
 12940          x-optionalDataType: "String"
 12941        - name: "unread"
 12942          in: "query"
 12943          description: "是否只获取未读消息,默认:否"
 12944          required: false
 12945          type: "boolean"
 12946          x-exportParamName: "Unread"
 12947          x-optionalDataType: "Bool"
 12948        - name: "participating"
 12949          in: "query"
 12950          description: "是否只获取自己直接参与的消息,默认:否"
 12951          required: false
 12952          type: "boolean"
 12953          x-exportParamName: "Participating"
 12954          x-optionalDataType: "Bool"
 12955        - name: "type"
 12956          in: "query"
 12957          description: "筛选指定类型的通知,all:所有,event:事件通知,referer:@ 通知"
 12958          required: false
 12959          type: "string"
 12960          default: "all"
 12961          enum:
 12962          - "all"
 12963          - "event"
 12964          - "referer"
 12965          x-exportParamName: "Type_"
 12966          x-optionalDataType: "String"
 12967        - name: "since"
 12968          in: "query"
 12969          description: "只获取在给定时间后更新的消息,要求时间格式为 ISO 8601"
 12970          required: false
 12971          type: "string"
 12972          x-exportParamName: "Since"
 12973          x-optionalDataType: "String"
 12974        - name: "before"
 12975          in: "query"
 12976          description: "只获取在给定时间前更新的消息,要求时间格式为 ISO 8601"
 12977          required: false
 12978          type: "string"
 12979          x-exportParamName: "Before"
 12980          x-optionalDataType: "String"
 12981        - name: "ids"
 12982          in: "query"
 12983          description: "指定一组通知 ID,以 , 分隔"
 12984          required: false
 12985          type: "string"
 12986          x-exportParamName: "Ids"
 12987          x-optionalDataType: "String"
 12988        - name: "page"
 12989          in: "query"
 12990          description: "当前的页码"
 12991          required: false
 12992          type: "integer"
 12993          default: 1
 12994          format: "int32"
 12995          x-exportParamName: "Page"
 12996          x-optionalDataType: "Int32"
 12997        - name: "per_page"
 12998          in: "query"
 12999          description: "每页的数量,最大为 100"
 13000          required: false
 13001          type: "integer"
 13002          default: 20
 13003          format: "int32"
 13004          x-exportParamName: "PerPage"
 13005          x-optionalDataType: "Int32"
 13006        responses:
 13007          200:
 13008            description: "返回数据"
 13009            schema:
 13010              type: "array"
 13011              items:
 13012                $ref: "#/definitions/UserNotificationList"
 13013      put:
 13014        tags:
 13015        - "Activity"
 13016        summary: "标记所有通知为已读"
 13017        description: "标记所有通知为已读"
 13018        operationId: "putV5NotificationsThreads"
 13019        consumes:
 13020        - "application/json"
 13021        - "multipart/form-data"
 13022        produces:
 13023        - "application/json"
 13024        parameters:
 13025        - name: "access_token"
 13026          in: "formData"
 13027          description: "用户授权码"
 13028          required: false
 13029          type: "string"
 13030          x-exportParamName: "AccessToken"
 13031          x-optionalDataType: "String"
 13032        - name: "ids"
 13033          in: "formData"
 13034          description: "指定一组通知 ID,以 , 分隔"
 13035          required: false
 13036          type: "string"
 13037          x-exportParamName: "Ids"
 13038          x-optionalDataType: "String"
 13039        responses:
 13040          205:
 13041            description: "执行成功"
 13042    /v5/notifications/threads/{id}:
 13043      get:
 13044        tags:
 13045        - "Activity"
 13046        summary: "获取一条通知"
 13047        description: "获取一条通知"
 13048        operationId: "getV5NotificationsThreadsId"
 13049        consumes:
 13050        - "application/json"
 13051        - "multipart/form-data"
 13052        produces:
 13053        - "application/json"
 13054        parameters:
 13055        - name: "access_token"
 13056          in: "query"
 13057          description: "用户授权码"
 13058          required: false
 13059          type: "string"
 13060          x-exportParamName: "AccessToken"
 13061          x-optionalDataType: "String"
 13062        - name: "id"
 13063          in: "path"
 13064          description: "通知的 ID"
 13065          required: true
 13066          type: "string"
 13067          x-exportParamName: "Id"
 13068        responses:
 13069          200:
 13070            description: "返回格式"
 13071            schema:
 13072              $ref: "#/definitions/UserNotification"
 13073          404:
 13074            description: "没有相关数据"
 13075      patch:
 13076        tags:
 13077        - "Activity"
 13078        summary: "标记一条通知为已读"
 13079        description: "标记一条通知为已读"
 13080        operationId: "patchV5NotificationsThreadsId"
 13081        consumes:
 13082        - "application/json"
 13083        - "multipart/form-data"
 13084        produces:
 13085        - "application/json"
 13086        parameters:
 13087        - name: "access_token"
 13088          in: "formData"
 13089          description: "用户授权码"
 13090          required: false
 13091          type: "string"
 13092          x-exportParamName: "AccessToken"
 13093          x-optionalDataType: "String"
 13094        - name: "id"
 13095          in: "path"
 13096          description: "通知的 ID"
 13097          required: true
 13098          type: "string"
 13099          x-exportParamName: "Id"
 13100        responses:
 13101          205:
 13102            description: "执行成功"
 13103          404:
 13104            description: "没有相关数据"
 13105    /v5/notifications/messages:
 13106      get:
 13107        tags:
 13108        - "Activity"
 13109        summary: "列出授权用户的所有私信"
 13110        description: "列出授权用户的所有私信"
 13111        operationId: "getV5NotificationsMessages"
 13112        consumes:
 13113        - "application/json"
 13114        - "multipart/form-data"
 13115        produces:
 13116        - "application/json"
 13117        parameters:
 13118        - name: "access_token"
 13119          in: "query"
 13120          description: "用户授权码"
 13121          required: false
 13122          type: "string"
 13123          x-exportParamName: "AccessToken"
 13124          x-optionalDataType: "String"
 13125        - name: "unread"
 13126          in: "query"
 13127          description: "是否只显示未读私信,默认:否"
 13128          required: false
 13129          type: "boolean"
 13130          x-exportParamName: "Unread"
 13131          x-optionalDataType: "Bool"
 13132        - name: "since"
 13133          in: "query"
 13134          description: "只获取在给定时间后更新的私信,要求时间格式为 ISO 8601"
 13135          required: false
 13136          type: "string"
 13137          x-exportParamName: "Since"
 13138          x-optionalDataType: "String"
 13139        - name: "before"
 13140          in: "query"
 13141          description: "只获取在给定时间前更新的私信,要求时间格式为 ISO 8601"
 13142          required: false
 13143          type: "string"
 13144          x-exportParamName: "Before"
 13145          x-optionalDataType: "String"
 13146        - name: "ids"
 13147          in: "query"
 13148          description: "指定一组私信 ID,以 , 分隔"
 13149          required: false
 13150          type: "string"
 13151          x-exportParamName: "Ids"
 13152          x-optionalDataType: "String"
 13153        - name: "page"
 13154          in: "query"
 13155          description: "当前的页码"
 13156          required: false
 13157          type: "integer"
 13158          default: 1
 13159          format: "int32"
 13160          x-exportParamName: "Page"
 13161          x-optionalDataType: "Int32"
 13162        - name: "per_page"
 13163          in: "query"
 13164          description: "每页的数量,最大为 100"
 13165          required: false
 13166          type: "integer"
 13167          default: 20
 13168          format: "int32"
 13169          x-exportParamName: "PerPage"
 13170          x-optionalDataType: "Int32"
 13171        responses:
 13172          200:
 13173            description: "返回格式"
 13174            schema:
 13175              type: "array"
 13176              items:
 13177                $ref: "#/definitions/UserMessageList"
 13178      post:
 13179        tags:
 13180        - "Activity"
 13181        summary: "发送私信给指定用户"
 13182        description: "发送私信给指定用户"
 13183        operationId: "postV5NotificationsMessages"
 13184        consumes:
 13185        - "application/json"
 13186        - "multipart/form-data"
 13187        produces:
 13188        - "application/json"
 13189        parameters:
 13190        - name: "access_token"
 13191          in: "formData"
 13192          description: "用户授权码"
 13193          required: false
 13194          type: "string"
 13195          x-exportParamName: "AccessToken"
 13196          x-optionalDataType: "String"
 13197        - name: "username"
 13198          in: "formData"
 13199          description: "用户名(username/login)"
 13200          required: true
 13201          type: "string"
 13202          x-exportParamName: "Username"
 13203        - name: "content"
 13204          in: "formData"
 13205          description: "私信内容"
 13206          required: true
 13207          type: "string"
 13208          x-exportParamName: "Content"
 13209        responses:
 13210          201:
 13211            description: "返回格式"
 13212            schema:
 13213              $ref: "#/definitions/UserMessage"
 13214          400:
 13215            description: "数据不合法"
 13216          404:
 13217            description: "没有相关数据"
 13218      put:
 13219        tags:
 13220        - "Activity"
 13221        summary: "标记所有私信为已读"
 13222        description: "标记所有私信为已读"
 13223        operationId: "putV5NotificationsMessages"
 13224        consumes:
 13225        - "application/json"
 13226        - "multipart/form-data"
 13227        produces:
 13228        - "application/json"
 13229        parameters:
 13230        - name: "access_token"
 13231          in: "formData"
 13232          description: "用户授权码"
 13233          required: false
 13234          type: "string"
 13235          x-exportParamName: "AccessToken"
 13236          x-optionalDataType: "String"
 13237        - name: "ids"
 13238          in: "formData"
 13239          description: "指定一组私信 ID,以 , 分隔"
 13240          required: false
 13241          type: "string"
 13242          x-exportParamName: "Ids"
 13243          x-optionalDataType: "String"
 13244        responses:
 13245          205:
 13246            description: "执行成功"
 13247    /v5/notifications/messages/{id}:
 13248      get:
 13249        tags:
 13250        - "Activity"
 13251        summary: "获取一条私信"
 13252        description: "获取一条私信"
 13253        operationId: "getV5NotificationsMessagesId"
 13254        consumes:
 13255        - "application/json"
 13256        - "multipart/form-data"
 13257        produces:
 13258        - "application/json"
 13259        parameters:
 13260        - name: "access_token"
 13261          in: "query"
 13262          description: "用户授权码"
 13263          required: false
 13264          type: "string"
 13265          x-exportParamName: "AccessToken"
 13266          x-optionalDataType: "String"
 13267        - name: "id"
 13268          in: "path"
 13269          description: "私信的 ID"
 13270          required: true
 13271          type: "string"
 13272          x-exportParamName: "Id"
 13273        responses:
 13274          200:
 13275            description: "返回格式"
 13276            schema:
 13277              $ref: "#/definitions/UserMessage"
 13278          404:
 13279            description: "没有相关数据"
 13280      patch:
 13281        tags:
 13282        - "Activity"
 13283        summary: "标记一条私信为已读"
 13284        description: "标记一条私信为已读"
 13285        operationId: "patchV5NotificationsMessagesId"
 13286        consumes:
 13287        - "application/json"
 13288        - "multipart/form-data"
 13289        produces:
 13290        - "application/json"
 13291        parameters:
 13292        - name: "access_token"
 13293          in: "formData"
 13294          description: "用户授权码"
 13295          required: false
 13296          type: "string"
 13297          x-exportParamName: "AccessToken"
 13298          x-optionalDataType: "String"
 13299        - name: "id"
 13300          in: "path"
 13301          description: "私信的 ID"
 13302          required: true
 13303          type: "string"
 13304          x-exportParamName: "Id"
 13305        responses:
 13306          205:
 13307            description: "执行成功"
 13308          404:
 13309            description: "没有相关数据"
 13310    /v5/emojis:
 13311      get:
 13312        tags:
 13313        - "Miscellaneous"
 13314        summary: "列出可使用的 Emoji"
 13315        description: "列出可使用的 Emoji"
 13316        operationId: "getV5Emojis"
 13317        consumes:
 13318        - "application/json"
 13319        - "multipart/form-data"
 13320        produces:
 13321        - "application/json"
 13322        parameters:
 13323        - name: "access_token"
 13324          in: "query"
 13325          description: "用户授权码"
 13326          required: false
 13327          type: "string"
 13328          x-exportParamName: "AccessToken"
 13329          x-optionalDataType: "String"
 13330        responses:
 13331          200:
 13332            description: "列出可使用的 Emoji"
 13333  definitions:
 13334    Branch:
 13335      type: "object"
 13336      properties:
 13337        name:
 13338          type: "string"
 13339        commit:
 13340          $ref: "#/definitions/BranchCommit"
 13341        protected:
 13342          type: "boolean"
 13343        protection_url:
 13344          type: "string"
 13345      description: "获取所有分支"
 13346      example:
 13347        protected: "protected"
 13348        name: "name"
 13349        commit: "commit"
 13350        protection_url: "protection_url"
 13351    BranchCommit:
 13352      type: "object"
 13353      properties:
 13354        url:
 13355          type: "string"
 13356        sha:
 13357          type: "string"
 13358      description: "分支commit info"
 13359      example:
 13360        sha: "sha"
 13361        url: "url"
 13362    CompleteBranch:
 13363      type: "object"
 13364      properties:
 13365        name:
 13366          type: "string"
 13367        commit:
 13368          $ref: "#/definitions/BranchCommit"
 13369        _links:
 13370          type: "string"
 13371        protected:
 13372          type: "string"
 13373        protection_url:
 13374          type: "string"
 13375      description: "创建分支"
 13376      example:
 13377        protected: "protected"
 13378        _links: "_links"
 13379        name: "name"
 13380        commit: "commit"
 13381        protection_url: "protection_url"
 13382    RepoCommit:
 13383      type: "object"
 13384      properties:
 13385        url:
 13386          type: "string"
 13387        sha:
 13388          type: "string"
 13389        html_url:
 13390          type: "string"
 13391        comments_url:
 13392          type: "string"
 13393        commit:
 13394          $ref: "#/definitions/SingleCommit"
 13395        author:
 13396          type: "string"
 13397        committer:
 13398          type: "string"
 13399        parents:
 13400          type: "string"
 13401        stats:
 13402          type: "string"
 13403      description: "仓库的某个提交"
 13404      example:
 13405        committer: "committer"
 13406        stats: "stats"
 13407        author: "author"
 13408        html_url: "html_url"
 13409        comments_url: "comments_url"
 13410        commit: "commit"
 13411        sha: "sha"
 13412        url: "url"
 13413        parents: "parents"
 13414    SingleCommit:
 13415      type: "object"
 13416      properties:
 13417        author:
 13418          $ref: "#/definitions/GitUser"
 13419        committer:
 13420          $ref: "#/definitions/GitUser"
 13421        tree:
 13422          $ref: "#/definitions/CommitTree"
 13423    CommitTree:
 13424      type: "object"
 13425      properties:
 13426        sha:
 13427          type: "string"
 13428        url:
 13429          type: "string"
 13430    Compare:
 13431      type: "object"
 13432      properties:
 13433        base_commit:
 13434          type: "string"
 13435        merge_base_commit:
 13436          type: "string"
 13437        commits:
 13438          type: "string"
 13439        files:
 13440          type: "string"
 13441      description: "两个Commits之间对比的版本差异"
 13442      example:
 13443        base_commit: "base_commit"
 13444        commits: "commits"
 13445        files: "files"
 13446        merge_base_commit: "merge_base_commit"
 13447    SSHKey:
 13448      type: "object"
 13449      properties:
 13450        id:
 13451          type: "string"
 13452        key:
 13453          type: "string"
 13454        url:
 13455          type: "string"
 13456        title:
 13457          type: "string"
 13458        created_at:
 13459          type: "string"
 13460      description: "获取一个公钥"
 13461      example:
 13462        created_at: "created_at"
 13463        id: "id"
 13464        title: "title"
 13465        key: "key"
 13466        url: "url"
 13467    SSHKeyBasic:
 13468      type: "object"
 13469      properties:
 13470        id:
 13471          type: "string"
 13472        key:
 13473          type: "string"
 13474      description: "列出指定用户的所有公钥"
 13475      example:
 13476        id: "id"
 13477        key: "key"
 13478    Content:
 13479      type: "object"
 13480      properties:
 13481        type:
 13482          type: "string"
 13483        encoding:
 13484          type: "string"
 13485        size:
 13486          type: "string"
 13487        name:
 13488          type: "string"
 13489        path:
 13490          type: "string"
 13491        content:
 13492          type: "string"
 13493        sha:
 13494          type: "string"
 13495        url:
 13496          type: "string"
 13497        html_url:
 13498          type: "string"
 13499        download_url:
 13500          type: "string"
 13501        _links:
 13502          type: "string"
 13503      description: "获取仓库具体路径下的内容"
 13504      example:
 13505        path: "path"
 13506        size: "size"
 13507        _links: "_links"
 13508        html_url: "html_url"
 13509        name: "name"
 13510        download_url: "download_url"
 13511        type: "type"
 13512        encoding: "encoding"
 13513        sha: "sha"
 13514        content: "content"
 13515        url: "url"
 13516    CommitContent:
 13517      type: "object"
 13518      properties:
 13519        content:
 13520          $ref: "#/definitions/ContentBasic"
 13521        commit:
 13522          $ref: "#/definitions/Commit"
 13523      description: "删除文件"
 13524      example:
 13525        commit:
 13526          committer: "committer"
 13527          author: "author"
 13528          tree: "tree"
 13529          message: "message"
 13530          sha: "sha"
 13531          parents: "parents"
 13532        content:
 13533          path: "path"
 13534          size: "size"
 13535          _links: "_links"
 13536          html_url: "html_url"
 13537          name: "name"
 13538          download_url: "download_url"
 13539          type: "type"
 13540          sha: "sha"
 13541          url: "url"
 13542    ContentBasic:
 13543      type: "object"
 13544      properties:
 13545        name:
 13546          type: "string"
 13547        path:
 13548          type: "string"
 13549        size:
 13550          type: "string"
 13551        sha:
 13552          type: "string"
 13553        type:
 13554          type: "string"
 13555        url:
 13556          type: "string"
 13557        html_url:
 13558          type: "string"
 13559        download_url:
 13560          type: "string"
 13561        _links:
 13562          type: "string"
 13563      example:
 13564        path: "path"
 13565        size: "size"
 13566        _links: "_links"
 13567        html_url: "html_url"
 13568        name: "name"
 13569        download_url: "download_url"
 13570        type: "type"
 13571        sha: "sha"
 13572        url: "url"
 13573    Commit:
 13574      type: "object"
 13575      properties:
 13576        id:
 13577          type: "string"
 13578        tree_id:
 13579          type: "string"
 13580        parent_ids:
 13581          type: "array"
 13582          items:
 13583            type: "string"
 13584        message:
 13585          type: "string"
 13586        timestamp:
 13587          type: "string"
 13588          format: "date-time"
 13589        url:
 13590          type: "string"
 13591        author:
 13592          $ref: "#/definitions/UserBasic"
 13593        committer:
 13594          $ref: "#/definitions/UserBasic"
 13595        distinct:
 13596          type: "boolean"
 13597        added:
 13598          type: "array"
 13599          items:
 13600            type: "string"
 13601        removed:
 13602          type: "array"
 13603          items:
 13604            type: "string"
 13605        modified:
 13606          type: "array"
 13607          items:
 13608            type: "string"
 13609    Blob:
 13610      type: "object"
 13611      properties:
 13612        sha:
 13613          type: "string"
 13614        size:
 13615          type: "string"
 13616        url:
 13617          type: "string"
 13618        content:
 13619          type: "string"
 13620        encoding:
 13621          type: "string"
 13622      description: "获取文件Blob"
 13623      example:
 13624        size: "size"
 13625        encoding: "encoding"
 13626        sha: "sha"
 13627        url: "url"
 13628        content: "content"
 13629    TreeBasic:
 13630      type: "object"
 13631      properties:
 13632        path:
 13633          type: "string"
 13634        mode:
 13635          type: "string"
 13636        type:
 13637          type: "string"
 13638        sha:
 13639          type: "string"
 13640        size:
 13641          type: "integer"
 13642          format: "int32"
 13643        url:
 13644          type: "string"
 13645    Tree:
 13646      type: "object"
 13647      properties:
 13648        sha:
 13649          type: "string"
 13650        url:
 13651          type: "string"
 13652        tree:
 13653          type: "array"
 13654          items:
 13655            $ref: "#/definitions/TreeBasic"
 13656        truncated:
 13657          type: "string"
 13658      description: "获取目录Tree"
 13659      example:
 13660        tree: "tree"
 13661        truncated: "truncated"
 13662        sha: "sha"
 13663        url: "url"
 13664    Issue:
 13665      type: "object"
 13666      properties:
 13667        id:
 13668          type: "integer"
 13669          format: "int32"
 13670        url:
 13671          type: "string"
 13672        repository_url:
 13673          type: "string"
 13674        labels_url:
 13675          type: "string"
 13676        comments_url:
 13677          type: "string"
 13678        html_url:
 13679          type: "string"
 13680        parent_url:
 13681          type: "string"
 13682        number:
 13683          type: "string"
 13684        state:
 13685          type: "string"
 13686        title:
 13687          type: "string"
 13688        body:
 13689          type: "string"
 13690        body_html:
 13691          type: "string"
 13692        user:
 13693          $ref: "#/definitions/UserBasic"
 13694        labels:
 13695          type: "array"
 13696          items:
 13697            $ref: "#/definitions/Label"
 13698        assignee:
 13699          $ref: "#/definitions/UserBasic"
 13700        collaborators:
 13701          type: "array"
 13702          items:
 13703            $ref: "#/definitions/UserBasic"
 13704        repository:
 13705          type: "string"
 13706        milestone:
 13707          $ref: "#/definitions/Milestone"
 13708        created_at:
 13709          type: "string"
 13710          format: "date-time"
 13711        updated_at:
 13712          type: "string"
 13713          format: "date-time"
 13714        plan_started_at:
 13715          type: "string"
 13716          format: "date-time"
 13717        deadline:
 13718          type: "string"
 13719          format: "date-time"
 13720        finished_at:
 13721          type: "string"
 13722          format: "date-time"
 13723        scheduled_time:
 13724          type: "string"
 13725        comments:
 13726          type: "integer"
 13727          format: "int32"
 13728        issue_type:
 13729          type: "string"
 13730        program:
 13731          $ref: "#/definitions/ProgramBasic"
 13732      description: "搜索 Issues"
 13733      example:
 13734        body_html: "body_html"
 13735        finished_at: "2000-01-23T04:56:07.000+00:00"
 13736        created_at: "2000-01-23T04:56:07.000+00:00"
 13737        program:
 13738          author: "author"
 13739          name: "name"
 13740          description: "description"
 13741          id: "id"
 13742          assignee: "assignee"
 13743        title: "title"
 13744        body: "body"
 13745        repository: "repository"
 13746        scheduled_time: "scheduled_time"
 13747        labels_url: "labels_url"
 13748        number: "number"
 13749        updated_at: "2000-01-23T04:56:07.000+00:00"
 13750        comments_url: "comments_url"
 13751        collaborators:
 13752          gists_url: "gists_url"
 13753          repos_url: "repos_url"
 13754          following_url: "following_url"
 13755          starred_url: "starred_url"
 13756          login: "login"
 13757          followers_url: "followers_url"
 13758          type: "type"
 13759          url: "url"
 13760          subscriptions_url: "subscriptions_url"
 13761          received_events_url: "received_events_url"
 13762          avatar_url: "avatar_url"
 13763          events_url: "events_url"
 13764          html_url: "html_url"
 13765          name: "name"
 13766          site_admin: "site_admin"
 13767          id: 5
 13768          organizations_url: "organizations_url"
 13769        id: 0
 13770        repository_url: "repository_url"
 13771        state: "state"
 13772        deadline: "2000-01-23T04:56:07.000+00:00"
 13773        comments: 3
 13774        issue_type: "issue_type"
 13775        url: "url"
 13776        labels:
 13777          color: "color"
 13778          name: "name"
 13779          repository_id: 1
 13780          id: 6
 13781          url: "url"
 13782        milestone:
 13783          number: 5
 13784          updated_at: "2000-01-23T04:56:07.000+00:00"
 13785          html_url: "html_url"
 13786          description: "description"
 13787          created_at: "2000-01-23T04:56:07.000+00:00"
 13788          repository_id: 2
 13789          state: "state"
 13790          title: "title"
 13791          open_issues: 7
 13792          closed_issues: 9
 13793          url: "url"
 13794          due_on: "2000-01-23T04:56:07.000+00:00"
 13795        parent_url: "parent_url"
 13796        plan_started_at: "2000-01-23T04:56:07.000+00:00"
 13797        html_url: "html_url"
 13798        assignee:
 13799          gists_url: "gists_url"
 13800          repos_url: "repos_url"
 13801          following_url: "following_url"
 13802          starred_url: "starred_url"
 13803          login: "login"
 13804          followers_url: "followers_url"
 13805          type: "type"
 13806          url: "url"
 13807          subscriptions_url: "subscriptions_url"
 13808          received_events_url: "received_events_url"
 13809          avatar_url: "avatar_url"
 13810          events_url: "events_url"
 13811          html_url: "html_url"
 13812          name: "name"
 13813          site_admin: "site_admin"
 13814          id: 5
 13815          organizations_url: "organizations_url"
 13816        user: "user"
 13817    Label:
 13818      type: "object"
 13819      properties:
 13820        id:
 13821          type: "integer"
 13822          format: "int32"
 13823        name:
 13824          type: "string"
 13825        color:
 13826          type: "string"
 13827        repository_id:
 13828          type: "integer"
 13829          format: "int32"
 13830        url:
 13831          type: "string"
 13832      description: "获取企业某个标签"
 13833      example:
 13834        color: "color"
 13835        name: "name"
 13836        repository_id: 1
 13837        id: 6
 13838        url: "url"
 13839    UserBasic:
 13840      type: "object"
 13841      properties:
 13842        id:
 13843          type: "integer"
 13844          format: "int32"
 13845        login:
 13846          type: "string"
 13847        name:
 13848          type: "string"
 13849        avatar_url:
 13850          type: "string"
 13851        url:
 13852          type: "string"
 13853        html_url:
 13854          type: "string"
 13855        followers_url:
 13856          type: "string"
 13857        following_url:
 13858          type: "string"
 13859        gists_url:
 13860          type: "string"
 13861        starred_url:
 13862          type: "string"
 13863        subscriptions_url:
 13864          type: "string"
 13865        organizations_url:
 13866          type: "string"
 13867        repos_url:
 13868          type: "string"
 13869        events_url:
 13870          type: "string"
 13871        received_events_url:
 13872          type: "string"
 13873        type:
 13874          type: "string"
 13875        site_admin:
 13876          type: "boolean"
 13877        email:
 13878          type: "string"
 13879      description: "列出一个组织的所有成员"
 13880      example:
 13881        gists_url: "gists_url"
 13882        repos_url: "repos_url"
 13883        following_url: "following_url"
 13884        starred_url: "starred_url"
 13885        login: "login"
 13886        followers_url: "followers_url"
 13887        type: "type"
 13888        url: "url"
 13889        subscriptions_url: "subscriptions_url"
 13890        received_events_url: "received_events_url"
 13891        avatar_url: "avatar_url"
 13892        events_url: "events_url"
 13893        html_url: "html_url"
 13894        name: "name"
 13895        site_admin: "site_admin"
 13896        id: 5
 13897        organizations_url: "organizations_url"
 13898    Email:
 13899      type: "object"
 13900      properties:
 13901        email:
 13902          type: "string"
 13903        state:
 13904          type: "string"
 13905        scope:
 13906          type: "array"
 13907          items:
 13908            type: "string"
 13909      description: "获取授权用户的邮件地址"
 13910      example:
 13911        email: "xxx@xx.com"
 13912        state: "confirmed"
 13913        scope:
 13914        - "primary"
 13915        - "secure"
 13916        - "notified"
 13917        - "commited"
 13918        - "public"
 13919    Milestone:
 13920      type: "object"
 13921      properties:
 13922        url:
 13923          type: "string"
 13924        html_url:
 13925          type: "string"
 13926        number:
 13927          type: "integer"
 13928          format: "int32"
 13929        repository_id:
 13930          type: "integer"
 13931          format: "int32"
 13932        state:
 13933          type: "string"
 13934        title:
 13935          type: "string"
 13936        description:
 13937          type: "string"
 13938        updated_at:
 13939          type: "string"
 13940          format: "date-time"
 13941        created_at:
 13942          type: "string"
 13943          format: "date-time"
 13944        open_issues:
 13945          type: "integer"
 13946          format: "int32"
 13947        closed_issues:
 13948          type: "integer"
 13949          format: "int32"
 13950        due_on:
 13951          type: "string"
 13952      description: "更新仓库里程碑"
 13953      example:
 13954        number: 5
 13955        updated_at: "2000-01-23T04:56:07.000+00:00"
 13956        html_url: "html_url"
 13957        description: "description"
 13958        created_at: "2000-01-23T04:56:07.000+00:00"
 13959        repository_id: 2
 13960        state: "state"
 13961        title: "title"
 13962        open_issues: 7
 13963        closed_issues: 9
 13964        url: "url"
 13965        due_on: "2000-01-23T04:56:07.000+00:00"
 13966    ProgramBasic:
 13967      type: "object"
 13968      properties:
 13969        id:
 13970          type: "string"
 13971        name:
 13972          type: "string"
 13973        description:
 13974          type: "string"
 13975        assignee:
 13976          type: "string"
 13977        author:
 13978          type: "string"
 13979      example:
 13980        author: "author"
 13981        name: "name"
 13982        description: "description"
 13983        id: "id"
 13984        assignee: "assignee"
 13985    OperateLog:
 13986      type: "object"
 13987      properties:
 13988        id:
 13989          type: "string"
 13990        icon:
 13991          type: "string"
 13992        user:
 13993          $ref: "#/definitions/User"
 13994        content:
 13995          type: "string"
 13996        created_at:
 13997          type: "string"
 13998      description: "获取某个Pull Request的操作日志"
 13999      example:
 14000        icon: "icon"
 14001        created_at: "created_at"
 14002        id: "id"
 14003        user: "user"
 14004        content: "content"
 14005    Note:
 14006      type: "object"
 14007      properties:
 14008        id:
 14009          type: "integer"
 14010          format: "int32"
 14011        body:
 14012          type: "string"
 14013        body_html:
 14014          type: "string"
 14015        user:
 14016          $ref: "#/definitions/User"
 14017        source:
 14018          type: "string"
 14019        created_at:
 14020          type: "string"
 14021        target:
 14022          type: "string"
 14023      description: "获取企业某个Issue所有评论"
 14024      example:
 14025        body_html: "body_html"
 14026        created_at: "created_at"
 14027        id: "id"
 14028        source: "source"
 14029        body: "body"
 14030        user: "user"
 14031        target: "target"
 14032    Project:
 14033      type: "object"
 14034      properties:
 14035        id:
 14036          type: "integer"
 14037          format: "int32"
 14038        full_name:
 14039          type: "string"
 14040        human_name:
 14041          type: "string"
 14042        url:
 14043          type: "string"
 14044        namespace:
 14045          $ref: "#/definitions/Namespace"
 14046        path:
 14047          type: "string"
 14048        name:
 14049          type: "string"
 14050        owner:
 14051          $ref: "#/definitions/UserBasic"
 14052        description:
 14053          type: "string"
 14054        private:
 14055          type: "boolean"
 14056        public:
 14057          type: "boolean"
 14058        internal:
 14059          type: "boolean"
 14060        fork:
 14061          type: "boolean"
 14062        html_url:
 14063          type: "string"
 14064        ssh_url:
 14065          type: "string"
 14066        forks_url:
 14067          type: "string"
 14068        keys_url:
 14069          type: "string"
 14070        collaborators_url:
 14071          type: "string"
 14072        hooks_url:
 14073          type: "string"
 14074        branches_url:
 14075          type: "string"
 14076        tags_url:
 14077          type: "string"
 14078        blobs_url:
 14079          type: "string"
 14080        stargazers_url:
 14081          type: "string"
 14082        contributors_url:
 14083          type: "string"
 14084        commits_url:
 14085          type: "string"
 14086        comments_url:
 14087          type: "string"
 14088        issue_comment_url:
 14089          type: "string"
 14090        issues_url:
 14091          type: "string"
 14092        pulls_url:
 14093          type: "string"
 14094        milestones_url:
 14095          type: "string"
 14096        notifications_url:
 14097          type: "string"
 14098        labels_url:
 14099          type: "string"
 14100        releases_url:
 14101          type: "string"
 14102        recommend:
 14103          type: "boolean"
 14104        homepage:
 14105          type: "string"
 14106        language:
 14107          type: "string"
 14108        forks_count:
 14109          type: "integer"
 14110          format: "int32"
 14111        stargazers_count:
 14112          type: "integer"
 14113          format: "int32"
 14114        watchers_count:
 14115          type: "integer"
 14116          format: "int32"
 14117        default_branch:
 14118          type: "string"
 14119        open_issues_count:
 14120          type: "integer"
 14121          format: "int32"
 14122        has_issues:
 14123          type: "boolean"
 14124        has_wiki:
 14125          type: "boolean"
 14126        can_comment:
 14127          type: "boolean"
 14128        pull_requests_enabled:
 14129          type: "boolean"
 14130        has_page:
 14131          type: "boolean"
 14132        license:
 14133          type: "string"
 14134        outsourced:
 14135          type: "boolean"
 14136        project_creator:
 14137          type: "string"
 14138        members:
 14139          type: "array"
 14140          items:
 14141            type: "string"
 14142        pushed_at:
 14143          type: "string"
 14144        created_at:
 14145          type: "string"
 14146        updated_at:
 14147          type: "string"
 14148        parent:
 14149          $ref: "#/definitions/Project"
 14150        paas:
 14151          type: "string"
 14152        stared:
 14153          type: "string"
 14154        watched:
 14155          type: "string"
 14156        permission:
 14157          type: "string"
 14158        relation:
 14159          type: "string"
 14160      description: "搜索仓库"
 14161      example:
 14162        human_name: "human_name"
 14163        stargazers_count: "stargazers_count"
 14164        pushed_at: "pushed_at"
 14165        language: "language"
 14166        branches_url: "branches_url"
 14167        issue_comment_url: "issue_comment_url"
 14168        relation: "relation"
 14169        labels_url: "labels_url"
 14170        path: "path"
 14171        releases_url: "releases_url"
 14172        members: "members"
 14173        id: 0
 14174        pull_requests_enabled: "pull_requests_enabled"
 14175        forks_url: "forks_url"
 14176        project_creator: "project_creator"
 14177        ssh_url: "ssh_url"
 14178        license: "license"
 14179        watched: "watched"
 14180        full_name: "full_name"
 14181        html_url: "html_url"
 14182        collaborators_url: "collaborators_url"
 14183        name: "name"
 14184        outsourced: "outsourced"
 14185        pulls_url: "pulls_url"
 14186        default_branch: "default_branch"
 14187        hooks_url: "hooks_url"
 14188        stared: "stared"
 14189        tags_url: "tags_url"
 14190        private: "private"
 14191        internal: "internal"
 14192        contributors_url: "contributors_url"
 14193        notifications_url: "notifications_url"
 14194        open_issues_count: 6
 14195        description: "description"
 14196        created_at: "created_at"
 14197        recommend: "recommend"
 14198        keys_url: "keys_url"
 14199        has_wiki: "has_wiki"
 14200        can_comment: false
 14201        public: "public"
 14202        updated_at: "updated_at"
 14203        paas: "paas"
 14204        comments_url: "comments_url"
 14205        stargazers_url: "stargazers_url"
 14206        owner: "owner"
 14207        commits_url: "commits_url"
 14208        blobs_url: "blobs_url"
 14209        permission: "permission"
 14210        has_issues: "has_issues"
 14211        url: "url"
 14212        milestones_url: "milestones_url"
 14213        fork: "fork"
 14214        issues_url: "issues_url"
 14215        has_page: "has_page"
 14216        namespace: "{}"
 14217        watchers_count: "watchers_count"
 14218        homepage: "homepage"
 14219        forks_count: "forks_count"
 14220    Contributor:
 14221      type: "object"
 14222      properties:
 14223        email:
 14224          type: "string"
 14225        name:
 14226          type: "string"
 14227        contributions:
 14228          type: "string"
 14229      description: "获取仓库贡献者"
 14230      example:
 14231        contributions: "contributions"
 14232        name: "name"
 14233        email: "email"
 14234    Tag:
 14235      type: "object"
 14236      properties:
 14237        name:
 14238          type: "string"
 14239        commit:
 14240          type: "string"
 14241      description: "列出仓库所有的tags"
 14242      example:
 14243        name: "name"
 14244        commit: "commit"
 14245    ProjectMember:
 14246      type: "object"
 14247      properties:
 14248        id:
 14249          type: "integer"
 14250          format: "int32"
 14251        login:
 14252          type: "string"
 14253        name:
 14254          type: "string"
 14255        avatar_url:
 14256          type: "string"
 14257        url:
 14258          type: "string"
 14259        html_url:
 14260          type: "string"
 14261        followers_url:
 14262          type: "string"
 14263        following_url:
 14264          type: "string"
 14265        gists_url:
 14266          type: "string"
 14267        starred_url:
 14268          type: "string"
 14269        subscriptions_url:
 14270          type: "string"
 14271        organizations_url:
 14272          type: "string"
 14273        repos_url:
 14274          type: "string"
 14275        events_url:
 14276          type: "string"
 14277        received_events_url:
 14278          type: "string"
 14279        type:
 14280          type: "string"
 14281        site_admin:
 14282          type: "string"
 14283        permissions:
 14284          $ref: "#/definitions/ProjectMemberPermissionDetail"
 14285      description: "添加仓库成员"
 14286      example:
 14287        gists_url: "gists_url"
 14288        repos_url: "repos_url"
 14289        following_url: "following_url"
 14290        starred_url: "starred_url"
 14291        login: "login"
 14292        followers_url: "followers_url"
 14293        type: "type"
 14294        url: "url"
 14295        subscriptions_url: "subscriptions_url"
 14296        received_events_url: "received_events_url"
 14297        avatar_url: "avatar_url"
 14298        events_url: "events_url"
 14299        permissions: "permissions"
 14300        html_url: "html_url"
 14301        name: "name"
 14302        site_admin: "site_admin"
 14303        id: 0
 14304        organizations_url: "organizations_url"
 14305    ProjectMemberPermission:
 14306      type: "object"
 14307      properties:
 14308        id:
 14309          type: "integer"
 14310          format: "int32"
 14311        login:
 14312          type: "string"
 14313        name:
 14314          type: "string"
 14315        avatar_url:
 14316          type: "string"
 14317        url:
 14318          type: "string"
 14319        html_url:
 14320          type: "string"
 14321        followers_url:
 14322          type: "string"
 14323        following_url:
 14324          type: "string"
 14325        gists_url:
 14326          type: "string"
 14327        starred_url:
 14328          type: "string"
 14329        subscriptions_url:
 14330          type: "string"
 14331        organizations_url:
 14332          type: "string"
 14333        repos_url:
 14334          type: "string"
 14335        events_url:
 14336          type: "string"
 14337        received_events_url:
 14338          type: "string"
 14339        type:
 14340          type: "string"
 14341        site_admin:
 14342          type: "string"
 14343        permission:
 14344          type: "string"
 14345      description: "查看仓库成员的权限"
 14346      example:
 14347        gists_url: "gists_url"
 14348        repos_url: "repos_url"
 14349        following_url: "following_url"
 14350        starred_url: "starred_url"
 14351        permission: "permission"
 14352        login: "login"
 14353        followers_url: "followers_url"
 14354        type: "type"
 14355        url: "url"
 14356        subscriptions_url: "subscriptions_url"
 14357        received_events_url: "received_events_url"
 14358        avatar_url: "avatar_url"
 14359        events_url: "events_url"
 14360        html_url: "html_url"
 14361        name: "name"
 14362        site_admin: "site_admin"
 14363        id: 0
 14364        organizations_url: "organizations_url"
 14365    CreatePullRequestParam:
 14366      type: "object"
 14367      properties:
 14368        access_token:
 14369          description: "用户授权码"
 14370          required: false
 14371          type: "string"
 14372          x-exportParamName: "AccessToken"
 14373          x-optionalDataType: "String"
 14374        title:
 14375          description: "必填。Pull Request 标题"
 14376          required: true
 14377          type: "string"
 14378          x-exportParamName: "Title"
 14379        head:
 14380          description: "必填。Pull Request 提交的源分支。格式:branch 或者:username:branch"
 14381          required: true
 14382          type: "string"
 14383          x-exportParamName: "Head"
 14384        base:
 14385          description: "必填。Pull Request 提交目标分支的名称"
 14386          required: true
 14387          type: "string"
 14388          x-exportParamName: "Base"
 14389        body:
 14390          description: "可选。Pull Request 内容"
 14391          required: false
 14392          type: "string"
 14393          x-exportParamName: "Body"
 14394          x-optionalDataType: "String"
 14395        milestone_number:
 14396          description: "可选。里程碑序号(id)"
 14397          required: false
 14398          type: "integer"
 14399          format: "int32"
 14400          x-exportParamName: "MilestoneNumber"
 14401          x-optionalDataType: "Int32"
 14402        labels:
 14403          description: "用逗号分开的标签,名称要求长度在 2-20 之间且非特殊字符。如: bug,performance"
 14404          required: false
 14405          type: "string"
 14406          x-exportParamName: "Labels"
 14407          x-optionalDataType: "String"
 14408        issue:
 14409          description: "可选。Pull Request的标题和内容可以根据指定的Issue Id自动填充"
 14410          required: false
 14411          type: "string"
 14412          x-exportParamName: "Issue"
 14413          x-optionalDataType: "String"
 14414        assignees:
 14415          description: "可选。审查人员username,可多个,半角逗号分隔,如:(username1,username2)"
 14416          required: false
 14417          type: "string"
 14418          x-exportParamName: "Assignees"
 14419          x-optionalDataType: "String"
 14420        testers:
 14421          description: "可选。测试人员username,可多个,半角逗号分隔,如:(username1,username2)"
 14422          required: false
 14423          type: "string"
 14424          x-exportParamName: "Testers"
 14425          x-optionalDataType: "String"
 14426        prune_source_branch:
 14427          description: "可选。合并PR后是否删除源分支,默认false(不删除)"
 14428          required: false
 14429          type: "boolean"
 14430          x-exportParamName: "PruneSourceBranch"
 14431          x-optionalDataType: "Bool"
 14432  
 14433    PullRequest:
 14434      type: "object"
 14435      properties:
 14436        id:
 14437          type: "integer"
 14438          format: "int32"
 14439        url:
 14440          type: "string"
 14441        html_url:
 14442          type: "string"
 14443        diff_url:
 14444          type: "string"
 14445        patch_url:
 14446          type: "string"
 14447        issue_url:
 14448          type: "string"
 14449        commits_url:
 14450          type: "string"
 14451        review_comments_url:
 14452          type: "string"
 14453        review_comment_url:
 14454          type: "string"
 14455        comments_url:
 14456          type: "string"
 14457        statuses_url:
 14458          type: "string"
 14459        assignees_number:
 14460          type: "integer"
 14461          format: "int32"
 14462        testers_number:
 14463          type: "integer"
 14464          format: "int32"
 14465        number:
 14466          type: "integer"
 14467          format: "int32"
 14468        state:
 14469          type: "string"
 14470        title:
 14471          type: "string"
 14472        body:
 14473          type: "string"
 14474        body_html:
 14475          type: "string"
 14476        assignees:
 14477          type: "array"
 14478          items:
 14479            $ref: "#/definitions/UserBasic"
 14480        testers:
 14481          type: "array"
 14482          items:
 14483            $ref: "#/definitions/UserBasic"
 14484        milestone:
 14485          $ref: "#/definitions/Milestone"
 14486        labels:
 14487          type: "array"
 14488          items:
 14489            $ref: "#/definitions/Label"
 14490        locked:
 14491          type: "string"
 14492        created_at:
 14493          type: "string"
 14494        updated_at:
 14495          type: "string"
 14496        closed_at:
 14497          type: "string"
 14498        merged_at:
 14499          type: "string"
 14500        mergeable:
 14501          type: "boolean"
 14502        head:
 14503          $ref: "#/definitions/BasicInfo"
 14504        base:
 14505          $ref: "#/definitions/BasicInfo"
 14506        _links:
 14507          type: "string"
 14508        user:
 14509          $ref: "#/definitions/UserBasic"
 14510        comments:
 14511          type: "integer"
 14512          format: "int32"
 14513        commits:
 14514          type: "integer"
 14515          format: "int32"
 14516        additions:
 14517          type: "integer"
 14518          format: "int32"
 14519        deletions:
 14520          type: "integer"
 14521          format: "int32"
 14522        changed_files:
 14523          type: "integer"
 14524          format: "int32"
 14525      description: "取消用户测试 Pull Request"
 14526      example:
 14527        issue_url: "issue_url"
 14528        body_html: "body_html"
 14529        _links: "_links"
 14530        diff_url: "diff_url"
 14531        assignees:
 14532        - "assignees"
 14533        - "assignees"
 14534        created_at: "created_at"
 14535        title: "title"
 14536        body: "body"
 14537        head: "head"
 14538        number: "number"
 14539        mergeable: "mergeable"
 14540        patch_url: "patch_url"
 14541        updated_at: "updated_at"
 14542        comments_url: "comments_url"
 14543        review_comment_url: "review_comment_url"
 14544        id: "id"
 14545        state: "state"
 14546        locked: "locked"
 14547        commits_url: "commits_url"
 14548        testers:
 14549        - "testers"
 14550        - "testers"
 14551        closed_at: "closed_at"
 14552        statuses_url: "statuses_url"
 14553        merged_at: "merged_at"
 14554        url: "url"
 14555        labels:
 14556          color: "color"
 14557          name: "name"
 14558          repository_id: 1
 14559          id: 6
 14560          url: "url"
 14561        milestone:
 14562          number: 5
 14563          updated_at: "2000-01-23T04:56:07.000+00:00"
 14564          html_url: "html_url"
 14565          description: "description"
 14566          created_at: "2000-01-23T04:56:07.000+00:00"
 14567          repository_id: 2
 14568          state: "state"
 14569          title: "title"
 14570          open_issues: 7
 14571          closed_issues: 9
 14572          url: "url"
 14573          due_on: "2000-01-23T04:56:07.000+00:00"
 14574        html_url: "html_url"
 14575        review_comments_url: "review_comments_url"
 14576        user: "user"
 14577        base: "base"
 14578    PullRequestComments:
 14579      type: "object"
 14580      properties:
 14581        url:
 14582          type: "string"
 14583        id:
 14584          type: "integer"
 14585        path:
 14586          type: "string"
 14587        position:
 14588          type: "string"
 14589        original_position:
 14590          type: "string"
 14591        commit_id:
 14592          type: "string"
 14593        original_commit_id:
 14594          type: "string"
 14595        user:
 14596          $ref: "#/definitions/UserBasic"
 14597        body:
 14598          type: "string"
 14599        created_at:
 14600          type: "string"
 14601        updated_at:
 14602          type: "string"
 14603        html_url:
 14604          type: "string"
 14605        pull_request_url:
 14606          type: "string"
 14607        _links:
 14608          type: "string"
 14609      description: "编辑评论"
 14610      example:
 14611        original_commit_id: "original_commit_id"
 14612        _links: "_links"
 14613        created_at: "created_at"
 14614        pull_request_url: "pull_request_url"
 14615        body: "body"
 14616        url: "url"
 14617        path: "path"
 14618        original_position: "original_position"
 14619        updated_at: "updated_at"
 14620        html_url: "html_url"
 14621        id: "id"
 14622        position: "position"
 14623        commit_id: "commit_id"
 14624        user: "user"
 14625    GitUser:
 14626      type: "object"
 14627      properties:
 14628        name:
 14629          type: "string"
 14630        email:
 14631          type: "string"
 14632        date:
 14633          type: "string"
 14634          format: "date-time"
 14635    GitCommit:
 14636      type: "object"
 14637      properties:
 14638        url:
 14639          type: "string"
 14640        author:
 14641          $ref: "#/definitions/GitUser"
 14642        committer:
 14643          $ref: "#/definitions/GitUser"
 14644        message:
 14645          type: "string"
 14646        comment_count:
 14647          type: integer
 14648          format: int32
 14649    PullRequestCommits:
 14650      type: "object"
 14651      properties:
 14652        url:
 14653          type: "string"
 14654        sha:
 14655          type: "string"
 14656        html_url:
 14657          type: "string"
 14658        comments_url:
 14659          type: "string"
 14660        commit:
 14661          $ref: "#/definitions/GitCommit"
 14662        author:
 14663          $ref: "#/definitions/UserBasic"
 14664        committer:
 14665          $ref: "#/definitions/UserBasic"
 14666        parents:
 14667          $ref: "#/definitions/CommitTree"
 14668      description: "获取某Pull Request的所有Commit信息。最多显示250条Commit"
 14669      example:
 14670        committer: "committer"
 14671        author: "author"
 14672        html_url: "html_url"
 14673        comments_url: "comments_url"
 14674        commit: "commit"
 14675        sha: "sha"
 14676        url: "url"
 14677        parents: "parents"
 14678    PullRequestFilePath:
 14679      type: "object"
 14680      properties:
 14681        diff:
 14682          type: "string"
 14683        new_path:
 14684          type: "string"
 14685        old_path:
 14686          type: "string"
 14687        a_mode:
 14688          type: "string"
 14689        b_mode:
 14690          type: "string"
 14691        new_file:
 14692          type: "boolean"
 14693        renamed_file:
 14694          type: "boolean"
 14695        deleted_file:
 14696          type: "boolean"
 14697        too_large:
 14698          type: "boolean"
 14699      description: "单个文件的patch信息"
 14700      example:
 14701        diff: "patch"
 14702        new_path: "repo/src-test.yaml"
 14703        old_path: "repo/src-test.yaml"
 14704        a_mode: "100644"
 14705        b_mode: "100644"
 14706        new_file: false
 14707        renamed_file: false
 14708        deleted_file: false
 14709        too_large: false
 14710    PullRequestFiles:
 14711      type: "object"
 14712      properties:
 14713        sha:
 14714          type: "string"
 14715        filename:
 14716          type: "string"
 14717        status:
 14718          type: "string"
 14719        additions:
 14720          type: "string"
 14721        deletions:
 14722          type: "string"
 14723        blob_url:
 14724          type: "string"
 14725        raw_url:
 14726          type: "string"
 14727        patch:
 14728          $ref: "#/definitions/PullRequestFilePath"
 14729      description: "Pull Request Commit文件列表。最多显示300条diff"
 14730      example:
 14731        patch: "patch"
 14732        filename: "filename"
 14733        additions: "additions"
 14734        deletions: "deletions"
 14735        sha: "sha"
 14736        blob_url: "blob_url"
 14737        raw_url: "raw_url"
 14738        status: "status"
 14739    Release:
 14740      type: "object"
 14741      properties:
 14742        id:
 14743          type: "integer"
 14744          format: "int32"
 14745        tag_name:
 14746          type: "string"
 14747        target_commitish:
 14748          type: "string"
 14749        prerelease:
 14750          type: "string"
 14751        name:
 14752          type: "string"
 14753        body:
 14754          type: "string"
 14755        author:
 14756          type: "string"
 14757        created_at:
 14758          type: "string"
 14759          format: "date-time"
 14760        assets:
 14761          type: "string"
 14762      description: "更新仓库Release"
 14763      example:
 14764        assets: "assets"
 14765        tag_name: "tag_name"
 14766        prerelease: "prerelease"
 14767        author: "author"
 14768        target_commitish: "target_commitish"
 14769        name: "name"
 14770        created_at: "2000-01-23T04:56:07.000+00:00"
 14771        id: 0
 14772        body: "body"
 14773    Hook:
 14774      type: "object"
 14775      properties:
 14776        id:
 14777          type: "string"
 14778        url:
 14779          type: "string"
 14780        created_at:
 14781          type: "string"
 14782        password:
 14783          type: "string"
 14784        project_id:
 14785          type: "string"
 14786        result:
 14787          type: "string"
 14788        result_code:
 14789          type: "string"
 14790        push_events:
 14791          type: "string"
 14792        tag_push_events:
 14793          type: "string"
 14794        issues_events:
 14795          type: "string"
 14796        note_events:
 14797          type: "string"
 14798        merge_requests_events:
 14799          type: "string"
 14800      description: "更新一个仓库WebHook"
 14801      example:
 14802        result: "result"
 14803        push_events: "push_events"
 14804        tag_push_events: "tag_push_events"
 14805        password: "password"
 14806        project_id: "project_id"
 14807        issues_events: "issues_events"
 14808        created_at: "created_at"
 14809        result_code: "result_code"
 14810        merge_requests_events: "merge_requests_events"
 14811        id: "id"
 14812        note_events: "note_events"
 14813        url: "url"
 14814    Event:
 14815      type: "object"
 14816      properties:
 14817        id:
 14818          type: "integer"
 14819          format: "int32"
 14820        type:
 14821          type: "string"
 14822        actor:
 14823          type: "string"
 14824        repo:
 14825          type: "string"
 14826        org:
 14827          type: "string"
 14828        public:
 14829          type: "string"
 14830        created_at:
 14831          type: "string"
 14832        payload:
 14833          type: "object"
 14834          description: "不同类型动态的内容"
 14835          properties: {}
 14836      description: "列出仓库的所有公开动态"
 14837      example:
 14838        actor: "actor"
 14839        public: "public"
 14840        org: "org"
 14841        payload: "{}"
 14842        repo: "repo"
 14843        created_at: "created_at"
 14844        id: 0
 14845        type: "type"
 14846    UserNotificationList:
 14847      type: "object"
 14848      properties:
 14849        total_count:
 14850          type: "integer"
 14851          format: "int32"
 14852        list:
 14853          type: "array"
 14854          description: "通知列表"
 14855          items:
 14856            $ref: "#/definitions/UserNotification"
 14857      description: "列出授权用户的所有通知"
 14858      example:
 14859        total_count: 0
 14860        list:
 14861        - actor:
 14862            gists_url: "gists_url"
 14863            repos_url: "repos_url"
 14864            following_url: "following_url"
 14865            starred_url: "starred_url"
 14866            login: "login"
 14867            followers_url: "followers_url"
 14868            type: "type"
 14869            url: "url"
 14870            subscriptions_url: "subscriptions_url"
 14871            received_events_url: "received_events_url"
 14872            avatar_url: "avatar_url"
 14873            events_url: "events_url"
 14874            html_url: "html_url"
 14875            name: "name"
 14876            site_admin: "site_admin"
 14877            id: 5
 14878            organizations_url: "organizations_url"
 14879          updated_at: "updated_at"
 14880          unread: "unread"
 14881          subject:
 14882            latest_comment_url: "latest_comment_url"
 14883            title: "title"
 14884            type: "type"
 14885            url: "url"
 14886          html_url: "html_url"
 14887          mute: "mute"
 14888          id: 6
 14889          type: "type"
 14890          repository:
 14891            owner: "owner"
 14892            human_name: "human_name"
 14893            private: "private"
 14894            internal: "internal"
 14895            ssh_url: "ssh_url"
 14896            description: "description"
 14897            url: "url"
 14898            path: "path"
 14899            fork: "fork"
 14900            full_name: "full_name"
 14901            public: "public"
 14902            html_url: "html_url"
 14903            namespace: "{}"
 14904            name: "name"
 14905            id: 1
 14906          content: "content"
 14907          url: "url"
 14908          namespaces:
 14909          - html_url: "html_url"
 14910            name: "name"
 14911            type: "type"
 14912          - html_url: "html_url"
 14913            name: "name"
 14914            type: "type"
 14915        - actor:
 14916            gists_url: "gists_url"
 14917            repos_url: "repos_url"
 14918            following_url: "following_url"
 14919            starred_url: "starred_url"
 14920            login: "login"
 14921            followers_url: "followers_url"
 14922            type: "type"
 14923            url: "url"
 14924            subscriptions_url: "subscriptions_url"
 14925            received_events_url: "received_events_url"
 14926            avatar_url: "avatar_url"
 14927            events_url: "events_url"
 14928            html_url: "html_url"
 14929            name: "name"
 14930            site_admin: "site_admin"
 14931            id: 5
 14932            organizations_url: "organizations_url"
 14933          updated_at: "updated_at"
 14934          unread: "unread"
 14935          subject:
 14936            latest_comment_url: "latest_comment_url"
 14937            title: "title"
 14938            type: "type"
 14939            url: "url"
 14940          html_url: "html_url"
 14941          mute: "mute"
 14942          id: 6
 14943          type: "type"
 14944          repository:
 14945            owner: "owner"
 14946            human_name: "human_name"
 14947            private: "private"
 14948            internal: "internal"
 14949            ssh_url: "ssh_url"
 14950            description: "description"
 14951            url: "url"
 14952            path: "path"
 14953            fork: "fork"
 14954            full_name: "full_name"
 14955            public: "public"
 14956            html_url: "html_url"
 14957            namespace: "{}"
 14958            name: "name"
 14959            id: 1
 14960          content: "content"
 14961          url: "url"
 14962          namespaces:
 14963          - html_url: "html_url"
 14964            name: "name"
 14965            type: "type"
 14966          - html_url: "html_url"
 14967            name: "name"
 14968            type: "type"
 14969    UserNotification:
 14970      type: "object"
 14971      properties:
 14972        id:
 14973          type: "integer"
 14974          format: "int32"
 14975        content:
 14976          type: "string"
 14977        type:
 14978          type: "string"
 14979        unread:
 14980          type: "string"
 14981        mute:
 14982          type: "string"
 14983        updated_at:
 14984          type: "string"
 14985        url:
 14986          type: "string"
 14987        html_url:
 14988          type: "string"
 14989        actor:
 14990          description: "通知发送者"
 14991          $ref: "#/definitions/UserBasic"
 14992        repository:
 14993          $ref: "#/definitions/ProjectBasic"
 14994        subject:
 14995          description: "通知直接关联对象"
 14996          $ref: "#/definitions/UserNotificationSubject"
 14997        namespaces:
 14998          type: "array"
 14999          description: "通知次级关联对象"
 15000          items:
 15001            $ref: "#/definitions/UserNotificationNamespace"
 15002      description: "获取一条通知"
 15003      example:
 15004        actor:
 15005          gists_url: "gists_url"
 15006          repos_url: "repos_url"
 15007          following_url: "following_url"
 15008          starred_url: "starred_url"
 15009          login: "login"
 15010          followers_url: "followers_url"
 15011          type: "type"
 15012          url: "url"
 15013          subscriptions_url: "subscriptions_url"
 15014          received_events_url: "received_events_url"
 15015          avatar_url: "avatar_url"
 15016          events_url: "events_url"
 15017          html_url: "html_url"
 15018          name: "name"
 15019          site_admin: "site_admin"
 15020          id: 5
 15021          organizations_url: "organizations_url"
 15022        updated_at: "updated_at"
 15023        unread: "unread"
 15024        subject:
 15025          latest_comment_url: "latest_comment_url"
 15026          title: "title"
 15027          type: "type"
 15028          url: "url"
 15029        html_url: "html_url"
 15030        mute: "mute"
 15031        id: 6
 15032        type: "type"
 15033        repository:
 15034          owner: "owner"
 15035          human_name: "human_name"
 15036          private: "private"
 15037          internal: "internal"
 15038          ssh_url: "ssh_url"
 15039          description: "description"
 15040          url: "url"
 15041          path: "path"
 15042          fork: "fork"
 15043          full_name: "full_name"
 15044          public: "public"
 15045          html_url: "html_url"
 15046          namespace: "{}"
 15047          name: "name"
 15048          id: 1
 15049        content: "content"
 15050        url: "url"
 15051        namespaces:
 15052        - html_url: "html_url"
 15053          name: "name"
 15054          type: "type"
 15055        - html_url: "html_url"
 15056          name: "name"
 15057          type: "type"
 15058    ProjectBasic:
 15059      type: "object"
 15060      properties:
 15061        id:
 15062          type: "integer"
 15063          format: "int32"
 15064        full_name:
 15065          type: "string"
 15066        human_name:
 15067          type: "string"
 15068        url:
 15069          type: "string"
 15070        namespace:
 15071          type: "object"
 15072          properties: {}
 15073        path:
 15074          type: "string"
 15075        name:
 15076          type: "string"
 15077        owner:
 15078          $ref: "#/definitions/UserBasic"
 15079        description:
 15080          type: "string"
 15081        private:
 15082          type: "boolean"
 15083        public:
 15084          type: "boolean"
 15085        internal:
 15086          type: "boolean"
 15087        fork:
 15088          type: "boolean"
 15089        html_url:
 15090          type: "string"
 15091        ssh_url:
 15092          type: "string"
 15093      example:
 15094        owner: "owner"
 15095        human_name: "human_name"
 15096        private: "private"
 15097        internal: "internal"
 15098        ssh_url: "ssh_url"
 15099        description: "description"
 15100        url: "url"
 15101        path: "path"
 15102        fork: "fork"
 15103        full_name: "full_name"
 15104        public: "public"
 15105        html_url: "html_url"
 15106        namespace: "{}"
 15107        name: "name"
 15108        id: 1
 15109    UserNotificationSubject:
 15110      type: "object"
 15111      properties:
 15112        title:
 15113          type: "string"
 15114        url:
 15115          type: "string"
 15116        latest_comment_url:
 15117          type: "string"
 15118        type:
 15119          type: "string"
 15120      example:
 15121        latest_comment_url: "latest_comment_url"
 15122        title: "title"
 15123        type: "type"
 15124        url: "url"
 15125    UserNotificationNamespace:
 15126      type: "object"
 15127      properties:
 15128        name:
 15129          type: "string"
 15130        html_url:
 15131          type: "string"
 15132        type:
 15133          type: "string"
 15134      example:
 15135        html_url: "html_url"
 15136        name: "name"
 15137        type: "type"
 15138    Group:
 15139      type: "object"
 15140      properties:
 15141        id:
 15142          type: "integer"
 15143          format: "int32"
 15144        login:
 15145          type: "string"
 15146        url:
 15147          type: "string"
 15148        avatar_url:
 15149          type: "string"
 15150        repos_url:
 15151          type: "string"
 15152        events_url:
 15153          type: "string"
 15154        members_url:
 15155          type: "string"
 15156        description:
 15157          type: "string"
 15158      description: "获取一个组织"
 15159      example:
 15160        avatar_url: "avatar_url"
 15161        repos_url: "repos_url"
 15162        events_url: "events_url"
 15163        members_url: "members_url"
 15164        description: "description"
 15165        id: 0
 15166        login: "login"
 15167        url: "url"
 15168    User:
 15169      type: "object"
 15170      properties:
 15171        id:
 15172          type: "integer"
 15173          format: "int32"
 15174        login:
 15175          type: "string"
 15176        name:
 15177          type: "string"
 15178        avatar_url:
 15179          type: "string"
 15180        url:
 15181          type: "string"
 15182        html_url:
 15183          type: "string"
 15184        followers_url:
 15185          type: "string"
 15186        following_url:
 15187          type: "string"
 15188        gists_url:
 15189          type: "string"
 15190        starred_url:
 15191          type: "string"
 15192        subscriptions_url:
 15193          type: "string"
 15194        organizations_url:
 15195          type: "string"
 15196        repos_url:
 15197          type: "string"
 15198        events_url:
 15199          type: "string"
 15200        received_events_url:
 15201          type: "string"
 15202        type:
 15203          type: "string"
 15204        site_admin:
 15205          type: "boolean"
 15206        blog:
 15207          type: "string"
 15208        weibo:
 15209          type: "string"
 15210        bio:
 15211          type: "string"
 15212        public_repos:
 15213          type: "string"
 15214        public_gists:
 15215          type: "string"
 15216        followers:
 15217          type: "string"
 15218        following:
 15219          type: "string"
 15220        stared:
 15221          type: "string"
 15222        watched:
 15223          type: "string"
 15224        created_at:
 15225          type: "string"
 15226        updated_at:
 15227          type: "string"
 15228        email:
 15229          type: "string"
 15230      description: "搜索用户"
 15231      example:
 15232        gists_url: "gists_url"
 15233        repos_url: "repos_url"
 15234        following_url: "following_url"
 15235        bio: "bio"
 15236        created_at: "created_at"
 15237        login: "login"
 15238        type: "type"
 15239        blog: "blog"
 15240        subscriptions_url: "subscriptions_url"
 15241        weibo: "weibo"
 15242        updated_at: "updated_at"
 15243        site_admin: "site_admin"
 15244        id: 0
 15245        public_repos: "public_repos"
 15246        organizations_url: "organizations_url"
 15247        starred_url: "starred_url"
 15248        followers_url: "followers_url"
 15249        public_gists: "public_gists"
 15250        url: "url"
 15251        received_events_url: "received_events_url"
 15252        watched: "watched"
 15253        followers: "followers"
 15254        avatar_url: "avatar_url"
 15255        events_url: "events_url"
 15256        html_url: "html_url"
 15257        following: "following"
 15258        name: "name"
 15259        stared: "stared"
 15260    Namespace:
 15261      type: "object"
 15262      properties:
 15263        id:
 15264          type: "integer"
 15265          format: "int32"
 15266        type:
 15267          type: "string"
 15268        name:
 15269          type: "string"
 15270        path:
 15271          type: "string"
 15272        html_url:
 15273          type: "string"
 15274        parent:
 15275          $ref: "#/definitions/NamespaceMini"
 15276      description: "获取授权用户的一个 Namespace"
 15277      example:
 15278        path: "path"
 15279        parent:
 15280          path: "path"
 15281          html_url: "html_url"
 15282          name: "name"
 15283          id: 6
 15284          type: "type"
 15285        html_url: "html_url"
 15286        name: "name"
 15287        id: 0
 15288        type: "type"
 15289    NamespaceMini:
 15290      type: "object"
 15291      properties:
 15292        id:
 15293          type: "integer"
 15294          format: "int32"
 15295        type:
 15296          type: "string"
 15297        name:
 15298          type: "string"
 15299        path:
 15300          type: "string"
 15301        html_url:
 15302          type: "string"
 15303      example:
 15304        path: "path"
 15305        html_url: "html_url"
 15306        name: "name"
 15307        id: 6
 15308        type: "type"
 15309    EnterpriseBasic:
 15310      type: "object"
 15311      properties:
 15312        id:
 15313          type: "integer"
 15314          format: "int32"
 15315        path:
 15316          type: "string"
 15317        name:
 15318          type: "string"
 15319        url:
 15320          type: "string"
 15321        avatar_url:
 15322          type: "string"
 15323      description: "获取一个企业"
 15324      example:
 15325        path: "path"
 15326        avatar_url: "avatar_url"
 15327        name: "name"
 15328        id: 0
 15329        url: "url"
 15330    GroupMember:
 15331      type: "object"
 15332      properties:
 15333        url:
 15334          type: "string"
 15335        active:
 15336          type: "string"
 15337        remark:
 15338          type: "string"
 15339        role:
 15340          type: "string"
 15341        organization_url:
 15342          type: "string"
 15343        organization:
 15344          $ref: "#/definitions/Group"
 15345        user:
 15346          type: "string"
 15347      description: "增加或更新授权用户所管理组织的成员"
 15348      example:
 15349        organization_url: "organization_url"
 15350        role: "role"
 15351        organization:
 15352          avatar_url: "avatar_url"
 15353          repos_url: "repos_url"
 15354          events_url: "events_url"
 15355          members_url: "members_url"
 15356          description: "description"
 15357          id: 0
 15358          login: "login"
 15359          url: "url"
 15360        active: "active"
 15361        remark: "remark"
 15362        user: "user"
 15363        url: "url"
 15364    Code:
 15365      type: "object"
 15366      properties:
 15367        url:
 15368          type: "string"
 15369        forks_url:
 15370          type: "string"
 15371        commits_url:
 15372          type: "string"
 15373        id:
 15374          type: "string"
 15375        description:
 15376          type: "string"
 15377        public:
 15378          type: "string"
 15379        owner:
 15380          type: "string"
 15381        user:
 15382          type: "string"
 15383        files:
 15384          type: "string"
 15385        truncated:
 15386          type: "string"
 15387        html_url:
 15388          type: "string"
 15389        comments:
 15390          type: "string"
 15391        comments_url:
 15392          type: "string"
 15393        git_pull_url:
 15394          type: "string"
 15395        git_push_url:
 15396          type: "string"
 15397        created_at:
 15398          type: "string"
 15399        updated_at:
 15400          type: "string"
 15401      description: "搜索代码片段"
 15402      example:
 15403        owner: "owner"
 15404        commits_url: "commits_url"
 15405        comments: "comments"
 15406        forks_url: "forks_url"
 15407        git_push_url: "git_push_url"
 15408        description: "description"
 15409        truncated: "truncated"
 15410        created_at: "created_at"
 15411        url: "url"
 15412        public: "public"
 15413        updated_at: "updated_at"
 15414        html_url: "html_url"
 15415        comments_url: "comments_url"
 15416        git_pull_url: "git_pull_url"
 15417        files: "files"
 15418        id: "id"
 15419        user: "user"
 15420    CodeForksHistory:
 15421      type: "object"
 15422      properties:
 15423        url:
 15424          type: "string"
 15425        forks_url:
 15426          type: "string"
 15427        commits_url:
 15428          type: "string"
 15429        id:
 15430          type: "string"
 15431        description:
 15432          type: "string"
 15433        public:
 15434          type: "string"
 15435        owner:
 15436          type: "string"
 15437        user:
 15438          type: "string"
 15439        files:
 15440          type: "string"
 15441        truncated:
 15442          type: "string"
 15443        html_url:
 15444          type: "string"
 15445        comments:
 15446          type: "string"
 15447        comments_url:
 15448          type: "string"
 15449        git_pull_url:
 15450          type: "string"
 15451        git_push_url:
 15452          type: "string"
 15453        created_at:
 15454          type: "string"
 15455        updated_at:
 15456          type: "string"
 15457        forks:
 15458          type: "string"
 15459        history:
 15460          type: "string"
 15461      description: "获取代码片段的commit"
 15462      example:
 15463        owner: "owner"
 15464        forks: "forks"
 15465        commits_url: "commits_url"
 15466        comments: "comments"
 15467        forks_url: "forks_url"
 15468        git_push_url: "git_push_url"
 15469        description: "description"
 15470        truncated: "truncated"
 15471        created_at: "created_at"
 15472        history: "history"
 15473        url: "url"
 15474        public: "public"
 15475        updated_at: "updated_at"
 15476        html_url: "html_url"
 15477        comments_url: "comments_url"
 15478        git_pull_url: "git_pull_url"
 15479        files: "files"
 15480        id: "id"
 15481        user: "user"
 15482    CodeComment:
 15483      type: "object"
 15484      properties:
 15485        id:
 15486          type: "string"
 15487        body:
 15488          type: "string"
 15489        created_at:
 15490          type: "string"
 15491        updated_at:
 15492          type: "string"
 15493      description: "修改代码片段的评论"
 15494      example:
 15495        updated_at: "updated_at"
 15496        created_at: "created_at"
 15497        id: "id"
 15498        body: "body"
 15499    CodeForks:
 15500      type: "object"
 15501      properties:
 15502        user:
 15503          type: "string"
 15504        url:
 15505          type: "string"
 15506        id:
 15507          type: "string"
 15508        created_at:
 15509          type: "string"
 15510        updated_at:
 15511          type: "string"
 15512      description: "获取 Fork 了指定代码片段的列表"
 15513      example:
 15514        updated_at: "updated_at"
 15515        created_at: "created_at"
 15516        id: "id"
 15517        user: "user"
 15518        url: "url"
 15519    GroupDetail:
 15520      type: "object"
 15521      properties:
 15522        id:
 15523          type: "integer"
 15524          format: "int32"
 15525        login:
 15526          type: "string"
 15527        url:
 15528          type: "string"
 15529        avatar_url:
 15530          type: "string"
 15531        repos_url:
 15532          type: "string"
 15533        events_url:
 15534          type: "string"
 15535        members_url:
 15536          type: "string"
 15537        description:
 15538          type: "string"
 15539        name:
 15540          type: "string"
 15541        created_at:
 15542          type: "string"
 15543        type:
 15544          type: "string"
 15545        location:
 15546          type: "string"
 15547        email:
 15548          type: "string"
 15549        html_url:
 15550          type: "string"
 15551        public:
 15552          type: "string"
 15553        enterprise:
 15554          type: "string"
 15555        members:
 15556          type: "string"
 15557        public_repos:
 15558          type: "string"
 15559        private_repos:
 15560          type: "string"
 15561        owner:
 15562          type: "string"
 15563      description: "更新授权用户所管理的组织资料"
 15564      example:
 15565        owner: "owner"
 15566        repos_url: "repos_url"
 15567        members_url: "members_url"
 15568        enterprise: "enterprise"
 15569        description: "description"
 15570        created_at: "created_at"
 15571        login: "login"
 15572        type: "type"
 15573        url: "url"
 15574        private_repos: "private_repos"
 15575        avatar_url: "avatar_url"
 15576        public: "public"
 15577        events_url: "events_url"
 15578        html_url: "html_url"
 15579        members: "members"
 15580        name: "name"
 15581        location: "location"
 15582        id: 0
 15583        public_repos: "public_repos"
 15584        email: "email"
 15585    EnterpriseMember:
 15586      type: "object"
 15587      properties:
 15588        url:
 15589          type: "string"
 15590        active:
 15591          type: "string"
 15592        remark:
 15593          type: "string"
 15594        role:
 15595          type: "string"
 15596        outsourced:
 15597          type: "string"
 15598        enterprise:
 15599          $ref: "#/definitions/EnterpriseBasic"
 15600        user:
 15601          type: "string"
 15602      description: "修改企业成员权限或备注"
 15603      example:
 15604        role: "role"
 15605        enterprise:
 15606          path: "path"
 15607          avatar_url: "avatar_url"
 15608          name: "name"
 15609          id: 0
 15610          url: "url"
 15611        outsourced: "outsourced"
 15612        active: "active"
 15613        remark: "remark"
 15614        user: "user"
 15615        url: "url"
 15616    WeekReport:
 15617      type: "object"
 15618      properties:
 15619        id:
 15620          type: "integer"
 15621          format: "int32"
 15622        content:
 15623          type: "string"
 15624        content_html:
 15625          type: "string"
 15626        year:
 15627          type: "string"
 15628        month:
 15629          type: "string"
 15630        week_index:
 15631          type: "string"
 15632        week_begin:
 15633          type: "string"
 15634        week_end:
 15635          type: "string"
 15636        created_at:
 15637          type: "string"
 15638        updated_at:
 15639          type: "string"
 15640        user:
 15641          $ref: "#/definitions/UserMini"
 15642      description: "新建周报"
 15643      example:
 15644        month: "month"
 15645        updated_at: "updated_at"
 15646        year: "year"
 15647        created_at: "created_at"
 15648        id: 0
 15649        week_index: "week_index"
 15650        week_begin: "week_begin"
 15651        week_end: "week_end"
 15652        user:
 15653          avatar_url: "avatar_url"
 15654          html_url: "html_url"
 15655          name: "name"
 15656          id: 6
 15657          login: "login"
 15658          url: "url"
 15659        content: "content"
 15660        content_html: "content_html"
 15661    UserMini:
 15662      type: "object"
 15663      properties:
 15664        id:
 15665          type: "integer"
 15666          format: "int32"
 15667        login:
 15668          type: "string"
 15669        name:
 15670          type: "string"
 15671        avatar_url:
 15672          type: "string"
 15673        url:
 15674          type: "string"
 15675        html_url:
 15676          type: "string"
 15677      example:
 15678        avatar_url: "avatar_url"
 15679        html_url: "html_url"
 15680        name: "name"
 15681        id: 6
 15682        login: "login"
 15683        url: "url"
 15684    UserNotificationCount:
 15685      type: "object"
 15686      properties:
 15687        total_count:
 15688          type: "integer"
 15689          format: "int32"
 15690          description: "通知总数"
 15691        notification_count:
 15692          type: "integer"
 15693          format: "int32"
 15694          description: "通知数量"
 15695        message_count:
 15696          type: "integer"
 15697          format: "int32"
 15698          description: "私信数量"
 15699      description: "获取授权用户的通知数"
 15700      example:
 15701        total_count: 0
 15702        notification_count: 6
 15703        message_count: 1
 15704    UserMessageList:
 15705      type: "object"
 15706      properties:
 15707        total_count:
 15708          type: "integer"
 15709          format: "int32"
 15710        list:
 15711          type: "array"
 15712          description: "私信列表"
 15713          items:
 15714            $ref: "#/definitions/UserMessage"
 15715      description: "列出授权用户的所有私信"
 15716      example:
 15717        total_count: 0
 15718        list:
 15719        - updated_at: "updated_at"
 15720          sender:
 15721            gists_url: "gists_url"
 15722            repos_url: "repos_url"
 15723            following_url: "following_url"
 15724            starred_url: "starred_url"
 15725            login: "login"
 15726            followers_url: "followers_url"
 15727            type: "type"
 15728            url: "url"
 15729            subscriptions_url: "subscriptions_url"
 15730            received_events_url: "received_events_url"
 15731            avatar_url: "avatar_url"
 15732            events_url: "events_url"
 15733            html_url: "html_url"
 15734            name: "name"
 15735            site_admin: "site_admin"
 15736            id: 5
 15737            organizations_url: "organizations_url"
 15738          unread: "unread"
 15739          html_url: "html_url"
 15740          id: 6
 15741          content: "content"
 15742          url: "url"
 15743        - updated_at: "updated_at"
 15744          sender:
 15745            gists_url: "gists_url"
 15746            repos_url: "repos_url"
 15747            following_url: "following_url"
 15748            starred_url: "starred_url"
 15749            login: "login"
 15750            followers_url: "followers_url"
 15751            type: "type"
 15752            url: "url"
 15753            subscriptions_url: "subscriptions_url"
 15754            received_events_url: "received_events_url"
 15755            avatar_url: "avatar_url"
 15756            events_url: "events_url"
 15757            html_url: "html_url"
 15758            name: "name"
 15759            site_admin: "site_admin"
 15760            id: 5
 15761            organizations_url: "organizations_url"
 15762          unread: "unread"
 15763          html_url: "html_url"
 15764          id: 6
 15765          content: "content"
 15766          url: "url"
 15767    UserMessage:
 15768      type: "object"
 15769      properties:
 15770        id:
 15771          type: "integer"
 15772          format: "int32"
 15773        sender:
 15774          description: "发送者"
 15775          $ref: "#/definitions/UserBasic"
 15776        unread:
 15777          type: "string"
 15778        content:
 15779          type: "string"
 15780        updated_at:
 15781          type: "string"
 15782        url:
 15783          type: "string"
 15784        html_url:
 15785          type: "string"
 15786      description: "获取一条私信"
 15787      example:
 15788        updated_at: "updated_at"
 15789        sender:
 15790          gists_url: "gists_url"
 15791          repos_url: "repos_url"
 15792          following_url: "following_url"
 15793          starred_url: "starred_url"
 15794          login: "login"
 15795          followers_url: "followers_url"
 15796          type: "type"
 15797          url: "url"
 15798          subscriptions_url: "subscriptions_url"
 15799          received_events_url: "received_events_url"
 15800          avatar_url: "avatar_url"
 15801          events_url: "events_url"
 15802          html_url: "html_url"
 15803          name: "name"
 15804          site_admin: "site_admin"
 15805          id: 5
 15806          organizations_url: "organizations_url"
 15807        unread: "unread"
 15808        html_url: "html_url"
 15809        id: 6
 15810        content: "content"
 15811        url: "url"
 15812    BasicInfo:
 15813      type: "object"
 15814      properties:
 15815        label:
 15816          type: "string"
 15817        ref:
 15818          type: "string"
 15819        sha:
 15820          type: "string"
 15821        user:
 15822          $ref: "#/definitions/UserBasic"
 15823        repo:
 15824          $ref: "#/definitions/Project"
 15825      description: "basic information"
 15826    PullRequestUpdateParam:
 15827      type: "object"
 15828      properties:
 15829        access_token:
 15830          type: "string"
 15831          description: "用户授权码"
 15832          x-exportParamName: "AccessToken"
 15833          x-optionalDataType: "String"
 15834        title:
 15835          type: "string"
 15836          description: "可选。Pull Request 标题"
 15837          x-exportParamName: "Title"
 15838          x-optionalDataType: "String"
 15839        body:
 15840          type: "string"
 15841          description: "可选。Pull Request 内容"
 15842          x-exportParamName: "Body"
 15843          x-optionalDataType: "String"
 15844        state:
 15845          type: "string"
 15846          description: "可选。Pull Request 状态"
 15847          enum:
 15848          - "open"
 15849          - "closed"
 15850          x-exportParamName: "State"
 15851          x-optionalDataType: "String"
 15852        milestone_number:
 15853          type: "integer"
 15854          format: "int32"
 15855          description: "可选。里程碑序号(id)"
 15856          x-exportParamName: "MilestoneNumber"
 15857          x-optionalDataType: "Int32"
 15858        labels:
 15859          type: "string"
 15860          description: "用逗号分开的标签,名称要求长度在 2-20 之间且非特殊字符。如: bug,performance"
 15861          x-exportParamName: "Labels"
 15862          x-optionalDataType: "String"
 15863        assignees_number:
 15864          type: "integer"
 15865          format: "int32"
 15866          description: "最少审查人数"
 15867          x-exportParamName: "AssigneesNumber"
 15868          x-optionalDataType: "Int32"
 15869        testers_number:
 15870          type: "integer"
 15871          format: "int32"
 15872          description: "最少测试人员"
 15873          x-exportParamName: "TestersNumber"
 15874          x-optionalDataType: "Int32"
 15875      description: "update pull request information"
 15876      example:
 15877        access_token: "access_token"
 15878        milestone_number: 0
 15879        state: "open"
 15880        title: "title"
 15881        body: "body"
 15882        labels: "labels"
 15883    IssueUpdateParam:
 15884      type: "object"
 15885      properties:
 15886        access_token:
 15887          type: "string"
 15888          description: "用户授权码"
 15889          x-exportParamName: "AccessToken"
 15890          x-optionalDataType: "String"
 15891        repo:
 15892          type: "string"
 15893          description: "仓库路径(path)"
 15894          x-exportParamName: "Repo"
 15895          x-optionalDataType: "String"
 15896        title:
 15897          type: "string"
 15898          description: "Issue标题"
 15899          x-exportParamName: "Title"
 15900          x-optionalDataType: "String"
 15901        state:
 15902          type: "string"
 15903          description: "Issue 状态,open(开启的)、progressing(进行中)、closed(关闭的)"
 15904          enum:
 15905          - "open"
 15906          - "progressing"
 15907          - "closed"
 15908          x-exportParamName: "State"
 15909          x-optionalDataType: "String"
 15910        body:
 15911          type: "string"
 15912          description: "Issue描述"
 15913          x-exportParamName: "Body"
 15914          x-optionalDataType: "String"
 15915        assignee:
 15916          type: "string"
 15917          description: "Issue负责人的username"
 15918          x-exportParamName: "Assignee"
 15919          x-optionalDataType: "String"
 15920        milestone:
 15921          type: "integer"
 15922          format: "int32"
 15923          description: "里程碑序号"
 15924          x-exportParamName: "Milestone"
 15925          x-optionalDataType: "Int32"
 15926        labels:
 15927          type: "string"
 15928          description: "用逗号分开的标签,名称要求长度在 2-20 之间且非特殊字符。如: bug,performance"
 15929          x-exportParamName: "Labels"
 15930          x-optionalDataType: "String"
 15931        program:
 15932          type: "string"
 15933          description: "项目ID"
 15934          x-exportParamName: "Program"
 15935          x-optionalDataType: "String"
 15936        collaborators:
 15937          type: "string"
 15938          description: "Issue协助者的个人空间地址, 以 , 分隔"
 15939          x-exportParamName: "Collaborators"
 15940          x-optionalDataType: "String"
 15941      description: "update issue information"
 15942      example:
 15943        access_token: "access_token"
 15944        milestone: 0
 15945        repo: "repo"
 15946        state: "open"
 15947        assignee: "assignee"
 15948        program: "program"
 15949        title: "title"
 15950        body: "body"
 15951        labels: "labels"
 15952    RepositoryPostParam:
 15953      type: "object"
 15954      properties:
 15955        access_token:
 15956          type: "string"
 15957          description: "用户授权码"
 15958          x-exportParamName: "AccessToken"
 15959          x-optionalDataType: "String"
 15960        name:
 15961          type: "string"
 15962          description: "仓库名称"
 15963          x-exportParamName: "Name"
 15964        description:
 15965          type: "string"
 15966          description: "仓库描述"
 15967          x-exportParamName: "Description"
 15968          x-optionalDataType: "String"
 15969        homepage:
 15970          type: "string"
 15971          description: "主页(eg: https://gitee.com)"
 15972          x-exportParamName: "Homepage"
 15973          x-optionalDataType: "String"
 15974        has_issues:
 15975          type: "boolean"
 15976          description: "允许提Issue与否。默认: 允许(true)"
 15977          default: true
 15978          x-exportParamName: "HasIssues"
 15979          x-optionalDataType: "Bool"
 15980        has_wiki:
 15981          type: "boolean"
 15982          description: "提供Wiki与否。默认: 提供(true)"
 15983          default: true
 15984          x-exportParamName: "HasWiki"
 15985          x-optionalDataType: "Bool"
 15986        can_comment:
 15987          type: "boolean"
 15988          description: "允许用户对仓库进行评论。默认: 允许(true)"
 15989          default: true
 15990          x-exportParamName: "CanComment"
 15991          x-optionalDataType: "Bool"
 15992        public:
 15993          type: "integer"
 15994          format: "int32"
 15995          description: "仓库开源类型。0(私有), 1(外部开源), 2(内部开源),注:与private互斥,以public为主。"
 15996          enum:
 15997          - 0
 15998          - 1
 15999          - 2
 16000          x-exportParamName: "Public"
 16001          x-optionalDataType: "Int32"
 16002        private:
 16003          type: "boolean"
 16004          description: "仓库公开或私有。默认: 公开(false),注:与public互斥,以public为主。"
 16005          x-exportParamName: "Private"
 16006          x-optionalDataType: "Bool"
 16007        auto_init:
 16008          type: "boolean"
 16009          description: "值为true时则会用README初始化仓库。默认: 不初始化(false)"
 16010          x-exportParamName: "AutoInit"
 16011          x-optionalDataType: "Bool"
 16012        gitignore_template:
 16013          type: "string"
 16014          description: "Git Ingore模版"
 16015          enum:
 16016          - "Actionscript"
 16017          - "Ada"
 16018          - "Agda"
 16019          - "Android"
 16020          - "AppEngine"
 16021          - "AppceleratorTitanium"
 16022          - "ArchLinuxPackages"
 16023          - "Autotools"
 16024          - "C"
 16025          - "C++"
 16026          - "CFWheels"
 16027          - "CMake"
 16028          - "CUDA"
 16029          - "CakePHP"
 16030          - "ChefCookbook"
 16031          - "Clojure"
 16032          - "CodeIgniter"
 16033          - "CommonLisp"
 16034          - "Composer"
 16035          - "Concrete5"
 16036          - "Coq"
 16037          - "CraftCMS"
 16038          - "D"
 16039          - "DM"
 16040          - "Dart"
 16041          - "Delphi"
 16042          - "Drupal"
 16043          - "EPiServer"
 16044          - "Eagle"
 16045          - "Elisp"
 16046          - "Elixir"
 16047          - "Elm"
 16048          - "Erlang"
 16049          - "ExpressionEngine"
 16050          - "ExtJs"
 16051          - "Fancy"
 16052          - "Finale"
 16053          - "Flutter"
 16054          - "ForceDotCom"
 16055          - "Fortran"
 16056          - "FuelPHP"
 16057          - "GWT"
 16058          - "Gcov"
 16059          - "GitBook"
 16060          - "Global/Anjuta"
 16061          - "Global/Ansible"
 16062          - "Global/Archives"
 16063          - "Global/Backup"
 16064          - "Global/Bazaar"
 16065          - "Global/BricxCC"
 16066          - "Global/CVS"
 16067          - "Global/Calabash"
 16068          - "Global/Cloud9"
 16069          - "Global/CodeKit"
 16070          - "Global/DartEditor"
 16071          - "Global/Diff"
 16072          - "Global/Dreamweaver"
 16073          - "Global/Dropbox"
 16074          - "Global/Eclipse"
 16075          - "Global/EiffelStudio"
 16076          - "Global/Emacs"
 16077          - "Global/Ensime"
 16078          - "Global/Espresso"
 16079          - "Global/FlexBuilder"
 16080          - "Global/GPG"
 16081          - "Global/Images"
 16082          - "Global/JDeveloper"
 16083          - "Global/JEnv"
 16084          - "Global/JetBrains"
 16085          - "Global/KDevelop4"
 16086          - "Global/Kate"
 16087          - "Global/Lazarus"
 16088          - "Global/LibreOffice"
 16089          - "Global/Linux"
 16090          - "Global/LyX"
 16091          - "Global/MATLAB"
 16092          - "Global/Mercurial"
 16093          - "Global/MicrosoftOffice"
 16094          - "Global/ModelSim"
 16095          - "Global/Momentics"
 16096          - "Global/MonoDevelop"
 16097          - "Global/NetBeans"
 16098          - "Global/Ninja"
 16099          - "Global/NotepadPP"
 16100          - "Global/Octave"
 16101          - "Global/Otto"
 16102          - "Global/PSoCCreator"
 16103          - "Global/Patch"
 16104          - "Global/PuTTY"
 16105          - "Global/Redcar"
 16106          - "Global/Redis"
 16107          - "Global/SBT"
 16108          - "Global/SVN"
 16109          - "Global/SlickEdit"
 16110          - "Global/Stata"
 16111          - "Global/SublimeText"
 16112          - "Global/SynopsysVCS"
 16113          - "Global/Tags"
 16114          - "Global/TextMate"
 16115          - "Global/TortoiseGit"
 16116          - "Global/Vagrant"
 16117          - "Global/Vim"
 16118          - "Global/VirtualEnv"
 16119          - "Global/Virtuoso"
 16120          - "Global/VisualStudioCode"
 16121          - "Global/WebMethods"
 16122          - "Global/Windows"
 16123          - "Global/Xcode"
 16124          - "Global/XilinxISE"
 16125          - "Global/macOS"
 16126          - "Go"
 16127          - "Godot"
 16128          - "Gradle"
 16129          - "Grails"
 16130          - "Haskell"
 16131          - "IGORPro"
 16132          - "Idris"
 16133          - "JBoss"
 16134          - "Java"
 16135          - "Jekyll"
 16136          - "Joomla"
 16137          - "Julia"
 16138          - "KiCad"
 16139          - "Kohana"
 16140          - "Kotlin"
 16141          - "LabVIEW"
 16142          - "Laravel"
 16143          - "Leiningen"
 16144          - "LemonStand"
 16145          - "Lilypond"
 16146          - "Lithium"
 16147          - "Lua"
 16148          - "Magento"
 16149          - "Maven"
 16150          - "Mercury"
 16151          - "MetaProgrammingSystem"
 16152          - "MiniProgram"
 16153          - "Nanoc"
 16154          - "Nim"
 16155          - "Node"
 16156          - "OCaml"
 16157          - "Objective-C"
 16158          - "Opa"
 16159          - "OpenCart"
 16160          - "OracleForms"
 16161          - "Packer"
 16162          - "Perl"
 16163          - "Perl6"
 16164          - "Phalcon"
 16165          - "PlayFramework"
 16166          - "Plone"
 16167          - "Prestashop"
 16168          - "Processing"
 16169          - "PureScript"
 16170          - "Python"
 16171          - "Qooxdoo"
 16172          - "Qt"
 16173          - "R"
 16174          - "ROS"
 16175          - "Rails"
 16176          - "RhodesRhomobile"
 16177          - "Ruby"
 16178          - "Rust"
 16179          - "SCons"
 16180          - "Sass"
 16181          - "Scala"
 16182          - "Scheme"
 16183          - "Scrivener"
 16184          - "Sdcc"
 16185          - "SeamGen"
 16186          - "SketchUp"
 16187          - "Smalltalk"
 16188          - "Stella"
 16189          - "SugarCRM"
 16190          - "Swift"
 16191          - "Symfony"
 16192          - "SymphonyCMS"
 16193          - "TeX"
 16194          - "Terraform"
 16195          - "Textpattern"
 16196          - "TurboGears2"
 16197          - "Typo3"
 16198          - "Umbraco"
 16199          - "Unity"
 16200          - "UnrealEngine"
 16201          - "VVVV"
 16202          - "VisualStudio"
 16203          - "Waf"
 16204          - "WordPress"
 16205          - "Xojo"
 16206          - "Yeoman"
 16207          - "Yii"
 16208          - "ZendFramework"
 16209          - "Zephir"
 16210          x-exportParamName: "GitignoreTemplate"
 16211          x-optionalDataType: "String"
 16212        license_template:
 16213          type: "string"
 16214          description: "License模版"
 16215          enum:
 16216          - "MulanPSL-1.0"
 16217          - "AFL-3.0"
 16218          - "AGPL-3.0"
 16219          - "Apache-2.0"
 16220          - "Artistic-2.0"
 16221          - "BSD-2-Clause"
 16222          - "BSD-3-Clause"
 16223          - "BSD-3-Clause-Clear"
 16224          - "BSL-1.0"
 16225          - "CC-BY-4.0"
 16226          - "CC-BY-SA-4.0"
 16227          - "CC0-1.0"
 16228          - "ECL-2.0"
 16229          - "EPL-1.0"
 16230          - "EUPL-1.1"
 16231          - "GPL-2.0"
 16232          - "GPL-3.0"
 16233          - "ISC"
 16234          - "LGPL-2.1"
 16235          - "LGPL-3.0"
 16236          - "LPPL-1.3c"
 16237          - "MIT"
 16238          - "MPL-2.0"
 16239          - "MS-PL"
 16240          - "MS-RL"
 16241          - "NCSA"
 16242          - "OFL-1.1"
 16243          - "OSL-3.0"
 16244          - "PostgreSQL"
 16245          - "Unlicense"
 16246          - "WTFPL"
 16247          - "Zlib"
 16248          x-exportParamName: "LicenseTemplate"
 16249          x-optionalDataType: "String"
 16250      description: "create repository"
 16251      example:
 16252        access_token: "access_token"
 16253        auto_init: true
 16254        gitignore_template: "Actionscript"
 16255        license_template: "MulanPSL-1.0"
 16256        private: true
 16257        has_wiki: true
 16258        public: 0
 16259        name: "name"
 16260        description: "description"
 16261        has_issues: true
 16262        homepage: "homepage"
 16263    ProjectMemberPutParam:
 16264      type: "object"
 16265      properties:
 16266        access_token:
 16267          type: "string"
 16268          description: "用户授权码"
 16269          x-exportParamName: "AccessToken"
 16270          x-optionalDataType: "String"
 16271        permission:
 16272          type: "string"
 16273          description: "成员权限: 拉代码(pull),推代码(push),管理员(admin)。默认: push"
 16274          enum:
 16275          - "pull"
 16276          - "push"
 16277          - "admin"
 16278          default: "push"
 16279          x-exportParamName: "Permission"
 16280      description: "create project member"
 16281      example:
 16282        access_token: "access_token"
 16283        permission: "push"
 16284    PullRequestAssigneePostParam:
 16285      type: "object"
 16286      properties:
 16287        access_token:
 16288          type: "string"
 16289          description: "用户授权码"
 16290          x-exportParamName: "AccessToken"
 16291          x-optionalDataType: "String"
 16292        assignees:
 16293          description: "用户的个人空间地址, 以 , 分隔"
 16294          required: true
 16295          type: "string"
 16296          x-exportParamName: "Assignees"
 16297      description: "assign pull request"
 16298      example:
 16299        access_token: "access_token"
 16300        assignees: "abc"
 16301    PullRequestLabelPostParam:
 16302      type: "object"
 16303      properties:
 16304        access_token:
 16305          type: "string"
 16306          description: "用户授权码"
 16307          x-exportParamName: "AccessToken"
 16308          x-optionalDataType: "String"
 16309        body:
 16310          description: "标签名数组,如: [\"feat\", \"bug\"]"
 16311          required: true
 16312          type: "array"
 16313          items:
 16314            type: "string"
 16315          collectionFormat: "multi"
 16316          x-exportParamName: "Body"
 16317      description: "create pull request label"
 16318      example:
 16319        access_token: "access_token"
 16320        body: ["feat"]
 16321    IssueCommentPatchParam:
 16322      type: "object"
 16323      properties:
 16324        access_token:
 16325          type: "string"
 16326          description: "用户授权码"
 16327          x-exportParamName: "AccessToken"
 16328          x-optionalDataType: "String"
 16329        body:
 16330          type: "string"
 16331          description: "必填。评论内容"
 16332          x-exportParamName: "Body"
 16333          required: true
 16334      description: "edit pull request comment"
 16335      example:
 16336        access_token: "access_token"
 16337        body: "body"
 16338    PullRequestCommentPatchParam:
 16339      type: "object"
 16340      properties:
 16341        access_token:
 16342          type: "string"
 16343          description: "用户授权码"
 16344          x-exportParamName: "AccessToken"
 16345          x-optionalDataType: "String"
 16346        body:
 16347          type: "string"
 16348          description: "必填。评论内容"
 16349          x-exportParamName: "Body"
 16350          required: true
 16351      description: "edit pull request comment"
 16352      example:
 16353        access_token: "access_token"
 16354        body: "body"
 16355    PullRequestCommentPostParam:
 16356      type: "object"
 16357      properties:
 16358        access_token:
 16359          type: "string"
 16360          description: "用户授权码"
 16361          x-exportParamName: "AccessToken"
 16362          x-optionalDataType: "String"
 16363        body:
 16364          type: "string"
 16365          description: "必填。评论内容"
 16366          x-exportParamName: "Body"
 16367        commit_id:
 16368          type: "string"
 16369          description: "可选。PR代码评论的commit id"
 16370          x-exportParamName: "CommitId"
 16371          x-optionalDataType: "String"
 16372        path:
 16373          type: "string"
 16374          description: "可选。PR代码评论的文件名"
 16375          x-exportParamName: "Path"
 16376          x-optionalDataType: "String"
 16377        position:
 16378          type: "integer"
 16379          format: "int32"
 16380          description: "可选。PR代码评论diff中的行数"
 16381          x-exportParamName: "Position"
 16382          x-optionalDataType: "Int32"
 16383      description: "create pull request comment"
 16384      example:
 16385        access_token: "access_token"
 16386        path: "path"
 16387        position: 0
 16388        body: "body"
 16389        commit_id: "commit_id"
 16390    LabelPostParam:
 16391      type: "object"
 16392      properties:
 16393        access_token:
 16394          type: "string"
 16395          description: "用户授权码"
 16396          x-exportParamName: "AccessToken"
 16397          x-optionalDataType: "String"
 16398        name:
 16399          type: "string"
 16400          description: "标签的名称,必选。"
 16401          x-exportParamName: "Name"
 16402          x-optionalDataType: "String"
 16403        color:
 16404          type: "string"
 16405          description: "标签的颜色,为6位的数字,如: 000000,必选。"
 16406          x-exportParamName: "Color"
 16407          x-optionalDataType: "String"
 16408      example:
 16409        access_token: "access_token"
 16410        name: "lgtm"
 16411        color: "#ffffff"
 16412    PullRequestMergePutParam:
 16413      type: "object"
 16414      properties:
 16415        access_token:
 16416          type: "string"
 16417          description: "用户授权码"
 16418          x-exportParamName: "AccessToken"
 16419          x-optionalDataType: "String"
 16420        merge_method:
 16421          type: "string"
 16422          description: "可选。合并PR的方法,merge(合并所有提交)和 squash(扁平化分支合并)。默认为merge。"
 16423          enum:
 16424          - "merge"
 16425          - "squash"
 16426          default: "merge"
 16427          x-exportParamName: "MergeMethod"
 16428          x-optionalDataType: "String"
 16429        prune_source_branch:
 16430          type: "boolean"
 16431          description: "可选。合并PR后是否删除源分支,默认false(不删除)"
 16432          x-exportParamName: "PruneSourceBranch"
 16433          x-optionalDataType: "Bool"
 16434        title:
 16435          type: "string"
 16436          description: "可选。合并标题,默认为PR的标题"
 16437          x-exportParamName: "Title"
 16438          x-optionalDataType: "String"
 16439        description:
 16440          type: "string"
 16441          description: "可选。合并描述,默认为 \"Merge pull request !{pr_id} from {author}/{source_branch}\"\
 16442            ,与页面显示的默认一致。"
 16443          x-exportParamName: "Description"
 16444          x-optionalDataType: "String"
 16445      description: "merge pull request parameter"
 16446      example:
 16447        access_token: "access_token"
 16448        path: "path"
 16449        position: 0
 16450        body: "body"
 16451        commit_id: "commit_id"
 16452    IssueCommentPostParam:
 16453      type: "object"
 16454      properties:
 16455        access_token:
 16456          type: "string"
 16457          description: "用户授权码"
 16458          x-exportParamName: "AccessToken"
 16459          x-optionalDataType: "String"
 16460        body:
 16461          type: "string"
 16462          description: "The contents of the comment"
 16463          x-exportParamName: "Body"
 16464          x-optionalDataType: "String"
 16465      example:
 16466        access_token: "access_token"
 16467        body: "body"
 16468    BranchProtectionPutParam:
 16469      type: "object"
 16470      properties:
 16471        access_token:
 16472          type: "string"
 16473          description: "用户授权码"
 16474          x-exportParamName: "AccessToken"
 16475          x-optionalDataType: "String"
 16476      description: "branch protection parameter"
 16477      example:
 16478        access_token: "access_token"
 16479    RepoPatchParam:
 16480      type: "object"
 16481      properties:
 16482        access_token:
 16483          type: "string"
 16484          description: "用户授权码"
 16485          x-exportParamName: "AccessToken"
 16486          x-optionalDataType: "String"
 16487        name:
 16488          type: "string"
 16489          description: "仓库名称"
 16490          x-exportParamName: "Name"
 16491          x-optionalDataType: "String"
 16492        description:
 16493          type: "string"
 16494          description: "仓库描述"
 16495          x-exportParamName: "Description"
 16496          x-optionalDataType: "String"
 16497        homepage:
 16498          type: "string"
 16499          description: "主页(eg: https://gitee.com)"
 16500          x-exportParamName: "Homepage"
 16501          x-optionalDataType: "String"
 16502        has_issues:
 16503          type: "string"
 16504          description: "允许提Issue与否。默认: 允许(true)"
 16505          default: "true"
 16506          x-exportParamName: "HasIssues"
 16507          x-optionalDataType: "String"
 16508        has_wiki:
 16509          type: "string"
 16510          description: "提供Wiki与否。默认: 提供(true)"
 16511          default: "true"
 16512          x-exportParamName: "HasWiki"
 16513          x-optionalDataType: "String"
 16514        can_comment:
 16515          type: "string"
 16516          description: "允许用户对仓库进行评论"
 16517          x-exportParamName: "CanComment"
 16518          x-optionalDataType: "String"
 16519        private:
 16520          type: "string"
 16521          description: "仓库公开或私有。"
 16522          x-exportParamName: "Private"
 16523          x-optionalDataType: "String"
 16524        path:
 16525          type: "string"
 16526          description: "更新仓库路径"
 16527          x-exportParamName: "Path"
 16528          x-optionalDataType: "String"
 16529        default_branch:
 16530          type: "string"
 16531          description: "更新默认分支"
 16532          x-exportParamName: "DefaultBranch"
 16533          x-optionalDataType: "String"
 16534      description: "repo patch parameter"
 16535      example:
 16536        access_token: "access_token"
 16537        name: "name"
 16538        description: "description"
 16539        homepage: "https://gitee.com"
 16540        has_issues: "true"
 16541        has_wiki: "true"
 16542        private: "false"
 16543        path: "new_repo_path"
 16544        default_branch: "master"
 16545    NewFileParam:
 16546      type: "object"
 16547      properties:
 16548        access_token:
 16549          type: "string"
 16550          description: "用户授权码"
 16551          x-exportParamName: "AccessToken"
 16552          x-optionalDataType: "String"
 16553        content:
 16554          type: "string"
 16555          description: "文件内容, 要用 base64 编码"
 16556          x-exportParamName: "Content"
 16557          x-optionalDataType: "String"
 16558        message:
 16559          type: "string"
 16560          description: "提交信息"
 16561          x-exportParamName: "Message"
 16562          x-optionalDataType: "String"
 16563        branch:
 16564          type: "string"
 16565          description: "分支名称。默认为仓库对默认分支"
 16566          x-exportParamName: "Branch"
 16567          x-optionalDataType: "String"
 16568        committer[name]:
 16569          type: "string"
 16570          description: "Committer的名字,默认为当前用户的名字"
 16571          x-exportParamName: "CommitterName"
 16572          x-optionalDataType: "String"
 16573        committer[email]:
 16574          type: "string"
 16575          description: "Committer的邮箱,默认为当前用户的邮箱"
 16576          x-exportParamName: "CommitterEmail"
 16577          x-optionalDataType: "String"
 16578        author[name]:
 16579          type: "string"
 16580          description: "Author的名字,默认为当前用户的名字"
 16581          x-exportParamName: "AuthorName"
 16582          x-optionalDataType: "String"
 16583        author[email]:
 16584          type: "string"
 16585          description: "Author的邮箱,默认为当前用户的邮箱"
 16586          x-exportParamName: "AuthorEmail"
 16587          x-optionalDataType: "String"
 16588      example:
 16589        access_token: "access_token"
 16590        content: "aGVsbG9nZW9yZ2U="
 16591        message: "add test file"
 16592        branch: "master"
 16593        committer[name]: "testcommitter"
 16594        committer[email]: "testcommiteremail"
 16595        author[name]: "testauthor"
 16596        author[email]: "testauthoremail"
 16597    CreateBranchParam:
 16598      type: "object"
 16599      properties:
 16600        access_token:
 16601          type: "string"
 16602          description: "用户授权码"
 16603          x-exportParamName: "AccessToken"
 16604          x-optionalDataType: "String"
 16605        refs:
 16606          type: "string"
 16607          description: "分支起点名称,默认master"
 16608          x-exportParamName: "BranchRefs"
 16609          x-optionalDataType: "String"
 16610        branch_name:
 16611          type: "string"
 16612          description: "新创建的分支名称"
 16613          x-exportParamName: "BranchName"
 16614          x-optionalDataType: "String"
 16615      example:
 16616        access_token: "access_token"
 16617        refs: "testbranch"
 16618        branch_name: "newbranch"
 16619    SetRepoReviewer:
 16620      type: "object"
 16621      properties:
 16622        access_token:
 16623          type: "string"
 16624          description: "用户授权码"
 16625          x-exportParamName: "AccessToken"
 16626          x-optionalDataType: "String"
 16627        assignees:
 16628          type: "string"
 16629          description: "审查人员"
 16630          x-exportParamName: "Assignees"
 16631          x-optionalDataType: "String"
 16632        testers:
 16633          type: "string"
 16634          description: "测试人员"
 16635          x-exportParamName: "Testers"
 16636          x-optionalDataType: "String"
 16637        assignees_number:
 16638          type: "integer"
 16639          format: "int32"
 16640          description: "最少审查人数"
 16641          x-exportParamName: "AssigneesNumber"
 16642          x-optionalDataType: "Int32"
 16643        testers_number:
 16644          type: "integer"
 16645          format: "int32"
 16646          description: "最少测试人员"
 16647          x-exportParamName: "TestersNumber"
 16648          x-optionalDataType: "Int32"
 16649      example:
 16650        access_token: "access_token"
 16651        assignees: "testassigneers"
 16652        testers: "testtesters"
 16653        assignees_number: 0
 16654        testers_number: 0
 16655    ProjectMemberPermissionDetail:
 16656      type: "object"
 16657      properties:
 16658        pull:
 16659          type: "boolean"
 16660        push:
 16661          type: "boolean"
 16662        admin:
 16663          type: "boolean"