Skip to content

Commit c01693b

Browse files
committed
use localhost
1 parent e991c21 commit c01693b

10 files changed

Lines changed: 15 additions & 9 deletions

File tree

modules/openapi-generator/src/test/resources/3_0/powershell/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ paths:
3131
$ref: '#/components/schemas/Foo'
3232
/pet:
3333
servers:
34+
- url: 'http://localhost/v2'
3435
- url: 'http://petstore.swagger.io/v2'
3536
- url: 'http://path-server-test.petstore.local/v2'
3637
post:
@@ -1170,6 +1171,7 @@ paths:
11701171
schema:
11711172
$ref: '#/components/schemas/ArrayOfEnums'
11721173
servers:
1174+
- url: 'http://localhost/v2'
11731175
- url: 'http://{server}.swagger.io:{port}/v2'
11741176
description: petstore server
11751177
variables:

samples/client/petstore/powershell/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ For troubleshooting, please run `$DebugPreference = 'Continue'` to turn on debug
5252

5353
## Documentation for API Endpoints
5454

55-
All URIs are relative to *http://petstore.swagger.io:80/v2*
55+
All URIs are relative to *http://localhost/v2*
5656

5757
Class | Method | HTTP request | Description
5858
------------ | ------------- | ------------- | -------------

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PSPetstore.PSPetstore\Api.PSAnotherFakeApi
22

3-
All URIs are relative to *http://petstore.swagger.io:80/v2*
3+
All URIs are relative to *http://localhost/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PSPetstore.PSPetstore\Api.PSDefaultApi
22

3-
All URIs are relative to *http://petstore.swagger.io:80/v2*
3+
All URIs are relative to *http://localhost/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PSPetstore.PSPetstore\Api.PSFakeApi
22

3-
All URIs are relative to *http://petstore.swagger.io:80/v2*
3+
All URIs are relative to *http://localhost/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PSPetstore.PSPetstore\Api.PSFakeClassnameTags123Api
22

3-
All URIs are relative to *http://petstore.swagger.io:80/v2*
3+
All URIs are relative to *http://localhost/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PSPetstore.PSPetstore\Api.PSPetApi
22

3-
All URIs are relative to *http://petstore.swagger.io:80/v2*
3+
All URIs are relative to *http://localhost/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PSPetstore.PSPetstore\Api.PSStoreApi
22

3-
All URIs are relative to *http://petstore.swagger.io:80/v2*
3+
All URIs are relative to *http://localhost/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PSPetstore.PSPetstore\Api.PSUserApi
22

3-
All URIs are relative to *http://petstore.swagger.io:80/v2*
3+
All URIs are relative to *http://localhost/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

samples/client/petstore/powershell/src/PSPetstore/Client/PSConfiguration.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function Get-PSConfiguration {
2323
$Configuration = $Script:Configuration
2424

2525
if ([string]::IsNullOrEmpty($Configuration["BaseUrl"])) {
26-
$Configuration["BaseUrl"] = "http://petstore.swagger.io:80/v2";
26+
$Configuration["BaseUrl"] = "http://localhost/v2";
2727
}
2828

2929
if (!$Configuration.containsKey("Username")) {
@@ -311,6 +311,10 @@ System.Collections.Hashtable[]
311311
#>
312312
function Get-PSHostSetting {
313313
return ,@(
314+
@{
315+
"Url" = "http://localhost/v2";
316+
"Description" = "No description provided";
317+
},
314318
@{
315319
"Url" = "http://{server}.swagger.io:{port}/v2";
316320
"Description" = "petstore server";

0 commit comments

Comments
 (0)