swashbuckle.aspnetcore Questions
9
Solved
I have a WebAPI project and I do a post-build process that calls "swagger.exe", which is a tool provided by NuGet Package. To install globally it, I used the following command:
dotnet too...
Knudson asked 27/7, 2022 at 0:50
4
Solved
I am new to ASP.NET Core and this question looks simple but I couldn't find a proper solution online. So here's the problem.
This is the structure of the class that I am using.
public class Alert
...
Notarial asked 14/4, 2020 at 19:45
5
Solved
I want to generate Swagger.Json file on build and use it in API gateway to configure the endpoints.
I have tried following steps but its not working.
Create a tool manifest:
dotnet new tool-manifes...
Smedley asked 8/9, 2022 at 21:34
4
Solved
Is there a way to specify example requests for swagger? Maybe even multiple ones?
The Try it out button shows only generic values like:
{
"firstName": "string",
"lastName": "string"
}
for
p...
Lawrence asked 26/7, 2019 at 8:25
4
I am upgrading a .net API to .net Core 3.1 and using Swashbuckle.AspNetcore 5.4.1. The API is running inside a ServiceFabric app. I found this https://github.com/domaindrivendev/Swashbuckle.AspNetC...
Meteorite asked 11/5, 2020 at 15:31
3
I'm new to Swagger. I'm using OpenAPI 3.0.2.
When I run Swagger UI, Authorization buttons appear, both on top and for each API but they don't work. When I click them, I can enter any text in the ap...
Cheshire asked 25/6, 2021 at 22:16
2
I'm using Optional<T> in my DTOs to implement Json Patch (details). The type T is stored in the 'Value' field of the Optional<T> class. The Optional class allows to differentiate betwee...
Stinko asked 25/2, 2022 at 12:34
3
Solved
Using Swashbuckle.AspNetCore v6.0.7 in an asp.net core project net5.0.
Let say I have models like these:
public enum MyEnum
{
A, B
}
and
public class MyModel
{
public MyEnum MyEnum { get; set; ...
Prostatectomy asked 2/3, 2021 at 15:16
4
Solved
I have an ASP.NET Core Web API with Swagger integrated using Swashbuckle. I have successfully integrated authorization on Swagger UI using an operation filter, because I do not want to show padlock...
Woolpack asked 27/6, 2021 at 6:47
2
It seems I cannot get Swashbuckle.AspNetCore.Cli to work with my .NET Core 3.1 project. I've installed the Cli using the these instruction and building the project works fine. But whenever I try to...
Aneroidograph asked 8/2, 2021 at 19:58
1
Feature Request
Today it is possible to version APIs and most things around that work perfectly fine with Swagger. What I am really missing here is the possibility to make it transparent for any Sw...
Mcquiston asked 24/9, 2021 at 9:34
1
Solved
I created ASP.NET Core with React.js project
I installed NuGet package Swashbuckle.AspNetCore
Updated Program.cs
...
builder.Services.AddSwaggerGen();
var app = builder.Build();
...
app.UseRouting...
Kohima asked 13/9, 2022 at 14:22
1
Solved
I am using Swashbuckle.AspNetCore 6.4.0
I am using a vertical slice approach where I nest models and the classes have the same name Command.
Because swagger checks the model name in order to genera...
Cabotage asked 1/9, 2022 at 14:34
5
Solved
I have an Web API project with .NET 5 (created directly from the template of visual studio Asp.NET Core Web API), it works just fine when debugging from Visual studio, tried to deploy it to IIS ser...
Thorma asked 9/12, 2020 at 13:48
1
Solved
In a .NET Core 3.1 api project I have integrated swagger ui.
In a web dto schema in the swagger ui, I am able to see that a basic data annotation attribute (like Required, StringLength etc. ) has b...
Kym asked 1/12, 2020 at 9:42
2
When loading the /swagger/index.html page the browser can't find the swagger-ui resources required when deployed to an App Servicce in Azure, returning 404. It works when running locally. My setup ...
Pohai asked 11/3, 2021 at 9:36
2
Solved
Is there any way to change the tag for a given http method written with minimal api?
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
...
app.MapGet("/todo"...
Retaliate asked 28/9, 2021 at 5:13
1
Solved
I'm developing an API ASP.Net Core (net6.0) in which authentication will be achieved by requesting that a key (X-API-KEY) and an app id (X-APP-ID) be passed in the request header.
This is described...
Gayelord asked 9/1, 2022 at 20:10
1
Solved
I have a generic Result<T> response type in my controllers, e.g.
public Result<T> GetSomething()
{
...
}
I also have a custom asp.net core filter that returns a Json representation of...
Blakely asked 15/6, 2021 at 21:52
1
Solved
Well, I was doing a DDD project, specifically using redis, but I don't think that has anything to do with it.
The problem is, the swagger doesn't appear to me, it fails, but when I make requests in...
Babylonia asked 6/11, 2021 at 5:50
2
Solved
I have the following enum:
public enum TicketQuestionType
{
General = 1,
Billing = 2,
TMS = 3,
HOS = 4,
DeviceManagement = 5
}
and model class:
public class TicketCreateApi
{
public string S...
Sonar asked 15/12, 2020 at 19:7
2
Solved
We have a legacy application that only works with Swagger 2.0 JSON format. For everything else we would like to use Open API format.
Is there any way with Swashbuckle .NET Core to expose JSON in di...
Lightning asked 27/7, 2021 at 14:2
1
Solved
After stepping around controller authorization in the debugger for the past 4 weeks, I finally decided to tackle OpenID Connect authentication in my Swashbuckle-supported .NetCore 5 API. I wish I h...
Math asked 2/3, 2021 at 18:58
3
I have published web API application(.Net Core 3.1) on IIS under Default Web Site.
I have follow the all necessary steps to host .net core application on IIS.
Using postman tool I have checked that...
Ectopia asked 3/7, 2020 at 14:30
2
Solved
I am using NewtonSoft.json in Asp.Net Core 3.1 API with Swashbuckle.AspNetCore version 5.3.3.
By default in Asp.Net Web API, 2 input and output parameter case was PascalCase.
Now I am migrating t...
Grubstake asked 24/4, 2020 at 9:57
1 Next >
© 2022 - 2024 — McMap. All rights reserved.