foss42 / apidash

API Dash is a beautiful open-source cross-platform API Client built using Flutter which can help you easily create & customize your API requests, visually inspect responses and generate API integration code. A lightweight alternative to postman/insomnia.
https://apidash.dev
Apache License 2.0
1.37k stars 257 forks source link

Add CodeGen for C# HttpClient #382

Closed AcousticDeveloper closed 3 months ago

AcousticDeveloper commented 3 months ago

PR Description

This PR adds automated code generation for C# HttpClient library and also tests the generated code.

Related Issues

Checklist

Added/updated tests?

Instructions to run the generated code in local computer

  1. Install Visual Studio Build Tools
  2. Installed C++ for Windows Development and .NET for Windows Development.
  3. Created a new directory named ApiTesting and used cd into that directory.
  4. Using terminal, ran dotnet new console which creates a new console app inside that directory.
  5. Paste the generated code inside Program.cs file.
  6. Run the program using dotnet run.
  7. You may additionally need to ImplicitUsings inside ApiTesting.csproj file.
ashitaprasad commented 3 months ago

Thanks for the PR.