Share via

Issue of Swagger, Postman

Jonathan 65 Reputation points
2026-02-03T04:28:19.02+00:00

Hi,

Further to

https://learn.microsoft.com/en-us/answers/questions/5750852/issue-to-the-deployed-app

How to check and ensure Swagger, Postman is functioning well? On the client, how to trigger that Swagger, Postman of the server?

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Jack Dang (WICLOUD CORPORATION) 18,145 Reputation points Microsoft External Staff Moderator
    2026-02-06T04:19:02.7133333+00:00

    Hi @Jonathan ,

    The problem is a package version conflict. Swashbuckle.AspNetCore 10.1.1 needs Microsoft.OpenApi ≥ 2.4.1, but your project has 1.6.28.

    To fix it:

    1. Update Microsoft.OpenApi:
    dotnet add package Microsoft.OpenApi --version 2.4.1
    
    1. Clean and rebuild:
    dotnet clean
    dotnet build
    
    1. Run the app and check Swagger:
    http://<your-server-address>/swagger
    

    Was this answer helpful?

    1 person found this answer helpful.

  2. Jack Dang (WICLOUD CORPORATION) 18,145 Reputation points Microsoft External Staff Moderator
    2026-02-03T06:50:32.9033333+00:00

    Hi @Jonathan ,

    Thanks for reaching out.

    To make sure Swagger and Postman are working correctly with your deployed Web API, you can follow these steps:

    1. Check Swagger
    2. Check with an API client
      • Open Postman and create a request to one of your API endpoints using the correct HTTP method (GET, POST, PUT, DELETE) and required headers/body content.
      • Send the request and verify the response matches what you expect. This confirms your API can be accessed externally and is responding correctly.
      • Even though the official Microsoft docs don’t have a Postman tutorial for every scenario, you can use the API’s OpenAPI/Swagger JSON file as a source for Postman (import the swagger.json URL into Postman to get a full collection of endpoints). The official OpenAPI specification support in ASP.NET Core lets tools like Postman and Swagger UI understand your API surface: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/openapi/using-openapi-documents?view=aspnetcore-10.0
    3. Common Things to Verify
      • If your API is hosted as an IIS subsite, make sure your app is configured to use the correct path base.
      • Ensure the Application Pool in IIS is started, running the correct .NET runtime, and has access to your deployed files.
      • Check logs or console output if any requests fail. This helps you identify configuration or runtime errors.
      • For general guidance on deploying ASP.NET Core Web APIs (including serving Swagger/OpenAPI in production), see the official publish guidance: https://learn.microsoft.com/en-us/aspnet/core/tutorials/publish-to-iis?view=aspnetcore-10.0

    Hope this helps! If my answer was helpful - kindly follow the instructions here so others with the same problem can benefit as well.

    Was this answer helpful?

    1 person found this answer helpful.

  3. Q&A Assist
    2026-02-03T04:28:25.3133333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To ensure that Swagger and Postman are functioning well, you can follow these steps:

    1. Swagger:
      • Verify that your Swagger configuration is correctly set up in your application. Ensure that you are using the correct version of Swashbuckle for your .NET version.
      • Check if the Swagger UI is accessible by navigating to the Swagger endpoint (usually /swagger or /swagger/index.html in your application).
      • Test the API endpoints listed in Swagger to see if they return the expected responses.
      • If you're using JWT authentication, ensure that you are correctly authorizing requests in the Swagger UI by clicking on the "Authorize" button and entering a valid token.
    2. Postman:
      • Open Postman and create a new request to the API endpoint you want to test.
      • Set the request method (GET, POST, etc.) and enter the URL of the endpoint.
      • If your API requires authentication, make sure to include the appropriate headers (e.g., Authorization header with the Bearer token).
      • Send the request and check the response to ensure it matches the expected output.
      • You can also use Postman to automate tests and check for various response codes and data formats.

    By following these steps, you can confirm that both Swagger and Postman are functioning correctly with your API.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.