@ GET @ Produces ( MediaType . APPLICATION_JSON ) @ Path ( "/help" ) public Map < String , List < ? extends Object > > help ( ) { Map < String , List < ? > > result = new LinkedHashMap <> ( ) ; List < EndpointHelpDto > endpoints = describeEndpoints ( getEndpoints ( ) ) ; if ( endpoints != null && ! endpoints . isEmpty ( ) ) { result . put ( "endpoints" , endpoints ) ; } List < MethodHelpDto > methods = describeMethods ( ) ; if ( methods != null && ! methods . isEmpty ( ) ) { result . put ( "methods" , methods ) ; } return result ; }
Returns the help for the endpoint . For the context root it will return the endpoint help for all major endpoints . For a specific endpoint it will return the method help for the endpoint .