Base solution for your next web application
Open Closed

Swagger UI Does Not Display #12111


User avatar
0
indiominerals created

We are trying to get the Swagger UI running on our new .NET Core MVC/JQuery Project to view and test our new AppServices The documentation (https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Features-Mvc-Core-Swagger-UI) does not match our 13.2 version project. The startup code is different and Swagger was already configured as enabled. What is the URL for the Swagger UI?

When I navigate to this: https://localhost:44302/swagger/v1/swagger.json

I get this:

{ "openapi": "3.0.1", "info": { "title": "AppraisalWell API", "version": "v1" }, "paths": { "/api/services/app/Account/IsTenantAvailable": { "post": { "tags": [ "Account" ], "operationId": "ApiServicesAppAccountIstenantavailablePost", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/IsTenantAvailableInput" } }, "text/json": { "schema": { "$ref": "#/components/schemas/IsTenantAvailableInput" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/IsTenantAvailableInput" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/IsTenantAvailableOutput" } }, "application/json": { "schema": { "$ref": "#/components/schemas/IsTenantAvailableOutput" } },


2 Answer(s)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi indiominerals

    As shown in the screenshot below, the Swagger UI endpoint is set to /swagger. When you go to this url https://localhost:44302/swagger you will reach Swagger UI.

    If you get an error here, it will be sufficient to specify it as Index [HttpGet] in the EntityChangesController. I created an issue for this problem, you can follow the changes here.

  • User Avatar
    0
    indiominerals created

    Thank you!