Skip to content

Commit b8925b6

Browse files
committed
updated dotnet samples
1 parent 60e7199 commit b8925b6

File tree

451 files changed

+32656
-2654
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

451 files changed

+32656
-2654
lines changed

bin/csharp-petstore-net-35.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ fi
2626

2727
# if you've executed sbt assembly previously it will use that instead.
2828
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -Dlogback.configurationFile=bin/logback.xml"
29-
ags="generate $@ -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l csharp -o samples/client/petstore/csharp/SwaggerClientNet35 --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} -c ./bin/csharp-petstore-net-35.json"
29+
ags="generate $@ -i modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-fake-endpoints-models-for-testing.yaml -l csharp -o samples/client/petstore/csharp/SwaggerClientNet35 --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} -c ./bin/csharp-petstore-net-35.json"
3030

3131
java $JAVA_OPTS -jar $executable $ags

bin/csharp-petstore-net-40.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ fi
2626

2727
# if you've executed sbt assembly previously it will use that instead.
2828
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -Dlogback.configurationFile=bin/logback.xml"
29-
ags="generate $@ -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l csharp -o samples/client/petstore/csharp/SwaggerClientNet40 --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} -c ./bin/csharp-petstore-net-40.json"
29+
ags="generate $@ -i modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-fake-endpoints-models-for-testing.yaml -l csharp -o samples/client/petstore/csharp/SwaggerClientNet40 --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} -c ./bin/csharp-petstore-net-40.json"
3030

3131
java $JAVA_OPTS -jar $executable $ags

bin/csharp-petstore-net-standard.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ fi
2626

2727
# if you've executed sbt assembly previously it will use that instead.
2828
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -Dlogback.configurationFile=bin/logback.xml"
29-
ags="generate $@ -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l csharp -o samples/client/petstore/csharp/SwaggerClientNetStandard --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} -c ./bin/csharp-petstore-net-standard.json"
29+
ags="generate $@ -i modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-fake-endpoints-models-for-testing.yaml -l csharp -o samples/client/petstore/csharp/SwaggerClientNetStandard --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} -c ./bin/csharp-petstore-net-standard.json"
3030

3131
java $JAVA_OPTS -jar $executable $ags

bin/csharp-petstore-netcore-project.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ fi
2626

2727
# if you've executed sbt assembly previously it will use that instead.
2828
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -Dlogback.configurationFile=bin/logback.xml"
29-
ags="generate $@ -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l csharp -o samples/client/petstore/csharp/SwaggerClientNetCoreProject --additional-properties packageGuid={67035b31-f8e5-41a4-9673-954035084f7d},netCoreProjectFile=true -c ./bin/csharp-petstore-net-standard.json"
29+
ags="generate $@ -i modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-fake-endpoints-models-for-testing.yaml -l csharp -o samples/client/petstore/csharp/SwaggerClientNetCoreProject --additional-properties packageGuid={67035b31-f8e5-41a4-9673-954035084f7d},netCoreProjectFile=true -c ./bin/csharp-petstore-net-standard.json"
3030

3131
# java $JAVA_OPTS -jar $executable $ags

bin/csharp-petstore.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ fi
2626

2727
# if you've executed sbt assembly previously it will use that instead.
2828
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -Dlogback.configurationFile=bin/logback.xml"
29-
ags="generate $@ -i modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-fake-endpoints-models-for-testing-renamed-client.yaml -l csharp -o samples/client/petstore/csharp/SwaggerClient --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C}"
29+
ags="generate $@ -i modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-fake-endpoints-models-for-testing.yaml -l csharp -o samples/client/petstore/csharp/SwaggerClient --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C}"
3030

3131
java $JAVA_OPTS -jar $executable $ags

bin/csharp-property-changed-petstore.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ fi
2626

2727
# if you've executed sbt assembly previously it will use that instead.
2828
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -Dlogback.configurationFile=bin/logback.xml"
29-
ags="generate $@ -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l csharp -o samples/client/petstore/csharp/SwaggerClientWithPropertyChanged --additional-properties generatePropertyChanged=true --additional-properties packageGuid={5CD900DE-8266-412F-A758-28E1F9C623D5}"
29+
ags="generate $@ -i modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-fake-endpoints-models-for-testing.yaml -l csharp -o samples/client/petstore/csharp/SwaggerClientWithPropertyChanged --additional-properties generatePropertyChanged=true --additional-properties packageGuid={5CD900DE-8266-412F-A758-28E1F9C623D5}"
3030

3131
java $JAVA_OPTS -jar $executable $ags
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.9-SNAPSHOT
1+
3.0.19-SNAPSHOT

