
# 上传swagger文件生成API用例 - CreateTestcasesBySwagger
#### 功能介绍
上传接口yaml文件生成接口用例
#### 调用方法
请参见[如何调用API](https://support.huaweicloud.com/api-testman/cloudtest_03_2000.html)。
#### URI
POST /v1/{project_id}/testcases/swagger-file
表1路径参数 
| 参数         | 是否必选 | 参数类型   | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
|:---|:---|:---|:---|
| project_id | 是    | String | **参数解释**: 项目UUID，项目唯一标识，固定长度32位字符（字母和数字）。获取方式请参见[获取项目ID](https://support.huaweicloud.com/api-testman/cloudtest_03_4003.html) **约束限制**: 不涉及 **取值范围**: 项目uuid应符合如下规则：长度等于32位字符，包含大小写字母、数字 **默认取值**: 不涉及 |
   
#### 请求参数
表2请求Header参数 
| 参数           | 是否必选 | 参数类型   | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
|:---|:---|:---|:---|
| X-Auth-Token | 是    | String | **参数解释：** 用户Token。 通过调用IAM服务[获取用户Token](https://support.huaweicloud.com/api-iam/iam_30_0001.html)接口获取（响应消息头中X-Subject-Token的值）。 **约束限制：** 必传。 **取值范围：** 字符串长度不少于1，不超过10万。 **默认取值：** 不涉及。 |
   
表3FormData参数 
| 参数  | 是否必选 | 参数类型 | 描述         |
|:---|:---|:---|:---|
| req | 是    | File | 要上传的yaml文件 |
   
#### 响应参数
**状态码：200**
表4响应Body参数 
| 参数     | 参数类型                                                                                                  | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
|:---|:---|:---|
| error  | [CommonResponseErrorOfobject] object | **参数解释** 统一错误返回 **取值范围** 不涉及                                                                                                                                                                                                                                                                                                                                                                                                    |
| reason | String                                                                                                | **参数解释** 接口调用失败原因 **取值范围** 不超过1000个字符组成的字符串                                                                                                                                                                                                                                                                                                                                                                                     |
| result | Object                                                                                                | **参数解释** 结果 **取值范围** 不涉及                                                                                                                                                                                                                                                                                                                                                                                                        |
| status | String                                                                                                | **参数解释** '状态值，如success、error' **取值范围** - success，请求成功   - error，请求报错    |
   
 表5CommonResponseErrorOfobject 
| 参数     | 参数类型   | 描述                                                                                                                                                                              |
|:---|:---|:---|
| code   | String | **参数解释** 接口调用失败错误码 **取值范围** 不超过256个字符组成的字符串 |
| reason | String | **参数解释** 接口调用失败原因 **取值范围** 不超过1000个字符组成的字符串 |
   
**状态码：401**
表6响应Body参数 
| 参数         | 参数类型   | 描述                                                                                                                                                                               |
|:---|:---|:---|
| error_code | String | **参数解释** 接口调用失败错误码 **取值范围** 12-18个字符组成的字符串   |
| error_msg  | String | **参数解释** 接口调用失败错误信息 **取值范围** 3-1000个字符组成的字符串 |
   
**状态码：403**
表7响应Body参数 
| 参数         | 参数类型   | 描述                                                                                                                                                                               |
|:---|:---|:---|
| error_code | String | **参数解释** 接口调用失败错误码 **取值范围** 12-18个字符组成的字符串   |
| error_msg  | String | **参数解释** 接口调用失败错误信息 **取值范围** 3-1000个字符组成的字符串 |
   
**状态码：404**
表8响应Body参数 
| 参数         | 参数类型   | 描述                                                                                                                                                                               |
|:---|:---|:---|
| error_code | String | **参数解释** 接口调用失败错误码 **取值范围** 12-18个字符组成的字符串   |
| error_msg  | String | **参数解释** 接口调用失败错误信息 **取值范围** 3-1000个字符组成的字符串 |
   
**状态码：500**
表9响应Body参数 
| 参数         | 参数类型   | 描述                                                                                                                                                                               |
|:---|:---|:---|
| error_code | String | **参数解释** 接口调用失败错误码 **取值范围** 12-18个字符组成的字符串   |
| error_msg  | String | **参数解释** 接口调用失败错误信息 **取值范围** 3-1000个字符组成的字符串 |
   
#### 请求示例
```
post https://{endpoint}/v1/e097dedf414543e29fc8877b1fb3ec74/testcases/swagger-file
```
#### 响应示例
**状态码：200**
SUCCESS
```
{
  "status" : "success",
  "result" : [ {
    "id" : "1cb42612284d4b22b99082174579396e",
    "projectId" : "b7cb42f3fec14acba074624ddccd30db",
    "changeSign" : 0,
    "region" : null,
    "relation" : null,
    "children" : null,
    "scriptName" : "apisGET",
    "create_time_stamp" : 1720076040000,
    "update_time_stamp" : 1720076040000,
    "create_time_string" : "2024-07-04 14:54:00 GMT+08:00",
    "update_time_string" : "2024-07-04 14:54:00 GMT+08:00",
    "create_user" : "devcloud_devcloud_s00314720_01",
    "create_time" : "2024-07-04T02:54:00+0800",
    "update_user" : "devcloud_devcloud_s00314720_01",
    "update_time" : "2024-07-04T02:54:00+0800",
    "name" : "apisGET",
    "condition_type" : null,
    "condition_statement" : null,
    "body_param_type" : null,
    "aw_type" : 1,
    "aw_id" : "12c2d80b39d842c8bdefc82b721179f9",
    "basic_aw" : {
      "id" : "12c2d80b39d842c8bdefc82b721179f9",
      "warningMsg" : null,
      "name" : "apisGETUsingGET",
      "source" : null,
      "method" : "apisGETUsingGET",
      "description" : "apisGET",
      "nameView" : null,
      "tmssCaseNumber" : null,
      "region" : "{region}",
      "yamlName" : null,
      "create_time_stamp" : 1720076040000,
      "update_time_stamp" : 1720076040000,
      "create_time_string" : "2024-07-04 14:54:00 GMT+08:00",
      "update_time_string" : "2024-07-04 14:54:00 GMT+08:00",
      "create_user" : "devcloud_devcloud_s00314720_01",
      "create_time" : "2024-07-04T02:54:00+0800",
      "update_user" : "devcloud_devcloud_s00314720_01",
      "update_time" : "2024-07-04T02:54:00+0800",
      "param_type_and_dft_value" : [ {
        "type" : "String",
        "name" : "hostURL",
        "required" : true,
        "disabled" : false,
        "description" : null,
        "mock" : null,
        "isChecked" : true,
        "is_big_field" : null,
        "value_type" : 0,
        "basic_value" : {
          "value" : "10.183.232.112:9999",
          "value_range" : null
        },
        "enum_type" : null,
        "enum_type_selected" : null,
        "minLength" : -1001,
        "maxLength" : -1001,
        "minimum" : null,
        "maximum" : null,
        "format" : null,
        "pattern" : null,
        "xChoiceValue" : null,
        "maxItems" : null,
        "minItems" : null,
        "validate_rule" : null,
        "defaultValue" : null,
        "drop_down_value" : null,
        "in_type" : null,
        "is_body_custom" : null,
        "custom_body" : null,
        "basic_value_list" : null,
        "object_value" : null,
        "object_value_list" : null,
        "is_contract_param" : null,
        "item" : null,
        "is_sensitive" : null
      }, {
        "type" : "String",
        "name" : "namespace123",
        "required" : true,
        "disabled" : false,
        "description" : "namespace",
        "mock" : null,
        "isChecked" : true,
        "is_big_field" : null,
        "value_type" : 0,
        "basic_value" : {
          "value" : null,
          "value_range" : ""
        },
        "enum_type" : null,
        "enum_type_selected" : null,
        "minLength" : -1001,
        "maxLength" : -1001,
        "minimum" : null,
        "maximum" : null,
        "format" : null,
        "pattern" : null,
        "xChoiceValue" : null,
        "maxItems" : null,
        "minItems" : null,
        "validate_rule" : null,
        "defaultValue" : null,
        "drop_down_value" : null,
        "in_type" : 0,
        "is_body_custom" : null,
        "custom_body" : null,
        "basic_value_list" : null,
        "object_value" : null,
        "object_value_list" : null,
        "is_contract_param" : null,
        "item" : null,
        "is_sensitive" : null
      }, {
        "type" : "String",
        "name" : "since",
        "required" : true,
        "disabled" : false,
        "description" : "since",
        "mock" : null,
        "isChecked" : true,
        "is_big_field" : null,
        "value_type" : 0,
        "basic_value" : {
          "value" : null,
          "value_range" : ""
        },
        "enum_type" : null,
        "enum_type_selected" : null,
        "minLength" : -1001,
        "maxLength" : -1001,
        "minimum" : null,
        "maximum" : null,
        "format" : null,
        "pattern" : null,
        "xChoiceValue" : null,
        "maxItems" : null,
        "minItems" : null,
        "validate_rule" : null,
        "defaultValue" : null,
        "drop_down_value" : null,
        "in_type" : 0,
        "is_body_custom" : null,
        "custom_body" : null,
        "basic_value_list" : null,
        "object_value" : null,
        "object_value_list" : null,
        "is_contract_param" : null,
        "item" : null,
        "is_sensitive" : null
      }, {
        "type" : "String",
        "name" : "apiname",
        "required" : true,
        "disabled" : false,
        "description" : "apiname",
        "mock" : null,
        "isChecked" : true,
        "is_big_field" : null,
        "value_type" : 0,
        "basic_value" : {
          "value" : null,
          "value_range" : ""
        },
        "enum_type" : null,
        "enum_type_selected" : null,
        "minLength" : -1001,
        "maxLength" : -1001,
        "minimum" : null,
        "maximum" : null,
        "format" : null,
        "pattern" : null,
        "xChoiceValue" : null,
        "maxItems" : null,
        "minItems" : null,
        "validate_rule" : null,
        "defaultValue" : null,
        "drop_down_value" : null,
        "in_type" : 0,
        "is_body_custom" : null,
        "custom_body" : null,
        "basic_value_list" : null,
        "object_value" : null,
        "object_value_list" : null,
        "is_contract_param" : null,
        "item" : null,
        "is_sensitive" : null
      }, {
        "type" : "String",
        "name" : "tags",
        "required" : true,
        "disabled" : false,
        "description" : "tags",
        "mock" : null,
        "isChecked" : true,
        "is_big_field" : null,
        "value_type" : 0,
        "basic_value" : {
          "value" : null,
          "value_range" : ""
        },
        "enum_type" : null,
        "enum_type_selected" : null,
        "minLength" : -1001,
        "maxLength" : -1001,
        "minimum" : null,
        "maximum" : null,
        "format" : null,
        "pattern" : null,
        "xChoiceValue" : null,
        "maxItems" : null,
        "minItems" : null,
        "validate_rule" : null,
        "defaultValue" : null,
        "drop_down_value" : null,
        "in_type" : 0,
        "is_body_custom" : null,
        "custom_body" : null,
        "basic_value_list" : null,
        "object_value" : null,
        "object_value_list" : null,
        "is_contract_param" : null,
        "item" : null,
        "is_sensitive" : null
      }, {
        "type" : "Double",
        "name" : "limit",
        "required" : true,
        "disabled" : false,
        "description" : "limit",
        "mock" : null,
        "isChecked" : true,
        "is_big_field" : null,
        "value_type" : 0,
        "basic_value" : {
          "value" : null,
          "value_range" : ""
        },
        "enum_type" : null,
        "enum_type_selected" : null,
        "minLength" : null,
        "maxLength" : null,
        "minimum" : -1001,
        "maximum" : -1001,
        "format" : "double",
        "pattern" : null,
        "xChoiceValue" : null,
        "maxItems" : null,
        "minItems" : null,
        "validate_rule" : null,
        "defaultValue" : null,
        "drop_down_value" : null,
        "in_type" : 0,
        "is_body_custom" : null,
        "custom_body" : null,
        "basic_value_list" : null,
        "object_value" : null,
        "object_value_list" : null,
        "is_contract_param" : null,
        "item" : null,
        "is_sensitive" : null
      }, {
        "type" : "String",
        "name" : "offset",
        "required" : true,
        "disabled" : false,
        "description" : "offset",
        "mock" : null,
        "isChecked" : true,
        "is_big_field" : null,
        "value_type" : 0,
        "basic_value" : {
          "value" : null,
          "value_range" : ""
        },
        "enum_type" : null,
        "enum_type_selected" : null,
        "minLength" : -1001,
        "maxLength" : -1001,
        "minimum" : null,
        "maximum" : null,
        "format" : null,
        "pattern" : null,
        "xChoiceValue" : null,
        "maxItems" : null,
        "minItems" : null,
        "validate_rule" : null,
        "defaultValue" : null,
        "drop_down_value" : null,
        "in_type" : 0,
        "is_body_custom" : null,
        "custom_body" : null,
        "basic_value_list" : null,
        "object_value" : null,
        "object_value_list" : null,
        "is_contract_param" : null,
        "item" : null,
        "is_sensitive" : null
      }, {
        "type" : "List<String>",
        "name" : "visibility",
        "required" : true,
        "disabled" : false,
        "description" : "visibility",
        "mock" : null,
        "isChecked" : true,
        "is_big_field" : null,
        "value_type" : 1,
        "basic_value" : {
          "value" : null,
          "value_range" : null
        },
        "enum_type" : null,
        "enum_type_selected" : null,
        "minLength" : -1001,
        "maxLength" : -1001,
        "minimum" : -1001,
        "maximum" : -1001,
        "format" : null,
        "pattern" : null,
        "xChoiceValue" : null,
        "maxItems" : 0,
        "minItems" : 0,
        "validate_rule" : null,
        "defaultValue" : null,
        "drop_down_value" : null,
        "in_type" : 0,
        "is_body_custom" : null,
        "custom_body" : null,
        "basic_value_list" : [ {
          "value" : null,
          "value_range" : ""
        } ],
        "object_value" : null,
        "object_value_list" : null,
        "is_contract_param" : null,
        "item" : {
          "type" : null,
          "is_big_field" : false,
          "value_type" : 0,
          "basic_value" : {
            "value" : null,
            "value_range" : null
          },
          "enum_type" : null,
          "enum_type_selected" : null,
          "minLength" : 0,
          "maxLength" : 0,
          "minimum" : -1001,
          "maximum" : -1001,
          "format" : null,
          "pattern" : null,
          "xChoiceValue" : null,
          "maxItems" : null,
          "minItems" : null,
          "validate_rule" : null,
          "defaultValue" : null
        },
        "is_sensitive" : null
      }, {
        "type" : "List<String>",
        "name" : "status",
        "required" : true,
        "disabled" : false,
        "description" : "status",
        "mock" : null,
        "isChecked" : true,
        "is_big_field" : null,
        "value_type" : 1,
        "basic_value" : {
          "value" : null,
          "value_range" : null
        },
        "enum_type" : null,
        "enum_type_selected" : null,
        "minLength" : -1001,
        "maxLength" : -1001,
        "minimum" : -1001,
        "maximum" : -1001,
        "format" : null,
        "pattern" : null,
        "xChoiceValue" : null,
        "maxItems" : 0,
        "minItems" : 0,
        "validate_rule" : null,
        "defaultValue" : null,
        "drop_down_value" : null,
        "in_type" : 0,
        "is_body_custom" : null,
        "custom_body" : null,
        "basic_value_list" : [ {
          "value" : null,
          "value_range" : ""
        } ],
        "object_value" : null,
        "object_value_list" : null,
        "is_contract_param" : null,
        "item" : {
          "type" : null,
          "is_big_field" : false,
          "value_type" : 0,
          "basic_value" : {
            "value" : null,
            "value_range" : null
          },
          "enum_type" : null,
          "enum_type_selected" : null,
          "minLength" : 0,
          "maxLength" : 0,
          "minimum" : -1001,
          "maximum" : -1001,
          "format" : null,
          "pattern" : null,
          "xChoiceValue" : null,
          "maxItems" : null,
          "minItems" : null,
          "validate_rule" : null,
          "defaultValue" : null
        },
        "is_sensitive" : null
      }, {
        "type" : "String",
        "name" : "orderby",
        "required" : true,
        "disabled" : false,
        "description" : "orderby",
        "mock" : null,
        "isChecked" : true,
        "is_big_field" : null,
        "value_type" : 0,
        "basic_value" : {
          "value" : null,
          "value_range" : ""
        },
        "enum_type" : null,
        "enum_type_selected" : null,
        "minLength" : -1001,
        "maxLength" : -1001,
        "minimum" : null,
        "maximum" : null,
        "format" : null,
        "pattern" : null,
        "xChoiceValue" : null,
        "maxItems" : null,
        "minItems" : null,
        "validate_rule" : null,
        "defaultValue" : null,
        "drop_down_value" : null,
        "in_type" : 0,
        "is_body_custom" : null,
        "custom_body" : null,
        "basic_value_list" : null,
        "object_value" : null,
        "object_value_list" : null,
        "is_contract_param" : null,
        "item" : null,
        "is_sensitive" : null
      }, {
        "type" : "String",
        "name" : "order",
        "required" : true,
        "disabled" : false,
        "description" : "order",
        "mock" : null,
        "isChecked" : true,
        "is_big_field" : null,
        "value_type" : 0,
        "basic_value" : {
          "value" : null,
          "value_range" : ""
        },
        "enum_type" : null,
        "enum_type_selected" : null,
        "minLength" : -1001,
        "maxLength" : -1001,
        "minimum" : null,
        "maximum" : null,
        "format" : null,
        "pattern" : null,
        "xChoiceValue" : null,
        "maxItems" : null,
        "minItems" : null,
        "validate_rule" : null,
        "defaultValue" : null,
        "drop_down_value" : null,
        "in_type" : 0,
        "is_body_custom" : null,
        "custom_body" : null,
        "basic_value_list" : null,
        "object_value" : null,
        "object_value_list" : null,
        "is_contract_param" : null,
        "item" : null,
        "is_sensitive" : null
      } ],
      "dft_custom_header" : [ {
        "type" : "String",
        "name" : "Content-Type",
        "required" : false,
        "disabled" : false,
        "description" : null,
        "mock" : null,
        "isChecked" : null,
        "is_big_field" : null,
        "value_type" : 0,
        "basic_value" : {
          "value" : "application/json",
          "value_range" : null
        },
        "enum_type" : null,
        "enum_type_selected" : null,
        "minLength" : null,
        "maxLength" : null,
        "minimum" : null,
        "maximum" : null,
        "format" : null,
        "pattern" : null,
        "xChoiceValue" : null,
        "maxItems" : null,
        "minItems" : null,
        "validate_rule" : null,
        "defaultValue" : null,
        "drop_down_value" : null,
        "in_type" : 3,
        "is_body_custom" : null,
        "custom_body" : null,
        "basic_value_list" : null,
        "object_value" : null,
        "object_value_list" : null,
        "is_contract_param" : null,
        "item" : null,
        "is_sensitive" : null
      }, {
        "type" : "String",
        "name" : "Accept",
        "required" : false,
        "disabled" : false,
        "description" : null,
        "mock" : null,
        "isChecked" : null,
        "is_big_field" : null,
        "value_type" : 0,
        "basic_value" : {
          "value" : "*/*",
          "value_range" : null
        },
        "enum_type" : null,
        "enum_type_selected" : null,
        "minLength" : null,
        "maxLength" : null,
        "minimum" : null,
        "maximum" : null,
        "format" : null,
        "pattern" : null,
        "xChoiceValue" : null,
        "maxItems" : null,
        "minItems" : null,
        "validate_rule" : null,
        "defaultValue" : null,
        "drop_down_value" : null,
        "in_type" : 3,
        "is_body_custom" : null,
        "custom_body" : null,
        "basic_value_list" : null,
        "object_value" : null,
        "object_value_list" : null,
        "is_contract_param" : null,
        "item" : null,
        "is_sensitive" : null
      } ],
      "dft_check_point_list" : null,
      "dft_variable_list" : null,
      "keyword_variable_value" : null,
      "dft_retry_times" : null,
      "dft_retry_interval" : null,
      "return_type" : "[{\"returnCode\":200,\"type\":\"basic\",\"body\":\"未被定义为引用\"}]",
      "aw_type" : 1,
      "aw_ins_list" : null,
      "project_id" : "b7cb42f3fec14acba074624ddccd30db",
      "public_aw_lib_id" : null,
      "special_type" : 1,
      "has_code" : 1,
      "aw_code" : "",
      "group_name" : null,
      "protocol_type" : "http/https",
      "by_order" : null,
      "aw_mark" : 1,
      "output_param_list" : null,
      "is_favorite" : null,
      "tmss_case_id" : null,
      "create_user_id" : "efdb403066474ab08836b9eeaaa23bca",
      "aw_description" : null,
      "origin_project" : null,
      "aw_uniqueid" : null,
      "aw_tags" : null,
      "aw_operationid" : null,
      "interface_label" : null,
      "import_package" : null,
      "public_aw_lib" : null,
      "root_id" : null,
      "custom_aw_libs" : null,
      "delete_time" : null,
      "delete_user" : null,
      "extra_info" : {
        "http_url" : "http://{hostURL}/sutservice/apis",
        "http_method" : "get"
      }
    },
    "param_type_and_value" : [ {
      "type" : "String",
      "name" : "hostURL",
      "required" : true,
      "disabled" : false,
      "description" : null,
      "mock" : null,
      "isChecked" : true,
      "is_big_field" : null,
      "value_type" : 0,
      "basic_value" : {
        "value" : "10.183.232.112:9999",
        "value_range" : null
      },
      "enum_type" : null,
      "enum_type_selected" : null,
      "minLength" : -1001,
      "maxLength" : -1001,
      "minimum" : null,
      "maximum" : null,
      "format" : null,
      "pattern" : null,
      "xChoiceValue" : null,
      "maxItems" : null,
      "minItems" : null,
      "validate_rule" : null,
      "defaultValue" : null,
      "drop_down_value" : null,
      "in_type" : null,
      "is_body_custom" : null,
      "custom_body" : null,
      "basic_value_list" : null,
      "object_value" : null,
      "object_value_list" : null,
      "is_contract_param" : null,
      "item" : null,
      "is_sensitive" : null
    }, {
      "type" : "String",
      "name" : "namespace123",
      "required" : true,
      "disabled" : false,
      "description" : "namespace",
      "mock" : null,
      "isChecked" : true,
      "is_big_field" : null,
      "value_type" : 0,
      "basic_value" : {
        "value" : null,
        "value_range" : ""
      },
      "enum_type" : null,
      "enum_type_selected" : null,
      "minLength" : -1001,
      "maxLength" : -1001,
      "minimum" : null,
      "maximum" : null,
      "format" : null,
      "pattern" : null,
      "xChoiceValue" : null,
      "maxItems" : null,
      "minItems" : null,
      "validate_rule" : null,
      "defaultValue" : null,
      "drop_down_value" : null,
      "in_type" : 0,
      "is_body_custom" : null,
      "custom_body" : null,
      "basic_value_list" : null,
      "object_value" : null,
      "object_value_list" : null,
      "is_contract_param" : null,
      "item" : null,
      "is_sensitive" : null
    }, {
      "type" : "String",
      "name" : "since",
      "required" : true,
      "disabled" : false,
      "description" : "since",
      "mock" : null,
      "isChecked" : true,
      "is_big_field" : null,
      "value_type" : 0,
      "basic_value" : {
        "value" : null,
        "value_range" : ""
      },
      "enum_type" : null,
      "enum_type_selected" : null,
      "minLength" : -1001,
      "maxLength" : -1001,
      "minimum" : null,
      "maximum" : null,
      "format" : null,
      "pattern" : null,
      "xChoiceValue" : null,
      "maxItems" : null,
      "minItems" : null,
      "validate_rule" : null,
      "defaultValue" : null,
      "drop_down_value" : null,
      "in_type" : 0,
      "is_body_custom" : null,
      "custom_body" : null,
      "basic_value_list" : null,
      "object_value" : null,
      "object_value_list" : null,
      "is_contract_param" : null,
      "item" : null,
      "is_sensitive" : null
    }, {
      "type" : "String",
      "name" : "apiname",
      "required" : true,
      "disabled" : false,
      "description" : "apiname",
      "mock" : null,
      "isChecked" : true,
      "is_big_field" : null,
      "value_type" : 0,
      "basic_value" : {
        "value" : null,
        "value_range" : ""
      },
      "enum_type" : null,
      "enum_type_selected" : null,
      "minLength" : -1001,
      "maxLength" : -1001,
      "minimum" : null,
      "maximum" : null,
      "format" : null,
      "pattern" : null,
      "xChoiceValue" : null,
      "maxItems" : null,
      "minItems" : null,
      "validate_rule" : null,
      "defaultValue" : null,
      "drop_down_value" : null,
      "in_type" : 0,
      "is_body_custom" : null,
      "custom_body" : null,
      "basic_value_list" : null,
      "object_value" : null,
      "object_value_list" : null,
      "is_contract_param" : null,
      "item" : null,
      "is_sensitive" : null
    }, {
      "type" : "String",
      "name" : "tags",
      "required" : true,
      "disabled" : false,
      "description" : "tags",
      "mock" : null,
      "isChecked" : true,
      "is_big_field" : null,
      "value_type" : 0,
      "basic_value" : {
        "value" : null,
        "value_range" : ""
      },
      "enum_type" : null,
      "enum_type_selected" : null,
      "minLength" : -1001,
      "maxLength" : -1001,
      "minimum" : null,
      "maximum" : null,
      "format" : null,
      "pattern" : null,
      "xChoiceValue" : null,
      "maxItems" : null,
      "minItems" : null,
      "validate_rule" : null,
      "defaultValue" : null,
      "drop_down_value" : null,
      "in_type" : 0,
      "is_body_custom" : null,
      "custom_body" : null,
      "basic_value_list" : null,
      "object_value" : null,
      "object_value_list" : null,
      "is_contract_param" : null,
      "item" : null,
      "is_sensitive" : null
    }, {
      "type" : "Double",
      "name" : "limit",
      "required" : true,
      "disabled" : false,
      "description" : "limit",
      "mock" : null,
      "isChecked" : true,
      "is_big_field" : null,
      "value_type" : 0,
      "basic_value" : {
        "value" : null,
        "value_range" : ""
      },
      "enum_type" : null,
      "enum_type_selected" : null,
      "minLength" : null,
      "maxLength" : null,
      "minimum" : -1001,
      "maximum" : -1001,
      "format" : "double",
      "pattern" : null,
      "xChoiceValue" : null,
      "maxItems" : null,
      "minItems" : null,
      "validate_rule" : null,
      "defaultValue" : null,
      "drop_down_value" : null,
      "in_type" : 0,
      "is_body_custom" : null,
      "custom_body" : null,
      "basic_value_list" : null,
      "object_value" : null,
      "object_value_list" : null,
      "is_contract_param" : null,
      "item" : null,
      "is_sensitive" : null
    }, {
      "type" : "String",
      "name" : "offset",
      "required" : true,
      "disabled" : false,
      "description" : "offset",
      "mock" : null,
      "isChecked" : true,
      "is_big_field" : null,
      "value_type" : 0,
      "basic_value" : {
        "value" : null,
        "value_range" : ""
      },
      "enum_type" : null,
      "enum_type_selected" : null,
      "minLength" : -1001,
      "maxLength" : -1001,
      "minimum" : null,
      "maximum" : null,
      "format" : null,
      "pattern" : null,
      "xChoiceValue" : null,
      "maxItems" : null,
      "minItems" : null,
      "validate_rule" : null,
      "defaultValue" : null,
      "drop_down_value" : null,
      "in_type" : 0,
      "is_body_custom" : null,
      "custom_body" : null,
      "basic_value_list" : null,
      "object_value" : null,
      "object_value_list" : null,
      "is_contract_param" : null,
      "item" : null,
      "is_sensitive" : null
    }, {
      "type" : "List<String>",
      "name" : "visibility",
      "required" : true,
      "disabled" : false,
      "description" : "visibility",
      "mock" : null,
      "isChecked" : true,
      "is_big_field" : null,
      "value_type" : 1,
      "basic_value" : {
        "value" : null,
        "value_range" : null
      },
      "enum_type" : null,
      "enum_type_selected" : null,
      "minLength" : -1001,
      "maxLength" : -1001,
      "minimum" : -1001,
      "maximum" : -1001,
      "format" : null,
      "pattern" : null,
      "xChoiceValue" : null,
      "maxItems" : 0,
      "minItems" : 0,
      "validate_rule" : null,
      "defaultValue" : null,
      "drop_down_value" : null,
      "in_type" : 0,
      "is_body_custom" : null,
      "custom_body" : null,
      "basic_value_list" : [ {
        "value" : null,
        "value_range" : ""
      } ],
      "object_value" : null,
      "object_value_list" : null,
      "is_contract_param" : null,
      "item" : {
        "type" : null,
        "is_big_field" : false,
        "value_type" : 0,
        "basic_value" : {
          "value" : null,
          "value_range" : null
        },
        "enum_type" : null,
        "enum_type_selected" : null,
        "minLength" : 0,
        "maxLength" : 0,
        "minimum" : -1001,
        "maximum" : -1001,
        "format" : null,
        "pattern" : null,
        "xChoiceValue" : null,
        "maxItems" : null,
        "minItems" : null,
        "validate_rule" : null,
        "defaultValue" : null
      },
      "is_sensitive" : null
    }, {
      "type" : "List<String>",
      "name" : "status",
      "required" : true,
      "disabled" : false,
      "description" : "status",
      "mock" : null,
      "isChecked" : true,
      "is_big_field" : null,
      "value_type" : 1,
      "basic_value" : {
        "value" : null,
        "value_range" : null
      },
      "enum_type" : null,
      "enum_type_selected" : null,
      "minLength" : -1001,
      "maxLength" : -1001,
      "minimum" : -1001,
      "maximum" : -1001,
      "format" : null,
      "pattern" : null,
      "xChoiceValue" : null,
      "maxItems" : 0,
      "minItems" : 0,
      "validate_rule" : null,
      "defaultValue" : null,
      "drop_down_value" : null,
      "in_type" : 0,
      "is_body_custom" : null,
      "custom_body" : null,
      "basic_value_list" : [ {
        "value" : null,
        "value_range" : ""
      } ],
      "object_value" : null,
      "object_value_list" : null,
      "is_contract_param" : null,
      "item" : {
        "type" : null,
        "is_big_field" : false,
        "value_type" : 0,
        "basic_value" : {
          "value" : null,
          "value_range" : null
        },
        "enum_type" : null,
        "enum_type_selected" : null,
        "minLength" : 0,
        "maxLength" : 0,
        "minimum" : -1001,
        "maximum" : -1001,
        "format" : null,
        "pattern" : null,
        "xChoiceValue" : null,
        "maxItems" : null,
        "minItems" : null,
        "validate_rule" : null,
        "defaultValue" : null
      },
      "is_sensitive" : null
    }, {
      "type" : "String",
      "name" : "orderby",
      "required" : true,
      "disabled" : false,
      "description" : "orderby",
      "mock" : null,
      "isChecked" : true,
      "is_big_field" : null,
      "value_type" : 0,
      "basic_value" : {
        "value" : null,
        "value_range" : ""
      },
      "enum_type" : null,
      "enum_type_selected" : null,
      "minLength" : -1001,
      "maxLength" : -1001,
      "minimum" : null,
      "maximum" : null,
      "format" : null,
      "pattern" : null,
      "xChoiceValue" : null,
      "maxItems" : null,
      "minItems" : null,
      "validate_rule" : null,
      "defaultValue" : null,
      "drop_down_value" : null,
      "in_type" : 0,
      "is_body_custom" : null,
      "custom_body" : null,
      "basic_value_list" : null,
      "object_value" : null,
      "object_value_list" : null,
      "is_contract_param" : null,
      "item" : null,
      "is_sensitive" : null
    }, {
      "type" : "String",
      "name" : "order",
      "required" : true,
      "disabled" : false,
      "description" : "order",
      "mock" : null,
      "isChecked" : true,
      "is_big_field" : null,
      "value_type" : 0,
      "basic_value" : {
        "value" : null,
        "value_range" : ""
      },
      "enum_type" : null,
      "enum_type_selected" : null,
      "minLength" : -1001,
      "maxLength" : -1001,
      "minimum" : null,
      "maximum" : null,
      "format" : null,
      "pattern" : null,
      "xChoiceValue" : null,
      "maxItems" : null,
      "minItems" : null,
      "validate_rule" : null,
      "defaultValue" : null,
      "drop_down_value" : null,
      "in_type" : 0,
      "is_body_custom" : null,
      "custom_body" : null,
      "basic_value_list" : null,
      "object_value" : null,
      "object_value_list" : null,
      "is_contract_param" : null,
      "item" : null,
      "is_sensitive" : null
    } ],
    "check_point_list" : [ ],
    "variable_list" : [ ],
    "retry_times" : "0",
    "retry_interval" : "0",
    "by_order" : 0,
    "from_outside" : null,
    "service_and_stage" : null,
    "is_contract_aw" : null,
    "is_sectest_aw" : null,
    "is_disabled" : null,
    "param_dependent" : null,
    "param_dependent_enabled" : null,
    "relation_id" : null,
    "relation_type" : 0,
    "extra_info" : {
      "summary" : null,
      "outputParam" : null,
      "importPackage" : null,
      "childImportPackage" : null,
      "mock" : null,
      "http_method" : "get",
      "http_url" : "http://{hostURL}/sutservice/apis",
      "document_link" : null,
      "param_dependent" : null
    },
    "custom_header" : [ {
      "type" : "String",
      "name" : "Content-Type",
      "required" : false,
      "disabled" : false,
      "description" : null,
      "mock" : null,
      "isChecked" : null,
      "is_big_field" : null,
      "value_type" : 0,
      "basic_value" : {
        "value" : "application/json",
        "value_range" : null
      },
      "enum_type" : null,
      "enum_type_selected" : null,
      "minLength" : null,
      "maxLength" : null,
      "minimum" : null,
      "maximum" : null,
      "format" : null,
      "pattern" : null,
      "xChoiceValue" : null,
      "maxItems" : null,
      "minItems" : null,
      "validate_rule" : null,
      "defaultValue" : null,
      "drop_down_value" : null,
      "in_type" : 3,
      "is_body_custom" : null,
      "custom_body" : null,
      "basic_value_list" : null,
      "object_value" : null,
      "object_value_list" : null,
      "is_contract_param" : null,
      "item" : null,
      "is_sensitive" : null
    }, {
      "type" : "String",
      "name" : "Accept",
      "required" : false,
      "disabled" : false,
      "description" : null,
      "mock" : null,
      "isChecked" : null,
      "is_big_field" : null,
      "value_type" : 0,
      "basic_value" : {
        "value" : "*/*",
        "value_range" : null
      },
      "enum_type" : null,
      "enum_type_selected" : null,
      "minLength" : null,
      "maxLength" : null,
      "minimum" : null,
      "maximum" : null,
      "format" : null,
      "pattern" : null,
      "xChoiceValue" : null,
      "maxItems" : null,
      "minItems" : null,
      "validate_rule" : null,
      "defaultValue" : null,
      "drop_down_value" : null,
      "in_type" : 3,
      "is_body_custom" : null,
      "custom_body" : null,
      "basic_value_list" : null,
      "object_value" : null,
      "object_value_list" : null,
      "is_contract_param" : null,
      "item" : null,
      "is_sensitive" : null
    } ],
    "level" : null,
    "hasLevel" : null,
    "is_basic" : 0,
    "his_script" : null,
    "description" : null,
    "aw_description" : null,
    "user_id" : null,
    "special_type" : 0,
    "error_info" : null,
    "alias_runaw" : null,
    "authentication_type" : null,
    "authentication_info" : null,
    "output_alias_info" : null,
    "header_array" : null
  } ],
  "reason" : null,
  "error" : null
}
```
#### 状态码
| 状态码 | 描述           |
|:---|:---|
| 200 | SUCCESS      |
| 401 | Unauthorized |
| 403 | Forbidden    |
| 404 | Not Found    |
| 500 | ERROR        |
   
#### 错误码
请参见[错误码](https://support.huaweicloud.com/api-testman/ErrorCode.html)。
