【发布时间】:2018-07-17 02:50:04
【问题描述】:
我正在使用 swagger akka-http 包装器,目前对于我的 get 请求,swagger 正在在字符串类型的 swagger 规范中添加额外的 body 参数
@Path("/{id}/status")
@ApiOperation(httpMethod = "GET", response = classOf[JobStatus], value = "Returns Job status")
@ApiImplicitParams(Array(
new ApiImplicitParam(name = "id", required = true, dataType = "integer", paramType = "path", value = "Job id for which status be fetched")))
@ApiResponses(Array(
new ApiResponse(code = 200, message = "OK", response = classOf[JobStatus]),
new ApiResponse(code = 404, message = "Job not found")))
def getStatus(id: String): Route =
get {
....
我想知道这是因为getStatus方法采用参数“id”,有没有人有任何建议
【问题讨论】:
标签: swagger akka-http swagger-akka-http