Created
October 27, 2023 06:29
-
-
Save fabiohecht/66ca64cc7e342136eca6e62341cf26f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# autocomplete in json request body... | |
### works well without variables | |
POST https://petstore.swagger.io/api/v2/pet | |
Content-Type: application/json | |
{ | |
"name": "Rufus" | |
} | |
### works well with host in variable | |
POST https://{{var_petstore_swagger_io}}/api/v2/pet | |
Content-Type: application/json | |
{ | |
"name": "Rufus" | |
} | |
### works well with host and one path element in variable | |
POST https://{{var_petstore_swagger_io}}/{{var_api}}/v2/pet | |
Content-Type: application/json | |
{ | |
"name": "Rufus" | |
} | |
### FAILS with basePath from petstore.yml in variable | |
POST https://{{var_petstore_swagger_io}}{{var_slash_api_slash_v2}}/pet | |
Content-Type: application/json | |
{ | |
"name": "Rufus" | |
} | |
### FAILS with basePath from petstore.yml in variable with one slash | |
POST https://{{var_petstore_swagger_io}}/{{var_api_slash_v2}}/pet | |
Content-Type: application/json | |
{ | |
"name": "Rufus" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment