title: How do you programmatically access the Swagger.json file after it has been generated
body: <p>I am trying to create a dynamic rest api that uses Swagger for documentation in .NetCore (using <a href="https://github.com/domaindrivendev/Swashbuckle.AspNetCore" rel="nofollow noreferrer">Swashbuckle.AspNetCore</a>).
  Dynamic in the sense that there is only 1 controller with 1 possible response to begin with, but a user can add "end points" by POSTing to the service, which then later the controller can translate the new routes to respond accordingly</p>
  
  <p>In order to do this, I need to be able to access and change the swagger.json file as well as have the UI change to reflect the changes - is this possible? if so how?</p>
  
  <p>Note: I know I can access and see the swagger doc by navigating to /{documentname}/swagger.json but this does not allow me to change it</p>