SaaSHub helps you find the best software and product alternatives Learn more →
NSwag Alternatives
Similar projects and alternatives to NSwag
-
autorest
OpenAPI (f.k.a Swagger) Specification code generator. Supports C#, PowerShell, Go, Java, Node.js, TypeScript, Python
-
openapi-generator
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
-
InfluxDB
Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.
-
swagger-ui
Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
-
Refit
The automatic type-safe REST library for .NET Core, Xamarin and .NET. Heavily inspired by Square's Retrofit library, Refit turns your REST API into a live interface.
-
Unchase.OpenAPI.Connectedservice
:scroll: Visual Studio extension to generate OpenAPI (Swagger) web service reference.
-
-
swagger-petstore
swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
-
SonarLint
Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
-
WebApiClient
An open source project based on the HttpClient. You only need to define the c# interface and modify the related features to invoke the client library of the remote http interface asynchronously.
-
RestEase
Easy-to-use typesafe REST API client library for .NET Standard 1.1 and .NET Framework 4.5 and higher, which is simple and customisable. Inspired by Refit
-
-
smithy
Smithy is a protocol-agnostic interface definition language and set of tools for generating clients, servers, and documentation for any programming language.
-
-
orval
orval is able to generate client with appropriate type-signatures (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification, either in yaml or json formats. 🍺
-
-
dapr
Dapr is a portable, event-driven, runtime for building distributed applications across cloud and edge.
-
-
ASP.NET Core
ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
-
-
CleanArchitecture
Clean Architecture Solution Template: A starting point for Clean Architecture with ASP.NET Core
-
Polly
Polly is a .NET resilience and transient-fault-handling library that allows developers to express policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner. From version 6.0.1, Polly targets .NET Standard 1.1 and 2.0+.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
NSwag reviews and mentions
-
Best practices of create models for back-end commutation.
If your API exposes a Swagger definition, you can use NSwag (https://github.com/RicoSuter/NSwag) to generate the TypeScript API Client and Models for you. We found this eliminates errors due to TS and API DTO’s not matching
- In Visual Studio 2022 Is there a way to generate a function from an OpenApi yaml file
-
What class should I create to deserialize this?
There are Swagger v2/OpenAPI v3 specifications in the repository. Could you use NSwag or (if you have Visual Studio) the Connected Services tools? That'll make a client and all the necessary types for you.
-
Show HN: An opinionated and statically-typed TypeScript SDK generator
I feel a bit spammy as I just commented on a comment a bit higher with the same thing, but NSwag will do the trick for you.
https://github.com/RicoSuter/NSwag
Works a treat and is open-source, integrates nicely with ASP WebAPI projects. Can even generate TypeScript clients with a choice of HTTP library (axios/fetch etc.)
I've had success with NSwag for generating both TypeScript and C# clients. Highly customisable - maybe too customisable with the config being quite complex - there's CLI & GUI tools to generate configs though.
https://github.com/RicoSuter/NSwag
We use the C# client generator in our public sector project and package the results up within Nuget, works a treat.
-
Backend types for front end
I like to use NSwag for this - it generates DTO types for both requests and responses, and also generates an API client for all your endpoints. All you need is a Swagger or OpenAPI doc to feed it
-
What is the recommended way to load data for React 18?
Alternative library - check out NSwag.
-
TypeScript Interface generator tools?
Try this here https://github.com/RicoSuter/NSwag/wiki/Templates
-
Creating and Using HTTP Client SDKs in .NET 6
There is a way to fully automate HTTP Client SDKs. The OpenAPI/Swagger specification uses JSON and JSON Schema to describe a RESTful web API. The NSwag project provides tools to generate client code from these OpenAPI specifications. Everything can be automated via CLI (distributed via NuGet tool or build target; or NPM).
-
Convert curl commands to code in several languages
Something a bit different but I'm a huge fan of NSwag recently.
https://github.com/RicoSuter/NSwag
We use it on a project at work in C# and I've also been using it personally on pet projects with TypeScript.
Allows you to automatically generate REST API clients based on Swagger/OpenAPI specs and is very customizable.
Really nice if building out microservices and you're wanting to communicate between each other or building web apps and want to communicate with APIs. Saves a lot of time writing code to make requests and handle different status codes etc.
-
A note from our sponsor - #<SponsorshipServiceOld:0x00007fea61885c68>
www.saashub.com | 31 Jan 2023
Stats
RicoSuter/NSwag is an open source project licensed under MIT License which is an OSI approved license.