Contributions
Re: GitHub integration - controller keeps getting blown away
Heyjoejoyce, Thanks so much for your reply. The issue is I actually wantthe controller file to be altered/regenerated when the API spec changes. Here is the essential question: can this tool regenerate the controller/routes definition file (depending on your web server implementation) when the API spec changes? Obviously the code is going to get out of synch with the yaml API spec otherwise. Or can the SwaggerHub tool not do this? Just need to know either way so I can plan for an alternative but it must be automated. Cheers, Katie882Views0likes1CommentGitHub integration - controller keeps getting blown away
Hi, We have set up integration with the version control system for our nodejs server in GitHub. Under Fully Managed Paths, I have put a reference to my controller which was previously generated from the openapi.yml file during my nodejs server stub generation (see attached file). So my Fully Managed Paths looks like this: api/* controllers/FeaturesController.js And my open api spec states that it needs this FeaturesController via: x-swagger-router-controller: FeaturesController x-eov-operation-handler: controllers/FeaturesController But in GitHub, my FeaturesController keeps getting blown away whenever I synch my code. We just want it to stay in synch with the openapi.yml file. What are we doing wrong please? Many thanks, Katie926Views0likes3Comments