#scala #swagger
Вопрос:
Привет, я использую swagger в своем проекте для зависимости документации API: com.github.swagger-akka-http.2.0.5
мой ответ с маршрута выглядит так:
{
"someKey1":true,
"someKey1":false,
"someKey1":true
}
Поэтому я не могу найти, как я могу определить это в ответе
@Path("/v1/route")
@GET
@Produces(Array("application/json"))
@Operation(
description = "descs",
operationId = "route",
tags = Array("integration"),
responses = Array(
new ApiResponse(
responseCode = "200",
description = "Successful response",
content =
Array(new Content(schema = new Schema(??????????????? how to define map)))),
new ApiResponse(
responseCode = "400",
description = "The request contains bad syntax or cannot be fulfilled"
),
new ApiResponse(
responseCode = "500",
description = "There was an internal server error"
)
)
)