title: Add `host`, `basePath` and `schemes` to swagger.json using Swashbuckle Aspnetcore
body: <p>I am using official doc step by step method to configure Swagger UI and generate Swagger JSON file in my ASP.NET core API application.</p>
  
  <p><a href="https://docs.microsoft.com/en-us/aspnet/core/tutorials/getting-started-with-swashbuckle?view=aspnetcore-2.2&amp;tabs=visual-studio" rel="noreferrer">Get started with Swashbuckle and ASP.NET Core</a></p>
  
  <p>If I look at my generated swagger.json file - it is missing three important properties <code>host</code>, <code>basePath</code> and <code>schemes</code></p>
  
  <p>Please help me understand what piece of code can I add so the swagger.json that gets generated will have following mentioned properties/values.</p>
  
  <p>Here is an ideal swagger.json - give attention to the <code>host</code>, <code>basePath</code> and <code>schemes</code> values which are missing if I follow the documentation code in my application</p>
  
  <pre><code>{
    "swagger": "2.0",
    "info": {
      "version": "v1",
      "title": "Demo API Title"
    },
    "host": "some-url-that-is-hosted-on-azure.azurewebsites.net",
    "basePath": "/api",
    "schemes": ["https"],
    "paths": {
      "/Account/Test": {
        "post": {
          "tags": [
            "Admin"
          ],
          "summary": "Account test method - POST",
          "operationId": "AccountTest",
          "consumes": [],
          "produces": [
            "text/plain",
            "application/json",
            "text/json"
          ],
          "parameters": [],
          "responses": {
            "200": {
              "description": "Success",
              "schema": {
                "type": "boolean"
              }
            }
          }
        }
      }
    },
    "definitions": {
      "NumberSearchResult": {
        "type": "object",
        "properties": {
          "number": {
            "type": "string"
          },
          "location": {
            "type": "string"
          }
        }
      }
    },
    "securityDefinitions": {
      "Bearer": {
        "name": "Authorization",
        "in": "header",
        "type": "apiKey",
        "description": "Authorization. Example: \"Authorization: Bearer {token}\""
      }
    },
    "security": [
      {
        "Bearer": []
      }
    ]
  }
  </code></pre>