QuickDevGuide

Home › .NET Core Web API

API Verification — Swagger & Postman — .NET Core Web API

OpenAPI (Swagger) The API exposes an OpenAPI document at /openapi/v1.json in development mode. To browse the API interactively with Swagger UI: Browse to http://localhost:5101/swagger to test endpoints interactively. Postman Verification Import: File → Import → URL → http://localhost:5101/openapi/v1.json Postman auto-generates a collection with all endpoints Set up environment variable {{baseUrl}} = http://localhost:5101 For protected endpoints, add Authorization: Bearer {{token}} in collection headers VS Code REST Client Create an .http file in the project root: curl Verification

Key Takeaways