Package org.wso2.msf4j.swagger
Class SwaggerDefinitionService
- java.lang.Object
-
- org.wso2.msf4j.swagger.SwaggerDefinitionService
-
- All Implemented Interfaces:
org.wso2.msf4j.SwaggerService
@Path("/swagger") public class SwaggerDefinitionService extends java.lang.Object implements org.wso2.msf4j.SwaggerServiceThis service returns the Swagger definition of all the APIs of the microservices deployed in this runtime.
-
-
Constructor Summary
Constructors Constructor Description SwaggerDefinitionService()SwaggerDefinitionService(org.wso2.msf4j.MicroservicesRegistry serviceRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetSwaggerDefinition(java.lang.String path)voidinit(org.wso2.msf4j.MicroservicesRegistry serviceRegistry)
-
-
-
Method Detail
-
init
public void init(org.wso2.msf4j.MicroservicesRegistry serviceRegistry)
- Specified by:
initin interfaceorg.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
-
-