diff --git a/.github/workflows/samples-rust-client.yaml b/.github/workflows/samples-rust-client.yaml new file mode 100644 index 000000000000..93b41e72b234 --- /dev/null +++ b/.github/workflows/samples-rust-client.yaml @@ -0,0 +1,72 @@ +name: Samples Rust Clients + +on: + push: + paths: + - "samples/client/others/rust/**" + - "samples/client/petstore/rust-server/**" + pull_request: + paths: + - "samples/client/others/rust/**" + - "samples/client/petstore/rust/**" + +jobs: + build: + name: Build Rust + runs-on: ubuntu-latest + services: + petstore-api: + image: swaggerapi/petstore + ports: + - 80:8080 + env: + SWAGGER_HOST: http://petstore.swagger.io + SWAGGER_BASE_PATH: /v2 + strategy: + fail-fast: false + matrix: + sample: + # these folders contain sub-projects of rust clients, servers + - samples/client/others/rust/ + - samples/client/petstore/rust/ + steps: + - uses: actions/checkout@v5 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + + - name: Rust cache + uses: Swatinem/rust-cache@v2 + with: + cache-targets: false # Don't cache workspace target directories as they don't exist + cache-directories: + ${{ matrix.sample }}/target + workspaces: | + ${{ matrix.sample }}/output/* + + - name: Build + working-directory: ${{ matrix.sample }} + run: cargo build --all-targets --all-features + - name: Tests + working-directory: ${{ matrix.sample }} + run: | + set -e + + # Iterate through each example and test various features + for package in $(find . -maxdepth 1 -mindepth 1 -type d) + do + # Not all versions have a client example + if test -f examples/client/main.rs; then + cargo build --example client --features="client" + fi + + # Test the CLI works if present + if test -f bin/cli.rs; then + cargo build --bin ${package##*/} --features cli + target/debug/${package##*/} --help + fi + cargo fmt + cargo test + cargo clippy + cargo doc + done diff --git a/.github/workflows/samples-rust.yaml b/.github/workflows/samples-rust-server.yaml similarity index 72% rename from .github/workflows/samples-rust.yaml rename to .github/workflows/samples-rust-server.yaml index b42346feaabb..025b24bb8783 100644 --- a/.github/workflows/samples-rust.yaml +++ b/.github/workflows/samples-rust-server.yaml @@ -1,16 +1,12 @@ -name: Samples Rust +name: Samples Rust Servers on: push: paths: - - "samples/client/others/rust/**" - "samples/server/petstore/rust-server/**" - - "samples/client/petstore/rust-server/**" - "samples/server/petstore/rust-axum/**" pull_request: paths: - - "samples/client/others/rust/**" - - "samples/client/petstore/rust/**" - "samples/server/petstore/rust-server/**" - "samples/server/petstore/rust-axum/**" @@ -23,8 +19,6 @@ jobs: matrix: sample: # these folders contain sub-projects of rust clients, servers - - samples/client/others/rust/ - - samples/client/petstore/rust/ - samples/server/petstore/rust-server/ - samples/server/petstore/rust-server-deprecated/ - samples/server/petstore/rust-axum/ @@ -50,19 +44,10 @@ jobs: working-directory: ${{ matrix.sample }} run: | set -e - # Skip samples/client/petstore/rust/ as its tests are failing. - if [[ "${{ matrix.sample }}" == "samples/client/petstore/rust/" ]]; then - echo "Skipping tests for samples/client/petstore/rust/" - exit 0 - fi # Iterate through each example and test various features for package in $(find . -maxdepth 1 -mindepth 1 -type d) do - # Not all versions have a client example - if test -f examples/client/main.rs; then - cargo build --example client --features="client" - fi # Not all versions have a server example if test -f examples/server/main.rs; then cargo build --example server --features="server" diff --git a/modules/openapi-generator/src/test/resources/3_0/rust/petstore.yaml b/modules/openapi-generator/src/test/resources/3_0/rust/petstore.yaml index 37c5b4e1e6c0..d0b515e7cef0 100644 --- a/modules/openapi-generator/src/test/resources/3_0/rust/petstore.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/rust/petstore.yaml @@ -1,6 +1,6 @@ openapi: 3.0.0 servers: - - url: 'http://petstore.swagger.io/v2' + - url: 'http://localhost/v2' info: description: >- This is a sample server Petstore server. For this sample, you can use the api key diff --git a/samples/client/others/rust/hyper/oneOf/.openapi-generator-ignore b/samples/client/others/rust/hyper/oneOf/.openapi-generator-ignore index 7484ee590a38..c5b04829c20a 100644 --- a/samples/client/others/rust/hyper/oneOf/.openapi-generator-ignore +++ b/samples/client/others/rust/hyper/oneOf/.openapi-generator-ignore @@ -21,3 +21,6 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md +# +# +# diff --git a/samples/client/petstore/rust/hyper/petstore/README.md b/samples/client/petstore/rust/hyper/petstore/README.md index 44ce7f9ade4e..762e4e947942 100644 --- a/samples/client/petstore/rust/hyper/petstore/README.md +++ b/samples/client/petstore/rust/hyper/petstore/README.md @@ -22,7 +22,7 @@ petstore-hyper = { path = "./petstore-hyper" } ## Documentation for API Endpoints -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/hyper/petstore/docs/FakeApi.md b/samples/client/petstore/rust/hyper/petstore/docs/FakeApi.md index 9dcab81e5dc9..dd505e5bf3e8 100644 --- a/samples/client/petstore/rust/hyper/petstore/docs/FakeApi.md +++ b/samples/client/petstore/rust/hyper/petstore/docs/FakeApi.md @@ -1,6 +1,6 @@ # \FakeApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/hyper/petstore/docs/PetApi.md b/samples/client/petstore/rust/hyper/petstore/docs/PetApi.md index 747dd0c5b978..40697be6fa7e 100644 --- a/samples/client/petstore/rust/hyper/petstore/docs/PetApi.md +++ b/samples/client/petstore/rust/hyper/petstore/docs/PetApi.md @@ -1,6 +1,6 @@ # \PetApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/hyper/petstore/docs/StoreApi.md b/samples/client/petstore/rust/hyper/petstore/docs/StoreApi.md index d9bbe8b23734..e8b9fbd0db3b 100644 --- a/samples/client/petstore/rust/hyper/petstore/docs/StoreApi.md +++ b/samples/client/petstore/rust/hyper/petstore/docs/StoreApi.md @@ -1,6 +1,6 @@ # \StoreApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/hyper/petstore/docs/TestingApi.md b/samples/client/petstore/rust/hyper/petstore/docs/TestingApi.md index a4009e0d40a2..ed3564412a78 100644 --- a/samples/client/petstore/rust/hyper/petstore/docs/TestingApi.md +++ b/samples/client/petstore/rust/hyper/petstore/docs/TestingApi.md @@ -1,6 +1,6 @@ # \TestingApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/hyper/petstore/docs/UserApi.md b/samples/client/petstore/rust/hyper/petstore/docs/UserApi.md index 6d592c638ef0..843120733e34 100644 --- a/samples/client/petstore/rust/hyper/petstore/docs/UserApi.md +++ b/samples/client/petstore/rust/hyper/petstore/docs/UserApi.md @@ -1,6 +1,6 @@ # \UserApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/hyper/petstore/src/apis/configuration.rs b/samples/client/petstore/rust/hyper/petstore/src/apis/configuration.rs index 5e23b02c1fc7..c702dc6f6cf9 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/apis/configuration.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/apis/configuration.rs @@ -74,7 +74,7 @@ impl Configuration /// ``` pub fn with_client(client: Client) -> Configuration { Configuration { - base_path: "http://petstore.swagger.io/v2".to_owned(), + base_path: "http://localhost/v2".to_owned(), user_agent: Some("OpenAPI-Generator/1.0.0/rust".to_owned()), client, basic_auth: None, diff --git a/samples/client/petstore/rust/hyper0x/petstore/README.md b/samples/client/petstore/rust/hyper0x/petstore/README.md index fd79ab88e14e..1948945daaaa 100644 --- a/samples/client/petstore/rust/hyper0x/petstore/README.md +++ b/samples/client/petstore/rust/hyper0x/petstore/README.md @@ -22,7 +22,7 @@ petstore-hyper0x = { path = "./petstore-hyper0x" } ## Documentation for API Endpoints -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/hyper0x/petstore/docs/FakeApi.md b/samples/client/petstore/rust/hyper0x/petstore/docs/FakeApi.md index ac1e9f40c105..ca1ec4a34638 100644 --- a/samples/client/petstore/rust/hyper0x/petstore/docs/FakeApi.md +++ b/samples/client/petstore/rust/hyper0x/petstore/docs/FakeApi.md @@ -1,6 +1,6 @@ # \FakeApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/hyper0x/petstore/docs/PetApi.md b/samples/client/petstore/rust/hyper0x/petstore/docs/PetApi.md index 9d10c02f4986..fdef2e1f7f63 100644 --- a/samples/client/petstore/rust/hyper0x/petstore/docs/PetApi.md +++ b/samples/client/petstore/rust/hyper0x/petstore/docs/PetApi.md @@ -1,6 +1,6 @@ # \PetApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/hyper0x/petstore/docs/StoreApi.md b/samples/client/petstore/rust/hyper0x/petstore/docs/StoreApi.md index a513dfa1b5fa..02a9ccabdb8a 100644 --- a/samples/client/petstore/rust/hyper0x/petstore/docs/StoreApi.md +++ b/samples/client/petstore/rust/hyper0x/petstore/docs/StoreApi.md @@ -1,6 +1,6 @@ # \StoreApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/hyper0x/petstore/docs/TestingApi.md b/samples/client/petstore/rust/hyper0x/petstore/docs/TestingApi.md index a99edf6ffea8..c5d3483462e2 100644 --- a/samples/client/petstore/rust/hyper0x/petstore/docs/TestingApi.md +++ b/samples/client/petstore/rust/hyper0x/petstore/docs/TestingApi.md @@ -1,6 +1,6 @@ # \TestingApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/hyper0x/petstore/docs/UserApi.md b/samples/client/petstore/rust/hyper0x/petstore/docs/UserApi.md index b4481390cfae..7930130a923b 100644 --- a/samples/client/petstore/rust/hyper0x/petstore/docs/UserApi.md +++ b/samples/client/petstore/rust/hyper0x/petstore/docs/UserApi.md @@ -1,6 +1,6 @@ # \UserApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/hyper0x/petstore/src/apis/configuration.rs b/samples/client/petstore/rust/hyper0x/petstore/src/apis/configuration.rs index ae41a7529763..e67cd07ae313 100644 --- a/samples/client/petstore/rust/hyper0x/petstore/src/apis/configuration.rs +++ b/samples/client/petstore/rust/hyper0x/petstore/src/apis/configuration.rs @@ -32,7 +32,7 @@ impl Configuration where C: Clone + std::marker::Send + Sync { pub fn new(client: hyper::client::Client) -> Configuration { Configuration { - base_path: "http://petstore.swagger.io/v2".to_owned(), + base_path: "http://localhost/v2".to_owned(), user_agent: Some("OpenAPI-Generator/1.0.0/rust".to_owned()), client, basic_auth: None, diff --git a/samples/client/petstore/rust/reqwest-trait/petstore/README.md b/samples/client/petstore/rust/reqwest-trait/petstore/README.md index 390ae5ee2567..4a5d1b6e9d9d 100644 --- a/samples/client/petstore/rust/reqwest-trait/petstore/README.md +++ b/samples/client/petstore/rust/reqwest-trait/petstore/README.md @@ -22,7 +22,7 @@ petstore-reqwest-trait = { path = "./petstore-reqwest-trait" } ## Documentation for API Endpoints -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest-trait/petstore/docs/FakeApi.md b/samples/client/petstore/rust/reqwest-trait/petstore/docs/FakeApi.md index ac1e9f40c105..ca1ec4a34638 100644 --- a/samples/client/petstore/rust/reqwest-trait/petstore/docs/FakeApi.md +++ b/samples/client/petstore/rust/reqwest-trait/petstore/docs/FakeApi.md @@ -1,6 +1,6 @@ # \FakeApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest-trait/petstore/docs/PetApi.md b/samples/client/petstore/rust/reqwest-trait/petstore/docs/PetApi.md index 9d10c02f4986..fdef2e1f7f63 100644 --- a/samples/client/petstore/rust/reqwest-trait/petstore/docs/PetApi.md +++ b/samples/client/petstore/rust/reqwest-trait/petstore/docs/PetApi.md @@ -1,6 +1,6 @@ # \PetApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest-trait/petstore/docs/StoreApi.md b/samples/client/petstore/rust/reqwest-trait/petstore/docs/StoreApi.md index a513dfa1b5fa..02a9ccabdb8a 100644 --- a/samples/client/petstore/rust/reqwest-trait/petstore/docs/StoreApi.md +++ b/samples/client/petstore/rust/reqwest-trait/petstore/docs/StoreApi.md @@ -1,6 +1,6 @@ # \StoreApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest-trait/petstore/docs/TestingApi.md b/samples/client/petstore/rust/reqwest-trait/petstore/docs/TestingApi.md index a99edf6ffea8..c5d3483462e2 100644 --- a/samples/client/petstore/rust/reqwest-trait/petstore/docs/TestingApi.md +++ b/samples/client/petstore/rust/reqwest-trait/petstore/docs/TestingApi.md @@ -1,6 +1,6 @@ # \TestingApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest-trait/petstore/docs/UserApi.md b/samples/client/petstore/rust/reqwest-trait/petstore/docs/UserApi.md index b4481390cfae..7930130a923b 100644 --- a/samples/client/petstore/rust/reqwest-trait/petstore/docs/UserApi.md +++ b/samples/client/petstore/rust/reqwest-trait/petstore/docs/UserApi.md @@ -1,6 +1,6 @@ # \UserApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest-trait/petstore/src/apis/configuration.rs b/samples/client/petstore/rust/reqwest-trait/petstore/src/apis/configuration.rs index 761172249baa..c698dd6e74a1 100644 --- a/samples/client/petstore/rust/reqwest-trait/petstore/src/apis/configuration.rs +++ b/samples/client/petstore/rust/reqwest-trait/petstore/src/apis/configuration.rs @@ -39,7 +39,7 @@ impl Configuration { impl Default for Configuration { fn default() -> Self { Configuration { - base_path: "http://petstore.swagger.io/v2".to_owned(), + base_path: "http://localhost/v2".to_owned(), user_agent: Some("OpenAPI-Generator/1.0.0/rust".to_owned()), client: reqwest::Client::new(), basic_auth: None, diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/README.md b/samples/client/petstore/rust/reqwest/petstore-async-middleware/README.md index b4290bf61d0d..dbfa983d730e 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/README.md +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/README.md @@ -22,7 +22,7 @@ petstore-reqwest-async-middleware = { path = "./petstore-reqwest-async-middlewar ## Documentation for API Endpoints -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/FakeApi.md b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/FakeApi.md index ac1e9f40c105..ca1ec4a34638 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/FakeApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/FakeApi.md @@ -1,6 +1,6 @@ # \FakeApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/PetApi.md b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/PetApi.md index 9d10c02f4986..fdef2e1f7f63 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/PetApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/PetApi.md @@ -1,6 +1,6 @@ # \PetApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/StoreApi.md b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/StoreApi.md index a513dfa1b5fa..02a9ccabdb8a 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/StoreApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/StoreApi.md @@ -1,6 +1,6 @@ # \StoreApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/TestingApi.md b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/TestingApi.md index a99edf6ffea8..c5d3483462e2 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/TestingApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/TestingApi.md @@ -1,6 +1,6 @@ # \TestingApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/UserApi.md b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/UserApi.md index b4481390cfae..7930130a923b 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/UserApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/UserApi.md @@ -1,6 +1,6 @@ # \UserApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/configuration.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/configuration.rs index 2d931ea0b6fa..55d59e791f0f 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/configuration.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/configuration.rs @@ -39,7 +39,7 @@ impl Configuration { impl Default for Configuration { fn default() -> Self { Configuration { - base_path: "http://petstore.swagger.io/v2".to_owned(), + base_path: "http://localhost/v2".to_owned(), user_agent: Some("OpenAPI-Generator/1.0.0/rust".to_owned()), client: reqwest_middleware::ClientBuilder::new(reqwest::Client::new()).build(), basic_auth: None, diff --git a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/README.md b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/README.md index 6eada64751e7..9a7ee0b0b28c 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/README.md +++ b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/README.md @@ -22,7 +22,7 @@ petstore-reqwest-async-tokensource = { path = "./petstore-reqwest-async-tokensou ## Documentation for API Endpoints -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/FakeApi.md b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/FakeApi.md index ac1e9f40c105..ca1ec4a34638 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/FakeApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/FakeApi.md @@ -1,6 +1,6 @@ # \FakeApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/PetApi.md b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/PetApi.md index 9d10c02f4986..fdef2e1f7f63 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/PetApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/PetApi.md @@ -1,6 +1,6 @@ # \PetApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/StoreApi.md b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/StoreApi.md index a513dfa1b5fa..02a9ccabdb8a 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/StoreApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/StoreApi.md @@ -1,6 +1,6 @@ # \StoreApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/TestingApi.md b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/TestingApi.md index a99edf6ffea8..c5d3483462e2 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/TestingApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/TestingApi.md @@ -1,6 +1,6 @@ # \TestingApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/UserApi.md b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/UserApi.md index b4481390cfae..7930130a923b 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/UserApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/UserApi.md @@ -1,6 +1,6 @@ # \UserApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/src/apis/configuration.rs b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/src/apis/configuration.rs index a380aed4ec7b..6c9c440c07e0 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/src/apis/configuration.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/src/apis/configuration.rs @@ -31,7 +31,7 @@ impl Configuration { impl Default for Configuration { fn default() -> Self { Configuration { - base_path: "http://petstore.swagger.io/v2".to_owned(), + base_path: "http://localhost/v2".to_owned(), user_agent: Some("OpenAPI-Generator/1.0.0/rust".to_owned()), client: reqwest::Client::new(), token_source: Arc::new(NoopTokenSource{}), diff --git a/samples/client/petstore/rust/reqwest/petstore-async/README.md b/samples/client/petstore/rust/reqwest/petstore-async/README.md index 53cc0e950f7d..9cc7e27af0ea 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/README.md +++ b/samples/client/petstore/rust/reqwest/petstore-async/README.md @@ -22,7 +22,7 @@ petstore-reqwest-async = { path = "./petstore-reqwest-async" } ## Documentation for API Endpoints -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-async/docs/FakeApi.md b/samples/client/petstore/rust/reqwest/petstore-async/docs/FakeApi.md index ac1e9f40c105..ca1ec4a34638 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/docs/FakeApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async/docs/FakeApi.md @@ -1,6 +1,6 @@ # \FakeApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-async/docs/PetApi.md b/samples/client/petstore/rust/reqwest/petstore-async/docs/PetApi.md index 9d10c02f4986..fdef2e1f7f63 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/docs/PetApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async/docs/PetApi.md @@ -1,6 +1,6 @@ # \PetApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-async/docs/StoreApi.md b/samples/client/petstore/rust/reqwest/petstore-async/docs/StoreApi.md index a513dfa1b5fa..02a9ccabdb8a 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/docs/StoreApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async/docs/StoreApi.md @@ -1,6 +1,6 @@ # \StoreApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-async/docs/TestingApi.md b/samples/client/petstore/rust/reqwest/petstore-async/docs/TestingApi.md index a99edf6ffea8..c5d3483462e2 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/docs/TestingApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async/docs/TestingApi.md @@ -1,6 +1,6 @@ # \TestingApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-async/docs/UserApi.md b/samples/client/petstore/rust/reqwest/petstore-async/docs/UserApi.md index b4481390cfae..7930130a923b 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/docs/UserApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async/docs/UserApi.md @@ -1,6 +1,6 @@ # \UserApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/apis/configuration.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/apis/configuration.rs index 761172249baa..c698dd6e74a1 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/apis/configuration.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/apis/configuration.rs @@ -39,7 +39,7 @@ impl Configuration { impl Default for Configuration { fn default() -> Self { Configuration { - base_path: "http://petstore.swagger.io/v2".to_owned(), + base_path: "http://localhost/v2".to_owned(), user_agent: Some("OpenAPI-Generator/1.0.0/rust".to_owned()), client: reqwest::Client::new(), basic_auth: None, diff --git a/samples/client/petstore/rust/reqwest/petstore-avoid-box/README.md b/samples/client/petstore/rust/reqwest/petstore-avoid-box/README.md index 7ecd51bf2a7b..8d96630002d0 100644 --- a/samples/client/petstore/rust/reqwest/petstore-avoid-box/README.md +++ b/samples/client/petstore/rust/reqwest/petstore-avoid-box/README.md @@ -22,7 +22,7 @@ petstore-reqwest-avoid-box = { path = "./petstore-reqwest-avoid-box" } ## Documentation for API Endpoints -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/FakeApi.md b/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/FakeApi.md index ac1e9f40c105..ca1ec4a34638 100644 --- a/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/FakeApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/FakeApi.md @@ -1,6 +1,6 @@ # \FakeApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/PetApi.md b/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/PetApi.md index 9d10c02f4986..fdef2e1f7f63 100644 --- a/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/PetApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/PetApi.md @@ -1,6 +1,6 @@ # \PetApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/StoreApi.md b/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/StoreApi.md index a513dfa1b5fa..02a9ccabdb8a 100644 --- a/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/StoreApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/StoreApi.md @@ -1,6 +1,6 @@ # \StoreApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/TestingApi.md b/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/TestingApi.md index a99edf6ffea8..c5d3483462e2 100644 --- a/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/TestingApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/TestingApi.md @@ -1,6 +1,6 @@ # \TestingApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/UserApi.md b/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/UserApi.md index b4481390cfae..7930130a923b 100644 --- a/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/UserApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/UserApi.md @@ -1,6 +1,6 @@ # \UserApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-avoid-box/src/apis/configuration.rs b/samples/client/petstore/rust/reqwest/petstore-avoid-box/src/apis/configuration.rs index 761172249baa..c698dd6e74a1 100644 --- a/samples/client/petstore/rust/reqwest/petstore-avoid-box/src/apis/configuration.rs +++ b/samples/client/petstore/rust/reqwest/petstore-avoid-box/src/apis/configuration.rs @@ -39,7 +39,7 @@ impl Configuration { impl Default for Configuration { fn default() -> Self { Configuration { - base_path: "http://petstore.swagger.io/v2".to_owned(), + base_path: "http://localhost/v2".to_owned(), user_agent: Some("OpenAPI-Generator/1.0.0/rust".to_owned()), client: reqwest::Client::new(), basic_auth: None, diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/README.md b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/README.md index 7fb2dcf09b8f..abe40999c0b3 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/README.md +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/README.md @@ -22,7 +22,7 @@ petstore-reqwest-awsv4signature = { path = "./petstore-reqwest-awsv4signature" } ## Documentation for API Endpoints -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/FakeApi.md b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/FakeApi.md index ac1e9f40c105..ca1ec4a34638 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/FakeApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/FakeApi.md @@ -1,6 +1,6 @@ # \FakeApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/PetApi.md b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/PetApi.md index 9d10c02f4986..fdef2e1f7f63 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/PetApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/PetApi.md @@ -1,6 +1,6 @@ # \PetApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/StoreApi.md b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/StoreApi.md index a513dfa1b5fa..02a9ccabdb8a 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/StoreApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/StoreApi.md @@ -1,6 +1,6 @@ # \StoreApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/TestingApi.md b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/TestingApi.md index a99edf6ffea8..c5d3483462e2 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/TestingApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/TestingApi.md @@ -1,6 +1,6 @@ # \TestingApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/UserApi.md b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/UserApi.md index b4481390cfae..7930130a923b 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/UserApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/UserApi.md @@ -1,6 +1,6 @@ # \UserApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/configuration.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/configuration.rs index 2efc39d68fee..3237ed422094 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/configuration.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/configuration.rs @@ -80,7 +80,7 @@ impl Configuration { impl Default for Configuration { fn default() -> Self { Configuration { - base_path: "http://petstore.swagger.io/v2".to_owned(), + base_path: "http://localhost/v2".to_owned(), user_agent: Some("OpenAPI-Generator/1.0.0/rust".to_owned()), client: reqwest::blocking::Client::new(), basic_auth: None, diff --git a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/README.md b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/README.md index eef0ab6ff217..557c5ab20fd8 100644 --- a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/README.md +++ b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/README.md @@ -22,7 +22,7 @@ petstore-reqwest-model-name-prefix = { path = "./petstore-reqwest-model-name-pre ## Documentation for API Endpoints -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/FakeApi.md b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/FakeApi.md index ac1e9f40c105..ca1ec4a34638 100644 --- a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/FakeApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/FakeApi.md @@ -1,6 +1,6 @@ # \FakeApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/PetApi.md b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/PetApi.md index 36ecc2ee91ea..02966f7ea103 100644 --- a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/PetApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/PetApi.md @@ -1,6 +1,6 @@ # \PetApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/StoreApi.md b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/StoreApi.md index 511a67746c93..484d3fc91be7 100644 --- a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/StoreApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/StoreApi.md @@ -1,6 +1,6 @@ # \StoreApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/TestingApi.md b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/TestingApi.md index dfb0b97642bf..15b595cfd335 100644 --- a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/TestingApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/TestingApi.md @@ -1,6 +1,6 @@ # \TestingApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/UserApi.md b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/UserApi.md index 0db7baad2900..3a393d28a4aa 100644 --- a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/UserApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/UserApi.md @@ -1,6 +1,6 @@ # \UserApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/src/apis/configuration.rs b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/src/apis/configuration.rs index b1787d23b6e5..8295708bc87a 100644 --- a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/src/apis/configuration.rs +++ b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/src/apis/configuration.rs @@ -39,7 +39,7 @@ impl Configuration { impl Default for Configuration { fn default() -> Self { Configuration { - base_path: "http://petstore.swagger.io/v2".to_owned(), + base_path: "http://localhost/v2".to_owned(), user_agent: Some("OpenAPI-Generator/1.0.0/rust".to_owned()), client: reqwest::blocking::Client::new(), basic_auth: None, diff --git a/samples/client/petstore/rust/reqwest/petstore/README.md b/samples/client/petstore/rust/reqwest/petstore/README.md index 4dd7e717abf7..e98e4a5f960c 100644 --- a/samples/client/petstore/rust/reqwest/petstore/README.md +++ b/samples/client/petstore/rust/reqwest/petstore/README.md @@ -22,7 +22,7 @@ petstore-reqwest = { path = "./petstore-reqwest" } ## Documentation for API Endpoints -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore/docs/FakeApi.md b/samples/client/petstore/rust/reqwest/petstore/docs/FakeApi.md index ac1e9f40c105..ca1ec4a34638 100644 --- a/samples/client/petstore/rust/reqwest/petstore/docs/FakeApi.md +++ b/samples/client/petstore/rust/reqwest/petstore/docs/FakeApi.md @@ -1,6 +1,6 @@ # \FakeApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore/docs/PetApi.md b/samples/client/petstore/rust/reqwest/petstore/docs/PetApi.md index 9d10c02f4986..fdef2e1f7f63 100644 --- a/samples/client/petstore/rust/reqwest/petstore/docs/PetApi.md +++ b/samples/client/petstore/rust/reqwest/petstore/docs/PetApi.md @@ -1,6 +1,6 @@ # \PetApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore/docs/StoreApi.md b/samples/client/petstore/rust/reqwest/petstore/docs/StoreApi.md index a513dfa1b5fa..02a9ccabdb8a 100644 --- a/samples/client/petstore/rust/reqwest/petstore/docs/StoreApi.md +++ b/samples/client/petstore/rust/reqwest/petstore/docs/StoreApi.md @@ -1,6 +1,6 @@ # \StoreApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore/docs/TestingApi.md b/samples/client/petstore/rust/reqwest/petstore/docs/TestingApi.md index a99edf6ffea8..c5d3483462e2 100644 --- a/samples/client/petstore/rust/reqwest/petstore/docs/TestingApi.md +++ b/samples/client/petstore/rust/reqwest/petstore/docs/TestingApi.md @@ -1,6 +1,6 @@ # \TestingApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore/docs/UserApi.md b/samples/client/petstore/rust/reqwest/petstore/docs/UserApi.md index b4481390cfae..7930130a923b 100644 --- a/samples/client/petstore/rust/reqwest/petstore/docs/UserApi.md +++ b/samples/client/petstore/rust/reqwest/petstore/docs/UserApi.md @@ -1,6 +1,6 @@ # \UserApi -All URIs are relative to *http://petstore.swagger.io/v2* +All URIs are relative to *http://localhost/v2* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/samples/client/petstore/rust/reqwest/petstore/src/apis/configuration.rs b/samples/client/petstore/rust/reqwest/petstore/src/apis/configuration.rs index b1787d23b6e5..8295708bc87a 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/apis/configuration.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/apis/configuration.rs @@ -39,7 +39,7 @@ impl Configuration { impl Default for Configuration { fn default() -> Self { Configuration { - base_path: "http://petstore.swagger.io/v2".to_owned(), + base_path: "http://localhost/v2".to_owned(), user_agent: Some("OpenAPI-Generator/1.0.0/rust".to_owned()), client: reqwest::blocking::Client::new(), basic_auth: None, diff --git a/samples/server/petstore/rust-server/output/multipart-v3/.openapi-generator-ignore b/samples/server/petstore/rust-server/output/multipart-v3/.openapi-generator-ignore index 7484ee590a38..82e4e79984b4 100644 --- a/samples/server/petstore/rust-server/output/multipart-v3/.openapi-generator-ignore +++ b/samples/server/petstore/rust-server/output/multipart-v3/.openapi-generator-ignore @@ -21,3 +21,5 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md +# +#