Skip to content

Commit 9d29eb9

Browse files
committed
localhost
1 parent c2a8e11 commit 9d29eb9

File tree

19 files changed

+69
-18
lines changed

19 files changed

+69
-18
lines changed

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

Lines changed: 3 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
- url: 'http://{server}.swagger.io:{port}/v2'
@@ -188,6 +189,7 @@ paths:
188189
deprecated: true
189190
'/pet/{petId}':
190191
servers:
192+
- url: 'http://localhost/v2'
191193
- url: 'http://petstore.swagger.io/v2'
192194
- url: 'http://path-server-test.petstore.local/v2'
193195
- url: 'http://{server}.swagger.io:{port}/v2'
@@ -1358,6 +1360,7 @@ paths:
13581360
200:
13591361
description: OK
13601362
servers:
1363+
- url: 'http://localhost/v2'
13611364
- url: 'http://{server}.swagger.io:{port}/v2'
13621365
description: petstore server
13631366
variables:

samples/client/petstore/ruby-httpx/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ end
7272

7373
## Documentation for API Endpoints
7474

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

7777
Class | Method | HTTP request | Description
7878
------------ | ------------- | ------------- | -------------

samples/client/petstore/ruby-httpx/docs/AnotherFakeApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Petstore::AnotherFakeApi
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/ruby-httpx/docs/DefaultApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Petstore::DefaultApi
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/ruby-httpx/docs/FakeApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Petstore::FakeApi
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/ruby-httpx/docs/FakeClassnameTags123Api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Petstore::FakeClassnameTags123Api
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/ruby-httpx/docs/PetApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Petstore::PetApi
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/ruby-httpx/docs/StoreApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Petstore::StoreApi
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/ruby-httpx/docs/UserApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Petstore::UserApi
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/ruby-httpx/lib/petstore/configuration.rb

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class Configuration
128128

129129
def initialize
130130
@scheme = 'http'
131-
@host = 'petstore.swagger.io'
131+
@host = 'localhost'
132132
@base_path = '/v2'
133133
@server_index = nil
134134
@server_operation_index = {}
@@ -254,6 +254,10 @@ def auth_settings
254254
# Returns an array of Server setting
255255
def server_settings
256256
[
257+
{
258+
url: "http://localhost/v2",
259+
description: "No description provided",
260+
},
257261
{
258262
url: "http://{server}.swagger.io:{port}/v2",
259263
description: "petstore server",
@@ -315,6 +319,10 @@ def server_settings
315319
def operation_server_settings
316320
{
317321
"PetApi.add_pet": [
322+
{
323+
url: "http://localhost/v2",
324+
description: "No description provided",
325+
},
318326
{
319327
url: "http://petstore.swagger.io/v2",
320328
description: "No description provided",
@@ -362,6 +370,10 @@ def operation_server_settings
362370
}
363371
],
364372
"PetApi.delete_pet": [
373+
{
374+
url: "http://localhost/v2",
375+
description: "No description provided",
376+
},
365377
{
366378
url: "http://petstore.swagger.io/v2",
367379
description: "No description provided",
@@ -409,6 +421,10 @@ def operation_server_settings
409421
}
410422
],
411423
"PetApi.get_pet_by_id": [
424+
{
425+
url: "http://localhost/v2",
426+
description: "No description provided",
427+
},
412428
{
413429
url: "http://petstore.swagger.io/v2",
414430
description: "No description provided",
@@ -456,6 +472,10 @@ def operation_server_settings
456472
}
457473
],
458474
"PetApi.update_pet": [
475+
{
476+
url: "http://localhost/v2",
477+
description: "No description provided",
478+
},
459479
{
460480
url: "http://petstore.swagger.io/v2",
461481
description: "No description provided",
@@ -503,6 +523,10 @@ def operation_server_settings
503523
}
504524
],
505525
"PetApi.update_pet_with_form": [
526+
{
527+
url: "http://localhost/v2",
528+
description: "No description provided",
529+
},
506530
{
507531
url: "http://petstore.swagger.io/v2",
508532
description: "No description provided",

0 commit comments

Comments
 (0)