Class SwaggerDefinitionService

  • All Implemented Interfaces:
    org.wso2.msf4j.SwaggerService

    @Path("/swagger")
    public class SwaggerDefinitionService
    extends java.lang.Object
    implements org.wso2.msf4j.SwaggerService
    This service returns the Swagger definition of all the APIs of the microservices deployed in this runtime.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response getSwaggerDefinition​(java.lang.String path)  
      void init​(org.wso2.msf4j.MicroservicesRegistry serviceRegistry)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SwaggerDefinitionService

        public SwaggerDefinitionService()
      • SwaggerDefinitionService

        public SwaggerDefinitionService​(org.wso2.msf4j.MicroservicesRegistry serviceRegistry)
    • Method Detail

      • init

        public void init​(org.wso2.msf4j.MicroservicesRegistry serviceRegistry)
        Specified by:
        init in interface org.wso2.msf4j.SwaggerService
      • getSwaggerDefinition

        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response getSwaggerDefinition​(@QueryParam("path")
                                                              java.lang.String path)
                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception