File tree 3 files changed +4
-3
lines changed
modules/openapi-generator/src/test/resources/3_0/elixir
samples/client/petstore/elixir 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1361,6 +1361,7 @@ paths:
1361
1361
schema :
1362
1362
$ref : " #/components/schemas/AllOfWithSingleRef"
1363
1363
servers :
1364
+ - url : " https://petstore.swagger.io/v2"
1364
1365
- url : " http://{server}.swagger.io:{port}/v2"
1365
1366
description : petstore server
1366
1367
variables :
Original file line number Diff line number Diff line change @@ -31,14 +31,14 @@ You can override the URL of your server (e.g. if you have a separate development
31
31
configuration files).
32
32
33
33
``` elixir
34
- config :openapi_petstore , base_url: " http ://petstore.swagger.io:80 /v2"
34
+ config :openapi_petstore , base_url: " https ://petstore.swagger.io/v2"
35
35
```
36
36
37
37
Multiple clients for the same API with different URLs can be created passing different ` base_url ` s when calling
38
38
` OpenapiPetstore.Connection.new/1 ` :
39
39
40
40
``` 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" )
42
42
```
43
43
44
44
[ exdoc ] : https://github.com/elixir-lang/ex_doc
Original file line number Diff line number Diff line change 7
7
# General application configuration
8
8
import Config
9
9
10
- config :openapi_petstore , base_url: "http ://petstore.swagger.io:80 /v2"
10
+ config :openapi_petstore , base_url: "https ://petstore.swagger.io/v2"
11
11
12
12
# Import environment specific config. This must remain at the bottom
13
13
# of this file so it overrides the configuration defined above.
You can’t perform that action at this time.
0 commit comments