Click here to Skip to main content
15,886,110 members
Everything / Swagger

Swagger

swagger

Great Reads

by Jose Motta
Home of Things based on Raspberry Pi, Linux, Swagger, Docker & .NET Core
by Zijian
Code First approach for generating client APIs for ASP.NET Core Web API, in C# and in TypeScript for jQuery, Aurelia, Axios and Angular 2+.
by Ivan Yakimov
How to show XML comments for enum members in Swagger UI
by Zijian
Use the codes generated by OpenApiClientGen in real world applications

Latest Articles

by Zijian
Use the codes generated by OpenApiClientGen in real world applications
by Zijian
Construct Angular Reactive Forms of client data models through generated Angular TypeScript codes
by Zijian
Construct Angular Reactive Forms of client data models through generated codes
by Zijian
Code First approach for generating client APIs for ASP.NET Core Web API, in C# and in TypeScript for jQuery, Aurelia, Axios and Angular 2+.

All Articles

Sort by Score

Swagger 

13 Mar 2018 by Jose Motta
Home of Things based on Raspberry Pi, Linux, Swagger, Docker & .NET Core
12 Sep 2023 by Zijian
Code First approach for generating client APIs for ASP.NET Core Web API, in C# and in TypeScript for jQuery, Aurelia, Axios and Angular 2+.
16 Apr 2021 by Ivan Yakimov
How to show XML comments for enum members in Swagger UI
7 Jan 2024 by Pete O'Hanlon
Out of the box, you can't automatically generate API documentation for JsonResult. As you aren't returning a concrete type, with a well defined structure for a particular result, it's difficult for Swashbuckle to know what to produce. What you...
1 Feb 2024 by Zijian
Use the codes generated by OpenApiClientGen in real world applications
10 Jan 2024 by Zijian
Construct Angular Reactive Forms of client data models through generated Angular TypeScript codes
9 Jan 2024 by Zijian
Construct Angular Reactive Forms of client data models through generated codes
3 Jan 2019 by RickZeeland
I had a similar problem with the JSON serializer, I could solve it by using: var myDate = new DateTime(2019, 1, 1, 12, 0, 0, DateTimeKind.Local); If you don't want the trailing Timezone information, use: var myDate = new DateTime(2019, 1, 1, 12, 0, 0, DateTimeKind.Unspecified); Also see:...
6 Aug 2022 by Sauradipta Chaudhury
Easiest way to implement Swagger based OAS 3 documentation support for your Azure Functions built using .NET 6
3 Jan 2019 by chaks nag
By default date time field is displaying UTC time zone, how can it be changed to current time zone in swagger in .Net core. What I have tried: I have not done any code changes except using swashbuckle.AspNetcore 4.0.1 nuget package. when trying to test api, in the post request the start date...
7 Jan 2019 by AshishvermaMCA
I'm getting issue when i run api with swagger ui, error are 'failed to parse JSON/YAML response' on deployment server but in local environment its running fine. So, i did't get exact error on browser as well. Can any one help me quickly. What I have tried: In local environment its working fine...
22 Aug 2019 by User 14447995
I've two parameters like Register No. and UserName. I Entered Register No. Like "###$$$$%%%%" and UserName Like "TESTPC\TEMP" than result is successful but no record shown. Instead of above if I Entered. Like UserName. I Entered Register No. Like "###$$$$%%%%" and UserName Like "TESTPC\TEMP"...
22 Aug 2019 by BillWoodruff
Use Swashbuckle.OData to generate Swagger: [^] also see: [^] Why not try Swagger support: [^] Are you sure Swagger supports OData: see [^] and [^]
1 Oct 2019 by OriginalGriff
Quote: I want to filter the record ... without primary key or without using any column name. You do realize that that request is just nonsense, don't you? You have a set of values in a table that you which to filter down to: in your case "Record_1" to "Record_100" which means that you have to...
1 Oct 2019 by Maciej Los
If i understand you well, you're talking about data pagination... Check this out: Paging with ASP.NET Web API OData – Youssef M's Blog[^]
19 Jun 2022 by istudent
I using swashbuckle v 5.6.0 for api documentation and ui for test in asp.net web api2. I do not want give ability for the user to post data from swagger ui in production. How do I disable it? What I have tried: GlobalConfiguration.Configuration .EnableSwagger(c => ...
7 Jan 2020 by MadMyche
Have you looked into there GIT repository and read this issue? Disabling swagger ui · Issue #301 · domaindrivendev/Swashbuckle · GitHub[^]
7 Dec 2022 by SajjadZare
I add swagger to my project and use authorization. It works properly with Postman but when want to use with Swagger get 401 Undocumented What I have tried: public void ConfigureServices(IServiceCollection services) { ... ...
30 Aug 2020 by Sandeep Mewara
I don't see where are you setting the bearer token in your code. You define there would be one though. Would suggest you to compare the network call when of your request when sent through swagger and via postman and you should observe that...
2 Nov 2020 by DevCodeproject1
Using Swagger (Swashbackle Package) in the .NET framework for WEB API specifications. The Swagger UI is completely different from the .NET Core's swagger UI. Is it possible to implement the Same theme in the Swagger, If yes, Could you suggest a...
15 Sep 2020 by Sandeep Mewara
Try this: How to customize Swagger UI in ASP.NET Web API – Umamaheswaran[^] Seems he has few customized templates: GitHub - ostranme/swagger-ui-themes: A collection of css themes to spice up your Swagger docs[^] Another reference: Implementing...
5 Dec 2020 by csrss
So lets say I have an endpoint like this: public async Task Test([FromBody]string jsonData) How can I provide a json schema for jsonData parameter? Is it possible? I know that if I have a DTO then swagger scaffolds properties...
28 Feb 2021 by rtksmithjoton123
I want to add the on a property in a model. public class MyModel { /// summary /// /// example: ... /// public int id { get; set; } } The...
15 Sep 2021 by Member 13251389
If you are adding token in "Available authorizations" Pop up/Model. Please make sure you have added a word "Bearer" with space followed by token. This was my issue.
24 Sep 2021 by Jason Sultana
Create an Insomnia-First swagger page, so your API can easily be consumed by Insomnia, all in one click
17 Nov 2021 by Member 15435322
This is my swagger configuration class: package com.example.ecourtcustinfolast.config; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.context.annotation.Bean; import...
2 Jun 2022 by Luis M. Rojas
I am new using web apoi and swagger. When i am testing de web api using swagger, i have to fillout the image field: How can i do that? because i can type: name, firstname, etc, but the image i do not know. Thanks What I have tried: I do not...
2 Jun 2022 by Graeme_Grant
Google is your friend. I just did a Google search using c# swagger image[^] and immediately found: asp.net core - How to display multiple images using swagger api (controller) in C# & .netcore 3.1 using SQL database server? - Stack Overflow[^]
9 Jul 2022 by Member 8583441
I am designing an api for Educational field. So, I have created WebAPI with authentication mode windows in .Net6. I am having two controllers namely, AuthController and TeacherController. AuthController for authorizing the user and to create JWT...
19 Oct 2022 by Virendra S from Bangalore, Karnataka
I am returning a 407 http status code from one endpoint, in postman I can see the 407Proxy Authentication Required response, but in my api swaggerui instead of 407 it is showing as Code Details Undocumented Failed to fetch. To cross check...
19 Oct 2022 by Richard Deeming
Swagger does not attempt to analyze your code to determine every possible response code. You need to tell it which response codes your action can return: Get started with Swashbuckle and ASP.NET Core | Microsoft Learn[^] Eg: [HttpGet]...
7 Dec 2022 by toumir
have the same problem resolved : just add bearer word before jwt : brearer thaus all :)
27 Dec 2022 by zhrsh
How can I reduce api codes with swagger above each method in Laravel? What I have tried: I am looking for a solution or introduction of a free and alternative program that makes it easier for the mobile team members to test and ship api with...
14 Feb 2023 by stdout
Dear community, I try to create an web api endpoint that returns an image in a format that can be defined in the 'Accept-Header' field of the request. I'm using Swashbuckle NugGet Package (Swashbuckle.AspNetCore, Version 6.5.0) and the UI shows...
5 Apr 2023 by EdDenLau
Hello, I need help using Swagger in an Asp.Net Core 6.0 API and filtering endpoints. The goal is that only the endpoints that should be available for a specific end customer are displayed on the Swagger website. And the generated swagger.json...
7 Jan 2024 by GinCanhViet
Swashbuckle can automatically generates API documentation based on code (with details return model) [HttpGet] public ActionResult> GetStudents() { return CollegeRepository.Students; } https://i.stack.imgur.com/hHGze.png It...
15 Feb 2024 by OriginalGriff
Don't post this under Quick Answers - if you got the code from an article, then there is a "Add a Comment or Question" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to...
29 Oct 2018 by Jose Motta
Build an embryo API that improves interaction between Home Assistant and Docker containers
11 Jun 2021 by Hugo G Fernandez R
In this article, I will explain and show step by step how to implement through the swashbuckle library a good and useful documentation for your RESTful APIs created under the ASP.
8 May 2020 by Zijian
Compare what is supported in WebApiClientGen and NSwagStudio
12 Apr 2022 by Lontia Nkhuwa
In this article we create a custom connector, call the API, and create a reservation button.
19 Jun 2022 by Gerardo Gamo
If you are using NET framework (any version capable of having swagger) in you web.config, 1. create a new key called IsSwaggerEnabled and set it to true ...
15 Feb 2024 by sina heidari
I start to work on the GRCP project (client). when I run the project I can open the swagger and there are two APIs there. I searched very much to find out where these two APIs are!!! couldn't find!!!! This project is run on docker. The...
7 Jan 2019 by algem mojedo
Hi, I am not sure if could help. IN IE... Change Compatibility View Settings CheckBox 1. Display Intranet sites in Compatibility View 2. Use Microsoft compatibility lists
1 Oct 2019 by User 14447995
hello, I want to filter the record from Record_1 To Record_100 or whatever the range we want but without primary key or without using any column name. I'm using odata C#. Is it possible and how? Thanks What I have tried: I have tried but with primary key and i want without primary key. what...
13 Oct 2020 by gcogco10
Hi Team I am struggling to expose 3 endpoints, because i dont know if need to implement them on the controller. These 3 endpoints must Add a coin. Get the total amount of coins. Reset the coins. What I have tried: //Interface using...
2 Dec 2020 by And68rei
Did you find a solution? I have the same problem trying to implement windows authentication.
24 Nov 2022 by Pranav Arya
I want to create a tool that will accept the “OpenAPI v3 definition” document as input. Based on that, it will generate basic test cases to validate/check the API behaviour using Java/Spring Boot. Can someone please help with that or give me some...