I'm using spring-mvc
to create servlets like:
@RestController
public class MyServlet {
@GetMapping("/test")
public MyRsp test(MyReq req) {
//...
}
}
Now if the user accesses the root of my app localhost:8080/my-app
, it should show a list of GET
and POST
methods available. At best with possible input parameters, acceptable headers etc.
Question: is that possible with any spring framework, like HATEOAS
?
I'd expect a framework to auto detect any @RestController
and included methods.
Or would I have to create that overview page myself?