Skip to content

Commit 8d905cb

Browse files
committed
update to use localhost
1 parent 70cd9d9 commit 8d905cb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+79
-71
lines changed

.github/workflows/samples-rust-client.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 Rust
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/rust/petstore.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
servers:
3-
- url: 'http://petstore.swagger.io/v2'
3+
- url: 'http://localhost/v2'
44
info:
55
description: >-
66
This is a sample server Petstore server. For this sample, you can use the api key

samples/client/petstore/rust/hyper/petstore/README.md

Lines changed: 1 addition & 1 deletion

samples/client/petstore/rust/hyper/petstore/docs/FakeApi.md

Lines changed: 1 addition & 1 deletion

samples/client/petstore/rust/hyper/petstore/docs/PetApi.md

Lines changed: 1 addition & 1 deletion

samples/client/petstore/rust/hyper/petstore/docs/StoreApi.md

Lines changed: 1 addition & 1 deletion

samples/client/petstore/rust/hyper/petstore/docs/TestingApi.md

Lines changed: 1 addition & 1 deletion

samples/client/petstore/rust/hyper/petstore/docs/UserApi.md

Lines changed: 1 addition & 1 deletion

samples/client/petstore/rust/hyper/petstore/src/apis/configuration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl<C: Connect> Configuration<C>
7474
/// ```
7575
pub fn with_client(client: Client<C, String>) -> Configuration<C> {
7676
Configuration {
77-
base_path: "http://petstore.swagger.io/v2".to_owned(),
77+
base_path: "http://localhost/v2".to_owned(),
7878
user_agent: Some("OpenAPI-Generator/1.0.0/rust".to_owned()),
7979
client,
8080
basic_auth: None,

samples/client/petstore/rust/hyper0x/petstore/README.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)