下面是我想用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参数接受字符串List.
当我传递两个元素用于按新行分隔的列表时,它生成的url是
什么样的?col = sysid%2Calert_id
虽然它应该像
?col = sysid&col = alert_id
它适用于单个元素列表
任何帮助将不胜感激.