title: SwaggerUI Asp.Net Core - How to ref .json files
body: <p>How would you add a swagger.json file to SwaggerUI? So far I only was able to generate one and it automatically &quot;refs&quot; itself in the web app and is callable from /swagger/v1/swagger.json, the only help I was able to find was about URL routing but how does swagger find the specifications in your project?</p>
  <p>I would also be able to add multiple .json files to SwaggerUI, the documentation says to do this way</p>
  <pre><code>app.UseSwaggerUI(c =&gt;
               {
                 c.SwaggerEndpoint(&quot;/swagger/v1/swagger.json&quot;, &quot;SwaggerDemo v1&quot;);
                  c.SwaggerEndpoint(&quot;/swagger/v2/swagger.json&quot;, &quot;SwaggerDemo v2&quot;);
               });
  </code></pre>
  <p>But this is only routing where does swagger find this JSON file?</p>
  <p>Isn't there a way to do something like this?</p>
  <pre><code>app.UseSwaggerUi3(c =&gt; c.AddSpec(&quot;./Swagger/swagger1.json&quot;));
  </code></pre>
  <p>Is there something I am missing?</p>