我试图使用Swagger来记录我的REST API。在此之后example,我批注REST端点是这样的:隐式参数与播放框架中的Swagger数据类型模型
case class CreateItemRequest(title: String, body: String)
@ApiOperation(value = "Create a new item", httpMethod = "POST", response = classOf[Item])
@ApiImplicitParams(Array(new ApiImplicitParam(dataType = "CreateItemRequest", paramType = "body", name = "body", required = true, allowMultiple = false, value = "The item object to create")))
def create(
@ApiParam(value = "Hash of the user", required = true)
@QueryParam("userhash") userhash: String
)
而且我期待得到“模型”像但我只得到了字符串“CreateItemRequest”作为数据类型。不是案例类CreateItemRequest的属性。
问候, 丹尼尔
您是否找到解决方案?我面临同样的问题:\ – Sudh 2015-03-25 13:49:03