I am trying to create a dynamic rest api that uses Swagger for documentation in .NetCore (using Swashbuckle.AspNetCore). 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
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?
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