Skip to content

Commit bac5b75

Browse files
committed
update samples
1 parent 72a11a8 commit bac5b75

10 files changed

Lines changed: 13 additions & 13 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ info:
66
license:
77
name: Apache-2.0
88
url: 'https://www.apache.org/licenses/LICENSE-2.0.html'
9-
host: petstore.swagger.io:80
9+
host: localhost
1010
basePath: /v2
1111
tags:
1212
- name: pet
@@ -1135,7 +1135,7 @@ paths:
11351135
securityDefinitions:
11361136
petstore_auth:
11371137
type: oauth2
1138-
authorizationUrl: 'http://petstore.swagger.io/api/oauth/dialog'
1138+
authorizationUrl: 'http://localhost/api/oauth/dialog'
11391139
flow: implicit
11401140
scopes:
11411141
'write:pets': modify pets in your account

samples/client/petstore/go/go-petstore/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ ctx = context.WithValue(context.Background(), petstore.ContextOperationServerVar
7575

7676
## Documentation for API Endpoints
7777

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

8080
Class | Method | HTTP request | Description
8181
------------ | ------------- | ------------- | -------------
@@ -176,7 +176,7 @@ Authentication schemes defined for the API:
176176

177177
- **Type**: OAuth
178178
- **Flow**: implicit
179-
- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog
179+
- **Authorization URL**: http://localhost/api/oauth/dialog
180180
- **Scopes**:
181181
- **write:pets**: modify pets in your account
182182
- **read:pets**: read your pets

samples/client/petstore/go/go-petstore/api/openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ info:
99
title: OpenAPI Petstore
1010
version: 1.0.0
1111
servers:
12-
- url: http://petstore.swagger.io:80/v2
12+
- url: http://localhost/v2
1313
tags:
1414
- description: Everything about your Pets
1515
name: pet
@@ -2130,7 +2130,7 @@ components:
21302130
petstore_auth:
21312131
flows:
21322132
implicit:
2133-
authorizationUrl: http://petstore.swagger.io/api/oauth/dialog
2133+
authorizationUrl: http://localhost/api/oauth/dialog
21342134
scopes:
21352135
write:pets: modify pets in your account
21362136
read:pets: read your pets

samples/client/petstore/go/go-petstore/configuration.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/petstore/go/go-petstore/docs/AnotherFakeAPI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# \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/go/go-petstore/docs/FakeAPI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# \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/go/go-petstore/docs/FakeClassnameTags123API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# \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/go/go-petstore/docs/PetAPI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# \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/go/go-petstore/docs/StoreAPI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# \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/go/go-petstore/docs/UserAPI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# \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
------------- | ------------- | -------------

0 commit comments

Comments
 (0)