List all exposed/available endpoints of RestEasy service?

前端 未结 5 2237
甜味超标
甜味超标 2021-02-12 15:51

Is it possible to list all exposed/available endpoints of RestEasy service in a simple way?

5条回答
  •  半阙折子戏
    2021-02-12 16:23

    There is a RestEasy plugin, "stats", which exposes .../resteasy/registry.

    It needs to be registered in web.xml:

    
        resteasy.resources
        org.jboss.resteasy.plugins.stats.RegistryStatsResource
    
    

    Example response:

    
        
            
            
        
        
            
        
        
            
                application/xml
                application/json
            
        
        
            
                text/xml
                application/json
            
            
                text/xml
                application/json
            
        
    
    

    Maven dependency:

    
        org.jboss.resteasy
        resteasy-jaxb-provider
        3.0.8.Final
    
    

    See eg. EAP docs and this EAP 7 Jira

提交回复
热议问题