Questions tagged [swagger-akka-http]
8 questions
1
vote
2 answers
Scala signature Http has wrong version expected: 5.0 found: 5.2 in Http.class
I am using akka.http in my Scala code in Intellij. But when I try to build my project I get the following error:
scalac: error while loading Http, class file…

abhishek
- 29
- 4
1
vote
2 answers
swagger-akka-http 2.x Set List of Objects in the response
I have a problem. I want to send a list of objects in the response of an API using Swagger. type = "array" does not work for me.
I saw a topic Set List of Objects in Swagger API response , but it is an old version of lib. Annotation has changed.…

Slavik Muz
- 1,157
- 1
- 15
- 28
1
vote
2 answers
Swagger on Scala, type uuid and long are undefined
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 :
…

thomas poidevin
- 176
- 2
- 20
0
votes
1 answer
Swagger Scala annotation for exemples
Am using swagger annotation in a scala project (using swagger-akka-http
And am trying to put some explicit examples of payloads
Trying this :
@POST
@Consumes(Array(MediaType.APPLICATION_JSON))
@Produces(Array(MediaType.APPLICATION_JSON))
…

Flow
- 57
- 5
0
votes
1 answer
Swagger - Why is Swagger creating a request body field when I have not written an annotation for one?
I have written a swagger ui for a GET request that doesn't need a request body. I haven't used the @RequestBody annotation so why is Swagger bringing up a request body field on the ui? Even if I leave it empty, it is causing my API requests to fail…

suleydaman
- 463
- 1
- 7
- 18
0
votes
1 answer
Swagger-Akka-Http: List of objects in the request body
I'm using swagger-akka-http to built Swagger docs for my Akka HTTP service.
My service has a POST method accepting a List of Characteristic.
@ApiOperation(value = "Fetch offerings by characteristics", httpMethod = "POST")
…

Alex Elkin
- 574
- 6
- 11
0
votes
1 answer
Swagger is adding additional body parameter for get method
I'm using swagger akka-http wrapper, Currently for my get request swagger is adding additional body parameter in swagger spec of type string
@Path("/{id}/status")
@ApiOperation(httpMethod = "GET", response = classOf[JobStatus], value = "Returns…

vipin
- 45
- 2
- 6
0
votes
1 answer
How to use swagger with akka-http & basic auth
I am trying to document an akka-http API using swagger & swagger-akka-http. This blog post gave me a good start, but now I am stuck, trying to document the fact that the API is using basic auth.
what I have is:
@Path("/foo")
@Api(value = "/foo",…

kostja
- 60,521
- 48
- 179
- 224