Top "Nswag" questions

NSwag is a Swagger 2.0 API toolchain for .NET, TypeScript and other platforms, written in C#. The Swagger specification uses JSON and JSON Schema to describe a RESTful web API.

how to inject API_BASE_URL (a string) in an angular service

this autogenerated service (by NSwagStudio) needs an API_BASE_URL (InjectionToken) value in order to perform http requests how and …

angular nswag
How to invoke a NSwag client method that needs bearer token on request header?

I didn't get exactly how NSwag interact with IdentityServerX bearer tokens and adds it request header conventionally? My host api …

.net asp.net-web-api identityserver3 nswag
How to add custom headers in NSwag document using C# .NET CORE?

I am in need of adding custom headers, but cannot figure it out. I am trying to utilize the new …

c# asp.net-core nswag
How to upload data + multiple files from Angular to .net core Web Api

My server uses .Net Core 2.1.402 Here is my C# class: public class SampleDetailsDto { public Guid Id{ get; set; } public string …

angular typescript asp.net-core nswag
Is it possible to have NSwag ignore a controller?

I used NSwag to generate a client for a single controller; I needed it as its own separate client. I …

c# swagger nswag