I'm trying to implement swagger on my routes with akka-http
10.0.0 and swagger-akka-http
0.8.2. It works well but query parameter with type : UUID and Long are considered as undefined.
Should I use format?
How to use it?
Here is one of my route :
@GET @Path("/{publisher_id}/{app_id}")
@ApiOperation(
value = "get a app Installation stat for an app ID",
notes = "Returns a session based on ID",
httpMethod = "GET"
)
@ApiImplicitParams(Array(
new ApiImplicitParam(name = "app_id", value = "ID of app that needs to be fetched, format com.totot.plop ", required = true, dataType = "string", paramType = "path"),
new ApiImplicitParam(name = "publisher_id", value = "publisher id : publisher_id ", required = true, dataType = "UUID?", paramType = "path"),
new ApiImplicitParam(name = "date_start", value = "Timestamp start date ", required = true, dataType = "LONG???" , paramType = "query"),
new ApiImplicitParam(name = "date_end", value = "Timestamp end date", required = true, dataType = "LONG???", paramType = "query"),
new ApiImplicitParam(name = "access_token", value = "session token of the user ", required = true, dataType = "UUID????", paramType = "query")
))
@ApiResponses(Array(
new ApiResponse(code = 404, message = "App not found"),
new ApiResponse(code = 400, message = "Invalid ID supplied"),
new ApiResponse(code = 401, message = "access token invalid")
))