Skip to content

Commit 321513c

Browse files
committed
update samples
1 parent fb185f7 commit 321513c

12 files changed

Lines changed: 32 additions & 8 deletions

File tree

.github/workflows/samples-go-client-petstore.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ jobs:
1414
build:
1515
name: Build Go
1616
runs-on: ubuntu-latest
17+
services:
18+
petstore-api:
19+
image: swaggerapi/petstore
20+
ports:
21+
- 80:8080
22+
env:
23+
SWAGGER_HOST: http://petstore.swagger.io
24+
SWAGGER_BASE_PATH: /v2
1725
strategy:
1826
fail-fast: false
1927
matrix:

modules/openapi-generator/src/test/resources/3_0/go/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
@@ -49,6 +49,7 @@ paths:
4949
$ref: '#/components/schemas/Foo'
5050
/pet:
5151
servers:
52+
- url: 'http://localhost/v2'
5253
- url: 'http://petstore.swagger.io/v2'
5354
- url: 'http://path-server-test.petstore.local/v2'
5455
post:
@@ -1308,6 +1309,7 @@ paths:
13081309
schema:
13091310
type: object
13101311
servers:
1312+
- url: 'http://localhost/v2'
13111313
- url: 'http://{server}.swagger.io:{port}/v2'
13121314
description: petstore server
13131315
variables:

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

Lines changed: 1 addition & 1 deletion
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
------------ | ------------- | ------------- | -------------

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ info:
99
title: OpenAPI Petstore
1010
version: 1.0.0
1111
servers:
12+
- url: http://localhost/v2
1213
- description: petstore server
1314
url: "http://{server}.swagger.io:{port}/v2"
1415
variables:
@@ -100,6 +101,7 @@ paths:
100101
tags:
101102
- pet
102103
servers:
104+
- url: http://localhost/v2
103105
- url: http://petstore.swagger.io/v2
104106
- url: http://path-server-test.petstore.local/v2
105107
/pet/findByStatus:

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

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/openapi3/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/openapi3/client/petstore/go/go-petstore/docs/DefaultAPI.md

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

0 commit comments

Comments
 (0)