Thanks, for your feedback Chamila! I will update the wiki docs accordingly.
Regards, Mariangela *--* *Mariangela Hills* PMC Member & Committer of Apache Stratos Senior Technical Writer WSO2, Inc. lean.enterprise.middleware. w: http://wso2.com On Sun, May 10, 2015 at 8:22 PM, Chamila De Alwis <[email protected]> wrote: > Hi Mary, > > I don't think we have a separate method to enable repository > synchronization via the REST API, in the new version. Isn't it enabled by > default? > > I had a look at Stratos 4.0.0 REST API and found that two API methods (*POST > "/reponotification"* and *POST "/cartridge/sync"*) fulfilled the same > function of updating the git repository by sending ArtifactUpdatedEvent. > In the new API *"/reponotification"* is changed to* "/repo/notify"*. What > it does is to immediately send events to update the git repository. > > Therefore the description in the REST API documentation should be not > "Enable notifications to be received from the Git repository.". It should > be something like "Update Git repository to the newest commit.". > > Furthermore, the payload URL on the "Automated Deployment Synchronization" > page's section "Setting a webhook at GitHub" [1] should be updated to > "https://admin:admin@<STRATOS_HOST>:9443/api/repo/notify" > > [1] - > https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Automated+Deployment+Synchronization#id-4.1.0AutomatedDeploymentSynchronization-SettingawebhookatGitHub > > > > Regards, > Chamila de Alwis > Software Engineer | WSO2 | +94772207163 > Blog: code.chamiladealwis.com > > > > On Sun, May 10, 2015 at 4:15 PM, Mariangela Hills <[email protected]> > wrote: > >> Hi Devs, >> >> Can Git repository notifications be enabled via CLI like it can be done >> via REST API [1]? >> >> [1] >> https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Enabling+Git+Repository+Notifications+via+REST+API >> >> >> Regards, >> Mariangela >> >> >> >> >> *--* >> *Mariangela Hills* >> PMC Member & Committer of Apache Stratos >> Senior Technical Writer >> WSO2, Inc. >> lean.enterprise.middleware. >> m: +94 773 500185 >> w: http://wso2.com >> >> >
