You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then install the generated `.vsix` file using the method above.
25
27
26
28
## Features
27
29
28
30
This extension adds a context menu item **REST API Client Code Generator** when right-clicking on JSON or YAML files in the VS Code explorer. The context menu provides the following code generation options:
29
31
32
+
### C# Generators
33
+
30
34
-**NSwag**: Generates a C# REST API Client using NSwag
31
35
-**Refitter**: Generates a C# Refit interface using Refitter
32
36
-**OpenAPI Generator**: Generates a C# REST API Client using OpenAPI Generator
@@ -51,12 +55,14 @@ This extension adds a context menu item **REST API Client Code Generator** when
@@ -68,23 +74,26 @@ For TypeScript code generation:
68
74
69
75
The extension uses the `rapicgen` .NET tool to generate the code. If not already installed, you will be prompted to install it when first attempting to generate code.
70
76
71
-
## Extension Settings
77
+
## Settings and Configuration
72
78
73
-
This extension contributes the following settings:
79
+
The extension includes configurable settings:
74
80
75
-
*`restApiClientCodeGenerator.namespace`: Default namespace to use in generated code (default: "GeneratedCode")
76
-
*`restApiClientCodeGenerator.outputDirectory`: Output directory relative to workspace folder (default: same directory as the specification file)
81
+
-`restApiClientCodeGenerator.namespace`: Default namespace to use in generated code (default: "GeneratedCode")
82
+
-`restApiClientCodeGenerator.outputDirectory`: Output directory relative to workspace folder (default: same directory as the specification file)
77
83
78
84
## How to Use
79
85
80
86
1. Right-click on a Swagger/OpenAPI specification file (JSON or YAML) in the VS Code explorer
81
-
2. Select "REST API Client Code Generator" in the context menu
82
-
3. Choose one of the available code generators
83
-
4. The generated C# code will be saved and opened in the editor
87
+
2. Select "REST API Client Generator" in the context menu
88
+
3. Choose your desired language (C# or TypeScript)
89
+
4. Select one of the available generators for that language
90
+
5. The generated code will be saved in the configured output directory and opened in the editor
84
91
85
92
## Dependencies
86
93
87
-
The code generated by each generator depends on different NuGet packages:
94
+
### C# Dependencies
95
+
96
+
The C# code generated by each generator depends on different NuGet packages:
0 commit comments