以下是我想使用Swagger UI
记录的REST API
@ApiOperation(
nickname = "alertForBundleId",
value = "alertForBundleId",
notes = "",
httpMethod = "GET")
def alertForBundleId(
@ApiParam(name = "mfr", value = "Manufacturer", required = true) @PathParam("mfr") mfr: String,
@ApiParam(name = "col", value = "Columns", required = true) @QueryParam("col") cols: List[String])){...}
这里cols参数接受字符串列表。
当我传递两个元素用于按新行分隔的列表时,它生成的网址如
col = sysid% 2Calert_id
虽然它应该像
?col = sysid& col = alert_id
它适用于单个元素列表
任何帮助将不胜感激。