Reddit
reddit.com › r/csharp › i don't understand what swagger is or how to use it.
r/csharp on Reddit: I don't understand what swagger is or how to use it.
November 20, 2020 -
I am trying to connect to an Amazon API and they are pushing using swagger. From what little I understand it is just a descriptor/framework for how the API works in the code. Can someone point me towards a resource on how to use it in .NET? Specifically in visual studio? I just don't get it at all and it seems like it should be simple.
Top answer 1 of 4
4
In .NET core 3.1 on VS you can just create a client. Right click on the project and run Add->REST API Client. Then you can put your swagger file in and it will autogenerate a client just like if you used SOAP/WSDL (if you've used that technology before). It can actually be done in a .NET standard 2.0 project but MS neglected to make VS support it there. If you want to do a .NET standard client just create a 3.1 project, add your client and then edit the proj file to make it a .NET standard library.
2 of 4
3
swagger is a REST API documentation format. With it you can create clients that consume or expose those definitions. Read here for more info
Factsheet
OpenAPI OpenAPI Specification
Year started 2010; 16 years ago (2010)
First published 10 August 2011; 14 years ago (2011-08-10)
OpenAPI OpenAPI Specification
Year started 2010; 16 years ago (2010)
First published 10 August 2011; 14 years ago (2011-08-10)
OpenAPI Initiative
openapis.org
OpenAPI Initiative – The OpenAPI Initiative provides an open source, technical community, within which industry participants may easily contribute to building a vendor-neutral, portable and an open specification for providing technical metadata for REST APIs – the “OpenAPI Specification” (OAS).
This allows people to understand how an API works, how a sequence of APIs work together, generate client code, create tests, apply design standards, and much, much more. ... Copyright © The Linux Foundation®. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks.
How to open local files in Swagger-UI - Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most. Learn more about Collectives ... Bring the best of human thought and AI automation together at your work. Explore Stack Internal ... I'm trying to open my self generated swagger specification file my.json ... More on stackoverflow.com
ELI5: API Swagger
A web API is a system for computer programs to contact other systems and make requests from them. For example, Reddit has an API that lets bots request information about "stuff" on the site & "do stuff" on the site. A REST API is an API that follows certain design ideas, like giving every "thing" in the system a unique URL and only using "GET" requests for reading instead of modifying data. "API Swagger" isn't a thing. "Swagger" is a tool computer programmers use to develop APIs. More on reddit.com
ASP Core Web API - Swagger - What is swagger.json file
swagger.json contains the rules for rendering and managing the swagger UI that you see when creating a web API. The json file is generated at runtime, because it's based on what your web API currently looks like. You can tell the browser to show you the json file by clicking the little json link at the top left part of the page. More on reddit.com
ELI5: Software Development - What is the difference between Swagger and Postman simply put?
My best guess: Swagger defines how the information should be structured in a message body. Postman is a tool you use to send something to a server and see its response. More on reddit.com
Videos
18:32
Swagger API documentation tutorial for beginners 2023 - YouTube
How to Create and Test API with Swagger Tutorial - For ...
16:57
Swagger UI Tutorial for REST API Developers - YouTube
03:51
How to use the Swagger UI - YouTube
10:09
Swagger API documentation tutorial for beginners - 1 - Intro to ...
33:06
How to Create and Test API with Swagger Tutorial - For Dummies ...
Document360
docs.document360.com › docs › how-to-use-swagger
How to use Swagger
January 31, 2026 - Type a name for the API token in the Enter token name. Select the required HTTP method(s). You have four methods under Allowed method(s): GET, PUT, POST and DELETE. You can only use the generated token for the selected method(s).
Swagger
swagger.io › tools › open-source › getting-started
Getting Started with OpenAPI Tools | Swagger Open Source
Swagger is the most widely used tooling ecosystem for developing APIs with the OpenAPI Specification(OAS). Learn more about out open source and professional toolkit.
Swagger
swagger.io › docs › open-source-tools › swagger-ui › development › setting-up
Setting up a dev environment | Swagger Docs
Files in dev-helpers should NOT be committed to git. The exception is if you are fixing something in index.html, oauth2-redirect.html, dev-helper-initializer.js, or introducing a new support file. Swagger UI includes an ESLint rule definition. If you use a graphical editor, consider installing an ESLint plugin, which will point out syntax and style errors for you as you code.
Swagger
swagger.io › specification
OpenAPI Specification - Version 3.1.0 | Swagger
The OpenAPI Specification defines a standard interface to RESTful APIs which allows both humans and computers to understand service capabilities without access to source code, documentation, or network traffic inspection.
GitHub
github.com › swagger-api › swagger-ui
GitHub - swagger-api/swagger-ui: Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API. · GitHub
swagger-ui-dist is a dependency-free module that includes everything you need to serve Swagger UI in a server-side project, or a single-page application that can't resolve npm module dependencies. swagger-ui-react is Swagger UI packaged as a React component for use in React applications.
Starred by 28.8K users
Forked by 9.3K users
Languages JavaScript 94.7% | SCSS 4.2%
GeeksforGeeks
geeksforgeeks.org › python › swagger-ui
Swagger UI - GeeksforGeeks
July 23, 2025 - It allows developers, testers, and consumers to understand the endpoints, parameters, request and response structures, and authentication methods of an API · API Testing: Swagger UI provides an interactive interface for testing APIs. Users can make real API requests and see the responses directly within the Swagger UI interface.
Pokémon Database
pokemondb.net › move › swagger
Swagger | Pokémon moves | Pokémon Database
Swagger confuses the target and raises its Attack by two stages. If one of the two effects cannot be invoked (for example the target is already confused or its Attack is already raised to the maximum of +6 stages), Swagger still works and will invoke the other effect.
Swagger
swagger.io › tools › swagger-ui
REST API Documentation Tool | Swagger UI
Swagger UI allows development team to visualize and interact with the API’s resources without having any of the implementation logic in place. Learn more.
Top answer 1 of 16
78
I could not get Adam Taras's answer to work (i.e. using the relative path ../my.json).
Here was my solution (pretty quick and painless if you have node installed):
- With Node, globally install package http-server
npm install -g http-server - Change directories to where my.json is located, and run the command
http-server --cors(CORS has to be enabled for this to work) - Open swagger ui (i.e. dist/index.html)
- Type
http://localhost:8080/my.jsonin input field and click "Explore"
2 of 16
40
Simplest way:
Run npx open-swagger-ui --open <path or URL>
That’ll start a local Web server that has the Swagger UI built in, and will open your browser right to the page, preloaded with the JSON file you specify.
LogRocket
blog.logrocket.com › home › documenting your express api with swagger
Documenting your Express API with Swagger - LogRocket Blog
June 4, 2024 - The first is a module that allows you to feed a Swagger UI (auto-generated views based on the swagger-ui project) from a swagger.json file or an inline object. The second project is about integrating Swagger using JSDoc comments throughout your code. This is useful, especially when you have extensive APIs and dozens of models.
I'd Rather Be Writing
idratherbewriting.com › learnapidoc › pubapis_swagger.html
Swagger UI tutorial | I'd Rather Be Writing Blog and API doc course
1 week ago - Swagger UI submits the request and shows the curl that was submitted. The Responses section shows the response. (If you select JSON rather than XML in the “Response content type” drop-down box, the response’s format will be shown in JSON.) Important: The Petstore is a functioning API, ...