简体   繁体   中英

How to use source control with wso2 api manager?

We are using wso2 api manager to deploy RESTful apis. The swagger definitions generated by api manager needs to be stored in source control.

Is there a way to keep swagger definition generated by api manager and source control in sync? Ideally, it should be 2 way sync ie if the swagger definition changes in source control it should automatically update api manager and vice versa. we are open to using any source control that supports this functionality

Even better, we would like to have complete api (swagger + end point + api specific meta data) in some version control. Currently only option is to export the api using command line tool and store the zip file in source control.

API Manager don't keep the swagger in the file system, it is saved in database as registry enry.

All of the WSO2 products support clustering where the changes in the master node is synchronized through SVN between other worker nodes. I hope, you can use it for the above purpose.

Have a look on Introduction to Deployment Synchronizer , all the meta file related to API, endpoints are committed to SVN repo when ever there is a change.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM