I have a small Akka Http server. Is there a way of listing all server routes/services?
Asked
Active
Viewed 2,722 times
9
-
You could give this library a try, which applies Swagger's form of endpoint documentation to Akka Http: https://github.com/swagger-akka-http/swagger-akka-http – cmbaxter Jul 19 '16 at 16:14
-
I think the OP's question is more about getting the routes of the server in some programmatic fashion i.e once the server is up & running, is it possible to get the list of routes/endpoints it serves ? – Agraj Jun 06 '17 at 10:42
1 Answers
4
Currently this isn't simple without creating your own wrapper around the akka-http Scala DSL. More discussion here: https://github.com/akka/akka-http/issues/201
Long story short the Scala DSL isn't conducive to introspection.

Kevin
- 313
- 2
- 12