@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;
}

@ 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 .
