Skip to main content
Version: 2.22

InterfaceParam 接口参数

结构声明

interface InterfaceParam {
"concept": "InterfaceParam", // 产品概念
"name": string, // 接口参数名称
"description": string, // 接口参数描述
"typeAnnotation": TypeAnnotation, // 类型
"in": "query" | "path" | "body" | "header" | "cookie", // in
"required": boolean, // 是否必填
"defaultValue": string, // 默认值
}

示例

简单示例

{
"concept": "InterfaceParam",
"name": "param1",
"description": "",
"typeAnnotation": null,
"in": "",
"required": true,
"defaultValue": null
}