update swagger gen readme (#783)
This commit is contained in:
10
README.md
10
README.md
@@ -123,14 +123,12 @@ dotnet restore
|
|||||||
dotnet test
|
dotnet test
|
||||||
```
|
```
|
||||||
|
|
||||||
# Generating the Client Code
|
# Update the API model
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
You'll need a Linux machine with Docker.
|
You'll need a Linux machine with Docker.
|
||||||
|
|
||||||
The generated code works on all platforms supported by .NET or .NET Core.
|
|
||||||
|
|
||||||
Check out the generator project into some other directory
|
Check out the generator project into some other directory
|
||||||
(henceforth `$GEN_DIR`).
|
(henceforth `$GEN_DIR`).
|
||||||
|
|
||||||
@@ -139,12 +137,12 @@ cd $GEN_DIR/..
|
|||||||
git clone https://github.com/kubernetes-client/gen
|
git clone https://github.com/kubernetes-client/gen
|
||||||
```
|
```
|
||||||
|
|
||||||
## Generating code
|
## Generating new swagger.json
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Where REPO_DIR points to the root of the csharp repository
|
# Where REPO_DIR points to the root of the csharp repository
|
||||||
cd ${REPO_DIR}/csharp/src/KubernetesClient
|
cd
|
||||||
${GEN_DIR}/openapi/csharp.sh generated ../csharp.settings
|
${GEN_DIR}/openapi/csharp.sh ${REPO_DIR}/src/KubernetesClient ${REPO_DIR}/csharp.settings
|
||||||
```
|
```
|
||||||
|
|
||||||
# Version Compatibility
|
# Version Compatibility
|
||||||
|
|||||||
Reference in New Issue
Block a user