Skip to content

Latest commit

 

History

History
64 lines (50 loc) · 2.23 KB

rpm.md

File metadata and controls

64 lines (50 loc) · 2.23 KB

创建仓库

  • API: POST /repository/api/repo/create

  • API 名称: create_repo

  • 功能说明:

    • 中文:创建仓库
      • English:create repo
  • 请求体

    {
      "projectId": "test",
      "name": "generic-local",
      "type": "RPM",
      "category": "COMPOSITE",
      "public": false,
      "description": "repo description",
      "configuration": {
        "settings": {
                "enabledFileLists": false,
                "repodataDepth": 0,
                "groupXmlSet": []
            }
      },
      "storageCredentialsKey": null
    }
  • 请求字段说明

    字段 类型 是否必须 默认值 说明 Description
    projectId string 项目名称 project name
    name string 仓库名称 repo name
    type string 仓库类型,枚举值 repo type
    category string COMPOSITE 仓库类别,枚举值 repo category
    public boolean false 是否公开 is public repo
    description string 仓库描述 repo description
    configuration object 仓库配置,参考后文 repo configuration
    storageCredentialsKey string 存储凭证key storage credentials key
    enabledFileLists Boolean false 是否启用filelists索引 enabledFileLists
    repodataDepth Int 0 索引目录深度 repodataDepth
    groupXmlSet String 分组文件列表 groupXmlSet
  • 响应体

    {
      "code": 0,
      "message": null,
      "data": null,
      "traceId": ""
    }
  • data字段说明

    请求成功无返回数据