In java spark web framework a route is defined as
get("/", (request, response) -> {
// Show something
});
In my application I define multiple routes. Is there any way I can get all the exposed routes of the application?
In java spark web framework a route is defined as
get("/", (request, response) -> {
// Show something
});
In my application I define multiple routes. Is there any way I can get all the exposed routes of the application?
As far as I know, there's no way to automatically find REST routes as they do not have a standard registry service. Although, you can document them using Swagger or even store them using chrome applications such as Postman or Advanced Rest Client.
It's possible now in spark 2.9.4
output