Skip to content

Commit 19c7c53

Browse files
committed
update base_url
1 parent 1099d41 commit 19c7c53

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,6 +1361,7 @@ paths:
13611361
schema:
13621362
$ref: "#/components/schemas/AllOfWithSingleRef"
13631363
servers:
1364+
- url: "https://petstore.swagger.io/v2"
13641365
- url: "http://{server}.swagger.io:{port}/v2"
13651366
description: petstore server
13661367
variables:

samples/client/petstore/elixir/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ You can override the URL of your server (e.g. if you have a separate development
3131
configuration files).
3232

3333
```elixir
34-
config :openapi_petstore, base_url: "http://petstore.swagger.io:80/v2"
34+
config :openapi_petstore, base_url: "https://petstore.swagger.io/v2"
3535
```
3636

3737
Multiple clients for the same API with different URLs can be created passing different `base_url`s when calling
3838
`OpenapiPetstore.Connection.new/1`:
3939

4040
```elixir
41-
client = OpenapiPetstore.Connection.new(base_url: "http://petstore.swagger.io:80/v2")
41+
client = OpenapiPetstore.Connection.new(base_url: "https://petstore.swagger.io/v2")
4242
```
4343

4444
[exdoc]: https://github.com/elixir-lang/ex_doc

samples/client/petstore/elixir/config/config.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# General application configuration
88
import Config
99

10-
config :openapi_petstore, base_url: "http://petstore.swagger.io:80/v2"
10+
config :openapi_petstore, base_url: "https://petstore.swagger.io/v2"
1111

1212
# Import environment specific config. This must remain at the bottom
1313
# of this file so it overrides the configuration defined above.

0 commit comments

Comments
 (0)