Skip to content

Commit 117773f

Browse files
committed
update samples
1 parent 260787b commit 117773f

30 files changed

+41
-116
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ paths:
3131
$ref: '#/components/schemas/Foo'
3232
/pet:
3333
servers:
34-
- url: 'http://domaincontrol.com/v2'
3534
- url: 'http://petstore.swagger.io/v2'
3635
- url: 'http://path-server-test.petstore.local/v2'
3736
- url: 'http://{server}.swagger.io:{port}/v2'
@@ -189,7 +188,6 @@ paths:
189188
deprecated: true
190189
'/pet/{petId}':
191190
servers:
192-
- url: 'http://domaincontrol.com/v2'
193191
- url: 'http://petstore.swagger.io/v2'
194192
- url: 'http://path-server-test.petstore.local/v2'
195193
- url: 'http://{server}.swagger.io:{port}/v2'
@@ -1360,7 +1358,6 @@ paths:
13601358
200:
13611359
description: OK
13621360
servers:
1363-
- url: 'http://domaincontrol.com/v2'
13641361
- url: 'http://{server}.swagger.io:{port}/v2'
13651362
description: petstore server
13661363
variables:
@@ -1383,7 +1380,7 @@ servers:
13831380
- 'v1'
13841381
- 'v2'
13851382
default: 'v2'
1386-
- url: https://domaincontrol.com/no_varaible
1383+
- url: https://127.0.0.1/no_varaible
13871384
description: The local server without variables
13881385
- url: http://server.{version}.openapi-generator.tech
13891386
description: The openapi-generator test server

samples/client/petstore/ruby-faraday/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://domaincontrol.com/v2*
75+
All URIs are relative to *http://petstore.swagger.io:80/v2*
7676

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

samples/client/petstore/ruby-faraday/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://domaincontrol.com/v2*
3+
All URIs are relative to *http://petstore.swagger.io:80/v2*
44

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

samples/client/petstore/ruby-faraday/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://domaincontrol.com/v2*
3+
All URIs are relative to *http://petstore.swagger.io:80/v2*
44

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

samples/client/petstore/ruby-faraday/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://domaincontrol.com/v2*
3+
All URIs are relative to *http://petstore.swagger.io:80/v2*
44

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

samples/client/petstore/ruby-faraday/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://domaincontrol.com/v2*
3+
All URIs are relative to *http://petstore.swagger.io:80/v2*
44

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

samples/client/petstore/ruby-faraday/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://domaincontrol.com/v2*
3+
All URIs are relative to *http://petstore.swagger.io:80/v2*
44

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

samples/client/petstore/ruby-faraday/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://domaincontrol.com/v2*
3+
All URIs are relative to *http://petstore.swagger.io:80/v2*
44

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

samples/client/petstore/ruby-faraday/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://domaincontrol.com/v2*
3+
All URIs are relative to *http://petstore.swagger.io:80/v2*
44

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

samples/client/petstore/ruby-faraday/lib/petstore/configuration.rb

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class Configuration
157157

158158
def initialize
159159
@scheme = 'http'
160-
@host = 'domaincontrol.com'
160+
@host = 'petstore.swagger.io'
161161
@base_path = '/v2'
162162
@server_index = nil
163163
@server_operation_index = {}
@@ -290,10 +290,6 @@ def auth_settings
290290
# Returns an array of Server setting
291291
def server_settings
292292
[
293-
{
294-
url: "http://domaincontrol.com/v2",
295-
description: "No description provided",
296-
},
297293
{
298294
url: "http://{server}.swagger.io:{port}/v2",
299295
description: "petstore server",
@@ -332,7 +328,7 @@ def server_settings
332328
}
333329
},
334330
{
335-
url: "https://domaincontrol.com/no_varaible",
331+
url: "https://127.0.0.1/no_varaible",
336332
description: "The local server without variables",
337333
},
338334
{
@@ -355,10 +351,6 @@ def server_settings
355351
def operation_server_settings
356352
{
357353
"PetApi.add_pet": [
358-
{
359-
url: "http://domaincontrol.com/v2",
360-
description: "No description provided",
361-
},
362354
{
363355
url: "http://petstore.swagger.io/v2",
364356
description: "No description provided",
@@ -406,10 +398,6 @@ def operation_server_settings
406398
}
407399
],
408400
"PetApi.delete_pet": [
409-
{
410-
url: "http://domaincontrol.com/v2",
411-
description: "No description provided",
412-
},
413401
{
414402
url: "http://petstore.swagger.io/v2",
415403
description: "No description provided",
@@ -457,10 +445,6 @@ def operation_server_settings
457445
}
458446
],
459447
"PetApi.get_pet_by_id": [
460-
{
461-
url: "http://domaincontrol.com/v2",
462-
description: "No description provided",
463-
},
464448
{
465449
url: "http://petstore.swagger.io/v2",
466450
description: "No description provided",
@@ -508,10 +492,6 @@ def operation_server_settings
508492
}
509493
],
510494
"PetApi.update_pet": [
511-
{
512-
url: "http://domaincontrol.com/v2",
513-
description: "No description provided",
514-
},
515495
{
516496
url: "http://petstore.swagger.io/v2",
517497
description: "No description provided",
@@ -559,10 +539,6 @@ def operation_server_settings
559539
}
560540
],
561541
"PetApi.update_pet_with_form": [
562-
{
563-
url: "http://domaincontrol.com/v2",
564-
description: "No description provided",
565-
},
566542
{
567543
url: "http://petstore.swagger.io/v2",
568544
description: "No description provided",

0 commit comments

Comments
 (0)