Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

868
Views
.Net Core Web API Swagger No se encontró ninguna página web para la dirección web: http://localhost/swagger

Estoy trabajando en la API web principal de .NET y quería integrar el proyecto con Swagger.

He seguido todos los pasos de este artículo https://dev.to/amoenus/how-to-integrate-swagger-ui-in-a-net-core-web-api-application-amoenus-dev-13o1

Ahora el proyecto no se ejecuta en IIS, así que para navegar a swagger escribí http://localhost:8080/swagger.

Porque tengo esto en StartUp

 app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API"); c.RoutePrefix = string.Empty; });

Y, sinceramente, asumí que el puerto es 8080 porque no sé cuál es mi puerto.

¿Alguien puede decirme si puedo tener swagger si no estoy ejecutando IIS y cómo saber exactamente mi puerto localhost?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

La configuración está en launchSettings.json y está en la carpeta Propiedades en la raíz de la API web. A continuación se muestra una muestra de mi configuración.

 "profiles": { "test-web-api": { "commandName": "Project", "dotnetRunMessages": "true", "launchBrowser": true, "launchUrl": "swagger", "applicationUrl": "https://localhost:5001;http://localhost:5000", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "local" } }, "IIS Express": { "commandName": "IISExpress", "launchBrowser": true, "launchUrl": "swagger", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "local" }, "use64Bit": true } }
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!