Hi all, Is there a specific reason for $subject?
In Swagger specification [1] still the basePath field which is used to keep the api context has been defined. In our Swagger 1.2 based API definition generation we have considered adding basePath [2] However our Swagger 2.0 definition generation has omitted it [3]. Therefore neither swagger.json stored in registry or shown in API publisher does not contain API's context while swagger.json shown in API Store has it due to a fix in [4] Since swagger.json stored in the registry does not contain the basePath, Swagger definition retrieved by APIM REST API does not contain the API context. I think it would be better to add basePath in the Swagger definition as we will be missing the API context otherwise. Thanks. [1] http://swagger.io/specification/ [2] https://github.com/wso2/carbon-apimgt/blob/8e5b065f3149d75e9eea3d63fe3f68b24503e6b4/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/definitions/APIDefinitionFromSwagger12.java#L101 [3] https://github.com/wso2/carbon-apimgt/blob/8e5b065f3149d75e9eea3d63fe3f68b24503e6b4/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/definitions/APIDefinitionFromSwagger20.java#L254 [4] https://github.com/wso2/carbon-apimgt/blob/8e5b065f3149d75e9eea3d63fe3f68b24503e6b4/features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/site/blocks/api-doc/ajax/get.jag#L126 -- Best Regards, *Thilini Cooray* Software Engineer Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194> E-mail : [email protected] WSO2 Inc. www.wso2.com lean.enterprise.middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