samples/client/petstore/csharp/SwaggerClient/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ Class | Method | HTTP request | Description
119119
*PetApi* | [**DeletePet**](docs/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
120120
*PetApi* | [**FindPetsByStatus**](docs/PetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
121121
*PetApi* | [**FindPetsByTags**](docs/PetApi.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags
122+
*PetApi* | [**GetAllPets**](docs/PetApi.md#getallpets) | **GET** /allPets |
122123
*PetApi* | [**GetPetById**](docs/PetApi.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID
124+
*PetApi* | [**GetRandomPet**](docs/PetApi.md#getrandompet) | **GET** /randomPet |
123125
*PetApi* | [**UpdatePet**](docs/PetApi.md#updatepet) | **PUT** /pet | Update an existing pet
124126
*PetApi* | [**UpdatePetWithForm**](docs/PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
125127
*PetApi* | [**UploadFile**](docs/PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
@@ -140,6 +142,7 @@ Class | Method | HTTP request | Description
140142
## Documentation for Models
141143

142144
- [Model.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
145+
- [Model.AllPetsResponse](docs/AllPetsResponse.md)
143146
- [Model.Animal](docs/Animal.md)
144147
- [Model.AnimalFarm](docs/AnimalFarm.md)
145148
- [Model.ApiResponse](docs/ApiResponse.md)
@@ -158,7 +161,7 @@ Class | Method | HTTP request | Description
158161
- [Model.Cat](docs/Cat.md)
159162
- [Model.Category](docs/Category.md)
160163
- [Model.ClassModel](docs/ClassModel.md)
161-
- [Model.ClientModel](docs/ClientModel.md)
164+
- [Model.Client](docs/Client.md)
162165
- [Model.Dog](docs/Dog.md)
163166
- [Model.EnumArrays](docs/EnumArrays.md)
164167
- [Model.EnumClass](docs/EnumClass.md)
@@ -170,7 +173,10 @@ Class | Method | HTTP request | Description
170173
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
171174
- [Model.Model200Response](docs/Model200Response.md)
172175
- [Model.Name](docs/Name.md)
176+
- [Model.NullableEnumModel](docs/NullableEnumModel.md)
173177
- [Model.NumberOnly](docs/NumberOnly.md)
178+
- [Model.OneOfAllPetsResponseItems](docs/OneOfAllPetsResponseItems.md)
179+
- [Model.OneOfSinglePetResponsePet](docs/OneOfSinglePetResponsePet.md)
174180
- [Model.Order](docs/Order.md)
175181
- [Model.OuterBoolean](docs/OuterBoolean.md)
176182
- [Model.OuterComposite](docs/OuterComposite.md)
@@ -180,6 +186,7 @@ Class | Method | HTTP request | Description
180186
- [Model.Pet](docs/Pet.md)
181187
- [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md)
182188
- [Model.Return](docs/Return.md)
189+
- [Model.SinglePetResponse](docs/SinglePetResponse.md)
183190
- [Model.SpecialModelName](docs/SpecialModelName.md)
184191
- [Model.Tag](docs/Tag.md)
185192
- [Model.User](docs/User.md)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# IO.Swagger.Model.AllPetsResponse
2+
## Properties
3+
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**_123List** | **string** | | [optional]
7+
8+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
9+

samples/client/petstore/csharp/SwaggerClient/docs/AnotherFakeApi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Method | HTTP request | Description
88

99
<a name="testspecialtags"></a>
1010
# **TestSpecialTags**
11-
> ClientModel TestSpecialTags (ClientModel body)
11+
> Client TestSpecialTags (Client body)
1212
1313
To test special tags
1414

@@ -29,12 +29,12 @@ namespace Example
2929
public void main()
3030
{
3131
var apiInstance = new AnotherFakeApi();
32-
var body = new ClientModel(); // ClientModel | client model
32+
var body = new Client(); // Client | client model
3333
3434
try
3535
{
3636
// To test special tags
37-
ClientModel result = apiInstance.TestSpecialTags(body);
37+
Client result = apiInstance.TestSpecialTags(body);
3838
Debug.WriteLine(result);
3939
}
4040
catch (Exception e)
@@ -50,11 +50,11 @@ namespace Example
5050

5151
Name | Type | Description | Notes
5252
------------- | ------------- | ------------- | -------------
53-
**body** | [**ClientModel**](ClientModel.md)| client model |
53+
**body** | [**Client**](Client.md)| client model |
5454

5555
### Return type
5656

57-
[**ClientModel**](ClientModel.md)
57+
[**Client**](Client.md)
5858

5959
### Authorization
6060

0 commit comments

Comments
 (0)