Skip to content

Commit 03017df

Browse files
committed
param and api names in snake case
1 parent 852f5fb commit 03017df

32 files changed

+1238
-1438
lines changed

test/client/petstore_v2/petstore/README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,26 @@ All URIs are relative to *https://petstore.swagger.io/v2*
2323

2424
Class | Method | HTTP request | Description
2525
------------ | ------------- | ------------- | -------------
26-
*PetApi* | [**addPet**](docs/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store
27-
*PetApi* | [**deletePet**](docs/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
28-
*PetApi* | [**findPetsByStatus**](docs/PetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
29-
*PetApi* | [**findPetsByTags**](docs/PetApi.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags
30-
*PetApi* | [**getPetById**](docs/PetApi.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID
31-
*PetApi* | [**updatePet**](docs/PetApi.md#updatepet) | **PUT** /pet | Update an existing pet
32-
*PetApi* | [**updatePetWithForm**](docs/PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
33-
*PetApi* | [**uploadFile**](docs/PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
34-
*StoreApi* | [**deleteOrder**](docs/StoreApi.md#deleteorder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
35-
*StoreApi* | [**getInventory**](docs/StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
36-
*StoreApi* | [**getOrderById**](docs/StoreApi.md#getorderbyid) | **GET** /store/order/{orderId} | Find purchase order by ID
37-
*StoreApi* | [**placeOrder**](docs/StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
38-
*UserApi* | [**createUser**](docs/UserApi.md#createuser) | **POST** /user | Create user
39-
*UserApi* | [**createUsersWithArrayInput**](docs/UserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
40-
*UserApi* | [**createUsersWithListInput**](docs/UserApi.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array
41-
*UserApi* | [**deleteUser**](docs/UserApi.md#deleteuser) | **DELETE** /user/{username} | Delete user
42-
*UserApi* | [**getUserByName**](docs/UserApi.md#getuserbyname) | **GET** /user/{username} | Get user by user name
43-
*UserApi* | [**loginUser**](docs/UserApi.md#loginuser) | **GET** /user/login | Logs user into the system
44-
*UserApi* | [**logoutUser**](docs/UserApi.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session
45-
*UserApi* | [**updateUser**](docs/UserApi.md#updateuser) | **PUT** /user/{username} | Updated user
26+
*PetApi* | [**add_pet**](docs/PetApi.md#add_pet) | **POST** /pet | Add a new pet to the store
27+
*PetApi* | [**delete_pet**](docs/PetApi.md#delete_pet) | **DELETE** /pet/{petId} | Deletes a pet
28+
*PetApi* | [**find_pets_by_status**](docs/PetApi.md#find_pets_by_status) | **GET** /pet/findByStatus | Finds Pets by status
29+
*PetApi* | [**find_pets_by_tags**](docs/PetApi.md#find_pets_by_tags) | **GET** /pet/findByTags | Finds Pets by tags
30+
*PetApi* | [**get_pet_by_id**](docs/PetApi.md#get_pet_by_id) | **GET** /pet/{petId} | Find pet by ID
31+
*PetApi* | [**update_pet**](docs/PetApi.md#update_pet) | **PUT** /pet | Update an existing pet
32+
*PetApi* | [**update_pet_with_form**](docs/PetApi.md#update_pet_with_form) | **POST** /pet/{petId} | Updates a pet in the store with form data
33+
*PetApi* | [**upload_file**](docs/PetApi.md#upload_file) | **POST** /pet/{petId}/uploadImage | uploads an image
34+
*StoreApi* | [**delete_order**](docs/StoreApi.md#delete_order) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
35+
*StoreApi* | [**get_inventory**](docs/StoreApi.md#get_inventory) | **GET** /store/inventory | Returns pet inventories by status
36+
*StoreApi* | [**get_order_by_id**](docs/StoreApi.md#get_order_by_id) | **GET** /store/order/{orderId} | Find purchase order by ID
37+
*StoreApi* | [**place_order**](docs/StoreApi.md#place_order) | **POST** /store/order | Place an order for a pet
38+
*UserApi* | [**create_user**](docs/UserApi.md#create_user) | **POST** /user | Create user
39+
*UserApi* | [**create_users_with_array_input**](docs/UserApi.md#create_users_with_array_input) | **POST** /user/createWithArray | Creates list of users with given input array
40+
*UserApi* | [**create_users_with_list_input**](docs/UserApi.md#create_users_with_list_input) | **POST** /user/createWithList | Creates list of users with given input array
41+
*UserApi* | [**delete_user**](docs/UserApi.md#delete_user) | **DELETE** /user/{username} | Delete user
42+
*UserApi* | [**get_user_by_name**](docs/UserApi.md#get_user_by_name) | **GET** /user/{username} | Get user by user name
43+
*UserApi* | [**login_user**](docs/UserApi.md#login_user) | **GET** /user/login | Logs user into the system
44+
*UserApi* | [**logout_user**](docs/UserApi.md#logout_user) | **GET** /user/logout | Logs out current logged in user session
45+
*UserApi* | [**update_user**](docs/UserApi.md#update_user) | **PUT** /user/{username} | Updated user
4646

4747

4848
## Documentation For Models

test/client/petstore_v2/petstore/docs/PetApi.md

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ All URIs are relative to *https://petstore.swagger.io/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**addPet**](PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
8-
[**deletePet**](PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
9-
[**findPetsByStatus**](PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status
10-
[**findPetsByTags**](PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags
11-
[**getPetById**](PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID
12-
[**updatePet**](PetApi.md#updatePet) | **PUT** /pet | Update an existing pet
13-
[**updatePetWithForm**](PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data
14-
[**uploadFile**](PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image
7+
[**add_pet**](PetApi.md#add_pet) | **POST** /pet | Add a new pet to the store
8+
[**delete_pet**](PetApi.md#delete_pet) | **DELETE** /pet/{petId} | Deletes a pet
9+
[**find_pets_by_status**](PetApi.md#find_pets_by_status) | **GET** /pet/findByStatus | Finds Pets by status
10+
[**find_pets_by_tags**](PetApi.md#find_pets_by_tags) | **GET** /pet/findByTags | Finds Pets by tags
11+
[**get_pet_by_id**](PetApi.md#get_pet_by_id) | **GET** /pet/{petId} | Find pet by ID
12+
[**update_pet**](PetApi.md#update_pet) | **PUT** /pet | Update an existing pet
13+
[**update_pet_with_form**](PetApi.md#update_pet_with_form) | **POST** /pet/{petId} | Updates a pet in the store with form data
14+
[**upload_file**](PetApi.md#upload_file) | **POST** /pet/{petId}/uploadImage | uploads an image
1515

1616

17-
# **addPet**
18-
> addPet(_api::PetApi, in_body::Pet; _mediaType=nothing) <br/>
19-
> addPet(_api::PetApi, response_stream::Channel, in_body::Pet; _mediaType=nothing)
17+
# **add_pet**
18+
> add_pet(_api::PetApi, body::Pet; _mediaType=nothing) <br/>
19+
> add_pet(_api::PetApi, response_stream::Channel, body::Pet; _mediaType=nothing)
2020
2121
Add a new pet to the store
2222

@@ -25,7 +25,7 @@ Add a new pet to the store
2525
Name | Type | Description | Notes
2626
------------- | ------------- | ------------- | -------------
2727
**_api** | **PetApi** | API context |
28-
**in_body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
28+
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
2929

3030
### Return type
3131

@@ -42,9 +42,9 @@ Name | Type | Description | Notes
4242

4343
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
4444

45-
# **deletePet**
46-
> deletePet(_api::PetApi, in_petId::Int64; in_api_key=nothing, _mediaType=nothing) <br/>
47-
> deletePet(_api::PetApi, response_stream::Channel, in_petId::Int64; in_api_key=nothing, _mediaType=nothing)
45+
# **delete_pet**
46+
> delete_pet(_api::PetApi, pet_id::Int64; api_key=nothing, _mediaType=nothing) <br/>
47+
> delete_pet(_api::PetApi, response_stream::Channel, pet_id::Int64; api_key=nothing, _mediaType=nothing)
4848
4949
Deletes a pet
5050

@@ -53,13 +53,13 @@ Deletes a pet
5353
Name | Type | Description | Notes
5454
------------- | ------------- | ------------- | -------------
5555
**_api** | **PetApi** | API context |
56-
**in_petId** | **Int64**| Pet id to delete | [default to nothing]
56+
**pet_id** | **Int64**| Pet id to delete | [default to nothing]
5757

5858
### Optional Parameters
5959

6060
Name | Type | Description | Notes
6161
------------- | ------------- | ------------- | -------------
62-
**in_api_key** | **String**| | [default to nothing]
62+
**api_key** | **String**| | [default to nothing]
6363

6464
### Return type
6565

@@ -76,9 +76,9 @@ Name | Type | Description | Notes
7676

7777
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
7878

79-
# **findPetsByStatus**
80-
> findPetsByStatus(_api::PetApi, in_status::Vector{String}; _mediaType=nothing) -> Vector{Pet} <br/>
81-
> findPetsByStatus(_api::PetApi, response_stream::Channel, in_status::Vector{String}; _mediaType=nothing) -> Vector{Pet}
79+
# **find_pets_by_status**
80+
> find_pets_by_status(_api::PetApi, status::Vector{String}; _mediaType=nothing) -> Vector{Pet} <br/>
81+
> find_pets_by_status(_api::PetApi, response_stream::Channel, status::Vector{String}; _mediaType=nothing) -> Vector{Pet}
8282
8383
Finds Pets by status
8484

@@ -89,7 +89,7 @@ Multiple status values can be provided with comma separated strings
8989
Name | Type | Description | Notes
9090
------------- | ------------- | ------------- | -------------
9191
**_api** | **PetApi** | API context |
92-
**in_status** | [**Vector{String}**](String.md)| Status values that need to be considered for filter | [default to nothing]
92+
**status** | [**Vector{String}**](String.md)| Status values that need to be considered for filter | [default to nothing]
9393

9494
### Return type
9595

@@ -106,9 +106,9 @@ Name | Type | Description | Notes
106106

107107
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
108108

109-
# **findPetsByTags**
110-
> findPetsByTags(_api::PetApi, in_tags::Vector{String}; _mediaType=nothing) -> Vector{Pet} <br/>
111-
> findPetsByTags(_api::PetApi, response_stream::Channel, in_tags::Vector{String}; _mediaType=nothing) -> Vector{Pet}
109+
# **find_pets_by_tags**
110+
> find_pets_by_tags(_api::PetApi, tags::Vector{String}; _mediaType=nothing) -> Vector{Pet} <br/>
111+
> find_pets_by_tags(_api::PetApi, response_stream::Channel, tags::Vector{String}; _mediaType=nothing) -> Vector{Pet}
112112
113113
Finds Pets by tags
114114

@@ -119,7 +119,7 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
119119
Name | Type | Description | Notes
120120
------------- | ------------- | ------------- | -------------
121121
**_api** | **PetApi** | API context |
122-
**in_tags** | [**Vector{String}**](String.md)| Tags to filter by | [default to nothing]
122+
**tags** | [**Vector{String}**](String.md)| Tags to filter by | [default to nothing]
123123

124124
### Return type
125125

@@ -136,9 +136,9 @@ Name | Type | Description | Notes
136136

137137
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
138138

139-
# **getPetById**
140-
> getPetById(_api::PetApi, in_petId::Int64; _mediaType=nothing) -> Pet <br/>
141-
> getPetById(_api::PetApi, response_stream::Channel, in_petId::Int64; _mediaType=nothing) -> Pet
139+
# **get_pet_by_id**
140+
> get_pet_by_id(_api::PetApi, pet_id::Int64; _mediaType=nothing) -> Pet <br/>
141+
> get_pet_by_id(_api::PetApi, response_stream::Channel, pet_id::Int64; _mediaType=nothing) -> Pet
142142
143143
Find pet by ID
144144

@@ -149,7 +149,7 @@ Returns a single pet
149149
Name | Type | Description | Notes
150150
------------- | ------------- | ------------- | -------------
151151
**_api** | **PetApi** | API context |
152-
**in_petId** | **Int64**| ID of pet to return | [default to nothing]
152+
**pet_id** | **Int64**| ID of pet to return | [default to nothing]
153153

154154
### Return type
155155

@@ -166,9 +166,9 @@ Name | Type | Description | Notes
166166

167167
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
168168

169-
# **updatePet**
170-
> updatePet(_api::PetApi, in_body::Pet; _mediaType=nothing) <br/>
171-
> updatePet(_api::PetApi, response_stream::Channel, in_body::Pet; _mediaType=nothing)
169+
# **update_pet**
170+
> update_pet(_api::PetApi, body::Pet; _mediaType=nothing) <br/>
171+
> update_pet(_api::PetApi, response_stream::Channel, body::Pet; _mediaType=nothing)
172172
173173
Update an existing pet
174174

@@ -177,7 +177,7 @@ Update an existing pet
177177
Name | Type | Description | Notes
178178
------------- | ------------- | ------------- | -------------
179179
**_api** | **PetApi** | API context |
180-
**in_body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
180+
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
181181

182182
### Return type
183183

@@ -194,9 +194,9 @@ Name | Type | Description | Notes
194194

195195
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
196196

197-
# **updatePetWithForm**
198-
> updatePetWithForm(_api::PetApi, in_petId::Int64; in_name=nothing, in_status=nothing, _mediaType=nothing) <br/>
199-
> updatePetWithForm(_api::PetApi, response_stream::Channel, in_petId::Int64; in_name=nothing, in_status=nothing, _mediaType=nothing)
197+
# **update_pet_with_form**
198+
> update_pet_with_form(_api::PetApi, pet_id::Int64; name=nothing, status=nothing, _mediaType=nothing) <br/>
199+
> update_pet_with_form(_api::PetApi, response_stream::Channel, pet_id::Int64; name=nothing, status=nothing, _mediaType=nothing)
200200
201201
Updates a pet in the store with form data
202202

@@ -205,14 +205,14 @@ Updates a pet in the store with form data
205205
Name | Type | Description | Notes
206206
------------- | ------------- | ------------- | -------------
207207
**_api** | **PetApi** | API context |
208-
**in_petId** | **Int64**| ID of pet that needs to be updated | [default to nothing]
208+
**pet_id** | **Int64**| ID of pet that needs to be updated | [default to nothing]
209209

210210
### Optional Parameters
211211

212212
Name | Type | Description | Notes
213213
------------- | ------------- | ------------- | -------------
214-
**in_name** | **String**| Updated name of the pet | [default to nothing]
215-
**in_status** | **String**| Updated status of the pet | [default to nothing]
214+
**name** | **String**| Updated name of the pet | [default to nothing]
215+
**status** | **String**| Updated status of the pet | [default to nothing]
216216

217217
### Return type
218218

@@ -229,9 +229,9 @@ Name | Type | Description | Notes
229229

230230
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
231231

232-
# **uploadFile**
233-
> uploadFile(_api::PetApi, in_petId::Int64; in_additionalMetadata=nothing, in_file=nothing, _mediaType=nothing) -> ApiResponse <br/>
234-
> uploadFile(_api::PetApi, response_stream::Channel, in_petId::Int64; in_additionalMetadata=nothing, in_file=nothing, _mediaType=nothing) -> ApiResponse
232+
# **upload_file**
233+
> upload_file(_api::PetApi, pet_id::Int64; additional_metadata=nothing, file=nothing, _mediaType=nothing) -> ApiResponse <br/>
234+
> upload_file(_api::PetApi, response_stream::Channel, pet_id::Int64; additional_metadata=nothing, file=nothing, _mediaType=nothing) -> ApiResponse
235235
236236
uploads an image
237237

@@ -240,14 +240,14 @@ uploads an image
240240
Name | Type | Description | Notes
241241
------------- | ------------- | ------------- | -------------
242242
**_api** | **PetApi** | API context |
243-
**in_petId** | **Int64**| ID of pet to update | [default to nothing]
243+
**pet_id** | **Int64**| ID of pet to update | [default to nothing]
244244

245245
### Optional Parameters
246246

247247
Name | Type | Description | Notes
248248
------------- | ------------- | ------------- | -------------
249-
**in_additionalMetadata** | **String**| Additional data to pass to server | [default to nothing]
250-
**in_file** | **String****String**| file to upload | [default to nothing]
249+
**additional_metadata** | **String**| Additional data to pass to server | [default to nothing]
250+
**file** | **String****String**| file to upload | [default to nothing]
251251

252252
### Return type
253253

0 commit comments

Comments
 (0)