Skip to content

Commit a5ac2ee

Browse files
authored
remove import as already stated in the installation instruction (#8608)
1 parent d869544 commit a5ac2ee

4 files changed

Lines changed: 0 additions & 42 deletions

File tree

modules/openapi-generator/src/main/resources/powershell/api_doc.mustache

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ Method | HTTP request | Description
2323

2424
### Example
2525
```powershell
26-
Import-Module -Name {{{packageName}}}
27-
2826
{{#hasAuthMethods}}
2927
# general setting of the PowerShell module, e.g. base URL, authentication, etc
3028
$Configuration = Get-Configuration

samples/client/petstore/powershell/docs/PSPetApi.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ Add a new pet to the store
2323

2424
### Example
2525
```powershell
26-
Import-Module -Name PSPetstore
27-
2826
# general setting of the PowerShell module, e.g. base URL, authentication, etc
2927
$Configuration = Get-Configuration
3028
# Configure OAuth2 access token for authorization: petstore_auth
@@ -72,8 +70,6 @@ Deletes a pet
7270

7371
### Example
7472
```powershell
75-
Import-Module -Name PSPetstore
76-
7773
# general setting of the PowerShell module, e.g. base URL, authentication, etc
7874
$Configuration = Get-Configuration
7975
# Configure OAuth2 access token for authorization: petstore_auth
@@ -124,8 +120,6 @@ Multiple status values can be provided with comma separated strings
124120

125121
### Example
126122
```powershell
127-
Import-Module -Name PSPetstore
128-
129123
# general setting of the PowerShell module, e.g. base URL, authentication, etc
130124
$Configuration = Get-Configuration
131125
# Configure OAuth2 access token for authorization: petstore_auth
@@ -174,8 +168,6 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
174168

175169
### Example
176170
```powershell
177-
Import-Module -Name PSPetstore
178-
179171
# general setting of the PowerShell module, e.g. base URL, authentication, etc
180172
$Configuration = Get-Configuration
181173
# Configure OAuth2 access token for authorization: petstore_auth
@@ -224,8 +216,6 @@ Returns a single pet
224216

225217
### Example
226218
```powershell
227-
Import-Module -Name PSPetstore
228-
229219
# general setting of the PowerShell module, e.g. base URL, authentication, etc
230220
$Configuration = Get-Configuration
231221
# Configure API key authorization: api_key
@@ -274,8 +264,6 @@ Update an existing pet
274264

275265
### Example
276266
```powershell
277-
Import-Module -Name PSPetstore
278-
279267
# general setting of the PowerShell module, e.g. base URL, authentication, etc
280268
$Configuration = Get-Configuration
281269
# Configure OAuth2 access token for authorization: petstore_auth
@@ -324,8 +312,6 @@ Updates a pet in the store with form data
324312

325313
### Example
326314
```powershell
327-
Import-Module -Name PSPetstore
328-
329315
# general setting of the PowerShell module, e.g. base URL, authentication, etc
330316
$Configuration = Get-Configuration
331317
# Configure OAuth2 access token for authorization: petstore_auth
@@ -378,8 +364,6 @@ uploads an image
378364

379365
### Example
380366
```powershell
381-
Import-Module -Name PSPetstore
382-
383367
# general setting of the PowerShell module, e.g. base URL, authentication, etc
384368
$Configuration = Get-Configuration
385369
# Configure OAuth2 access token for authorization: petstore_auth

samples/client/petstore/powershell/docs/PSStoreApi.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or non
2121

2222
### Example
2323
```powershell
24-
Import-Module -Name PSPetstore
25-
2624
$OrderId = "OrderId_example" # String | ID of the order that needs to be deleted
2725
2826
# Delete purchase order by ID
@@ -65,8 +63,6 @@ Returns a map of status codes to quantities
6563

6664
### Example
6765
```powershell
68-
Import-Module -Name PSPetstore
69-
7066
# general setting of the PowerShell module, e.g. base URL, authentication, etc
7167
$Configuration = Get-Configuration
7268
# Configure API key authorization: api_key
@@ -113,8 +109,6 @@ For valid response try integer IDs with value <= 5 or > 10. Other values will ge
113109

114110
### Example
115111
```powershell
116-
Import-Module -Name PSPetstore
117-
118112
$OrderId = 987 # Int64 | ID of pet that needs to be fetched
119113
120114
# Find purchase order by ID
@@ -156,8 +150,6 @@ Place an order for a pet
156150

157151
### Example
158152
```powershell
159-
Import-Module -Name PSPetstore
160-
161153
$Order = (Initialize-Order -Id 123 -PetId 123 -Quantity 123 -ShipDate Get-Date -Status "placed" -Complete $false) # Order | order placed for purchasing the pet
162154
163155
# Place an order for a pet

samples/client/petstore/powershell/docs/PSUserApi.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ This can only be done by the logged in user.
2525

2626
### Example
2727
```powershell
28-
Import-Module -Name PSPetstore
29-
3028
# general setting of the PowerShell module, e.g. base URL, authentication, etc
3129
$Configuration = Get-Configuration
3230
# Configure API key authorization: auth_cookie
@@ -75,8 +73,6 @@ Creates list of users with given input array
7573

7674
### Example
7775
```powershell
78-
Import-Module -Name PSPetstore
79-
8076
# general setting of the PowerShell module, e.g. base URL, authentication, etc
8177
$Configuration = Get-Configuration
8278
# Configure API key authorization: auth_cookie
@@ -125,8 +121,6 @@ Creates list of users with given input array
125121

126122
### Example
127123
```powershell
128-
Import-Module -Name PSPetstore
129-
130124
# general setting of the PowerShell module, e.g. base URL, authentication, etc
131125
$Configuration = Get-Configuration
132126
# Configure API key authorization: auth_cookie
@@ -177,8 +171,6 @@ This can only be done by the logged in user.
177171

178172
### Example
179173
```powershell
180-
Import-Module -Name PSPetstore
181-
182174
# general setting of the PowerShell module, e.g. base URL, authentication, etc
183175
$Configuration = Get-Configuration
184176
# Configure API key authorization: auth_cookie
@@ -227,8 +219,6 @@ Get user by user name
227219

228220
### Example
229221
```powershell
230-
Import-Module -Name PSPetstore
231-
232222
$Username = "Username_example" # String | The name that needs to be fetched. Use user1 for testing.
233223
234224
# Get user by user name
@@ -271,8 +261,6 @@ Logs user into the system
271261

272262
### Example
273263
```powershell
274-
Import-Module -Name PSPetstore
275-
276264
$Username = "Username_example" # String | The user name for login
277265
$Password = "Password_example" # String | The password for login in clear text
278266
@@ -315,8 +303,6 @@ Logs out current logged in user session
315303

316304
### Example
317305
```powershell
318-
Import-Module -Name PSPetstore
319-
320306
# general setting of the PowerShell module, e.g. base URL, authentication, etc
321307
$Configuration = Get-Configuration
322308
# Configure API key authorization: auth_cookie
@@ -364,8 +350,6 @@ This can only be done by the logged in user.
364350

365351
### Example
366352
```powershell
367-
Import-Module -Name PSPetstore
368-
369353
# general setting of the PowerShell module, e.g. base URL, authentication, etc
370354
$Configuration = Get-Configuration
371355
# Configure API key authorization: auth_cookie

0 commit comments

Comments
 (0)