nswag Questions

0

I am trying to adapt a project to .net5 and want to use the new feature of adding an OpenAPI service reference. As far as I understand it, NSwag will be used to generate the client. I already used ...
Brana asked 30/11, 2020 at 5:51

3

Solved

I used NSwag to generate a client for a single controller; I needed it as its own separate client. I would like for it to be ignored when the Swagger specification is generated in the future. I tr...
Baum asked 18/4, 2017 at 19:43

1

Solved

I've created a .NET core 2.2 webapi, and using swagger / nswag to generate the API for my React / typescript application. When I try to set up a new object I get a ts(2739) message: Type '{ firstN...
Shiver asked 2/10, 2019 at 18:36

1

I have a project that uses NSwag to generate a client and the contracts from a swagger file. I don't want these generated files to be tracked by git, so that when the project is built on the build ...
Horizontal asked 18/12, 2019 at 13:39

0

I'm trying to create a controller in an AspNetCore 3.1 API. c #, with the help of "NSwag.AspNetCore" 13.1.3. The purpose of this controller is to receive and return plain text (not json). The cont...
Rosalbarosalee asked 11/3, 2020 at 13:19

4

In my asp.net core 2.0 solution I want to add Azure AD authentication. With the Azure AD templates inside of VS 2017 you either get JWTBearer authentication-implementation or OpenIdConnect implemen...
Corrientes asked 15/9, 2017 at 9:23

4

I try to download a file via an angular 2 typescript client. The link generated in Swagger UI works fine, but the generated typescript client does not. The controller looks like this: [HttpGet("...
Evaporation asked 8/5, 2017 at 9:34

1

I am using NSwag to generate swagger for my .NET Core api and everything works great, except the fact that paths are rendered in order that reflection seems to pickup Controllers from project. So ...
Hypotrachelium asked 26/11, 2019 at 22:52

1

Solved

I have an ASP.NET Core 2.2 Web Api and I added the swagger support with nswag. The web api is protected using a local IdentityServer4 that generates access tokens. I found the code to add an autho...

1

I have an API that uses Noda Time types in both input and output. The types are serialized to strings in the JSON using the default Noda Time serialization format (which basically is the ISO-8601 f...
Damage asked 19/9, 2019 at 8:6

3

Solved

I tried generating c# code for and API I created with ASP Net Boilerplate, but the response is not deserializing correctly. Upon investigation, it seems the json response is wrapped using a class ...
Irresolute asked 20/8, 2017 at 2:1

0

Given: api that i have limited influence to in terms of changing, built on net core 2.2. Standart netCore swagger used. Some classes of DTO have fields in it marked with [System.ComponentModel.Dat...
Mali asked 12/2, 2019 at 18:36

2

Solved

I'd like to prepare my .NET Core Web API project so that multiple versions of the API can be managed and documented, according to the REST services standards. I'm using .NET Core 2.1 with NSwag (v...
Shooter asked 6/8, 2018 at 14:51

1

Solved

I'm trying to generate a C# client for an API that has provided a swagger.json file to me, located at this link; https://api.ekm.net/swagger/v1/swagger.json Using the NSwagStudo application I am...
Catgut asked 29/8, 2018 at 19:41

0

Here's the commandline I use to generate my API calls: nswag swagger2tsclient /input:swagger.json /output:./gen/index.ts /ExtensionCode:./base/extension.ts /ClientBaseClass:BaseClient /UseGetBaseU...
Lovemaking asked 27/8, 2018 at 22:27

1

Yesterday I searched solution how to use swagger on Core Odata, I tried few libraries but with no success, it seams that currently it's not fully supported.
Rockwood asked 25/7, 2018 at 20:29

0

I have a RESTful WebAPI 2 service in C# and I am using swagger as API descriptor. Now, on the client side I am using NSwag which can be found here to generate client side code: https://github.com/R...
Jailhouse asked 21/6, 2018 at 17:37

1

Solved

When I generate a C# client for an API using NSwag, where the API includes endpoints that can be used with multiple Http request types (e.g. POST, GET) the client generates a method for each reques...
Patentee asked 18/4, 2018 at 4:26

2

Solved

I have an ASP.NET Core Web API that contains the following endpoint. [HttpGet] [Route("models/{ids}")] [Produces(typeof(IEnumerable<Model>))] public IActionResult Get ( [ModelBinder(typeof(...
Afterlife asked 26/3, 2018 at 14:42

1

I am using NSwag SwaggerToCSharpClientGenerator to generate the request and response classes and enums. I have some Web API methods that share the same enum as an argument or as part of request ob...
Chubby asked 16/9, 2017 at 18:42

© 2022 - 2024 — McMap. All rights reserved.