mirror of
https://github.com/foss42/apidash.git
synced 2025-06-21 23:00:44 +08:00
Update instructions_to_run_generated_code.md
This commit is contained in:
@ -45,7 +45,6 @@ TODO
|
|||||||
|
|
||||||
Here are the detailed instructions for running the generated API Dash code in C# (using `HttpClient`) for macOS, Windows, and Linux:
|
Here are the detailed instructions for running the generated API Dash code in C# (using `HttpClient`) for macOS, Windows, and Linux:
|
||||||
|
|
||||||
|
|
||||||
### 1. Setting Up the C# Development Environment
|
### 1. Setting Up the C# Development Environment
|
||||||
#### macOS and Windows:
|
#### macOS and Windows:
|
||||||
1. **Install .NET SDK:**
|
1. **Install .NET SDK:**
|
||||||
@ -57,7 +56,6 @@ Here are the detailed instructions for running the generated API Dash code in C#
|
|||||||
dotnet --version
|
dotnet --version
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
#### Linux:
|
#### Linux:
|
||||||
1. **Install .NET SDK:**
|
1. **Install .NET SDK:**
|
||||||
- Run the following commands based on your distribution:
|
- Run the following commands based on your distribution:
|
||||||
@ -76,7 +74,7 @@ Here are the detailed instructions for running the generated API Dash code in C#
|
|||||||
dotnet --version
|
dotnet --version
|
||||||
```
|
```
|
||||||
|
|
||||||
### 2. Preparing HttpClient
|
### 2. Preparing a Project
|
||||||
|
|
||||||
#### In Visual Studio:
|
#### In Visual Studio:
|
||||||
1. **Create a New Project:**
|
1. **Create a New Project:**
|
||||||
@ -105,9 +103,6 @@ Once you have .NET(C#) and `HttpClient` installed, follow these steps to execute
|
|||||||
2. **Copy the generated code** 📋 from API Dash.
|
2. **Copy the generated code** 📋 from API Dash.
|
||||||
3. **Paste the code** into your project. ex) prgoram.cs
|
3. **Paste the code** into your project. ex) prgoram.cs
|
||||||
|
|
||||||
|
|
||||||
### 4. Running the Project
|
|
||||||
|
|
||||||
#### In Visual Studio:
|
#### In Visual Studio:
|
||||||
1. Click the **Start Debugging (F5)** button from the top menu to run the project.
|
1. Click the **Start Debugging (F5)** button from the top menu to run the project.
|
||||||
2. The output window will display the API response.
|
2. The output window will display the API response.
|
||||||
@ -118,10 +113,6 @@ Once you have .NET(C#) and `HttpClient` installed, follow these steps to execute
|
|||||||
dotnet run
|
dotnet run
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## C# (RestSharp)
|
## C# (RestSharp)
|
||||||
|
|
||||||
TODO
|
TODO
|
||||||
|
Reference in New Issue
Block a user