Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Web.Host - How to open swagger automatically? #3516


User avatar
0
bilalhaidar created

Hello, I noticed that when Web.Host runs, automatically swagger opens and not anything else. How is that configured in this project?

Also, all the Controllers (TokenAuthentication and the ProfileController, etc.) They are defined in the Web.Core project and added to IoC, that's why they are available when requested?

Thanks


3 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    Hi

    Startup url is configured in launchSettings.json Further information, read Microsoft's Document

  • User Avatar
    0
    bilalhaidar created

    Thanks @alper,

    OK I can see the URL configured. But as an App, how come it doesnt open by default the ValueController that comes with ASP.NET Core Web API? Is it because of this Url?

    Then, how is swagger opening, is it configured to run on this url configured?

  • User Avatar
    0
    alper created
    Support Team

    it is configured to run this url on startup. you can change this if you want