Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Add server variables example file
Browse files Browse the repository at this point in the history
  • Loading branch information
domharrington committed Jan 25, 2019
1 parent 6f921ad commit e1fe1d6
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions example/swagger-files/server-variables.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"openapi": "3.0.0",
"servers": [
{
"url": "https://{username}.example.com:{port}/{basePath}",
"variables": {
"username": {
"default": "demo"
},
"port": {
"default": "443"
},
"basePath": {
"default": "v2"
}
}
}
],
"info": {
"version": "1.0.0",
"title": "Server variables"
},
"paths": {
"/post": {
"post": {
"summary": "Should fetch variables from defaults and user values",
"description": "",
"parameters": [],
"responses": {}
}
}
},
"x-explorer-enabled": true,
"x-samples-enabled": true,
"x-samples-languages": ["curl", "node", "ruby", "javascript", "python"]
}

0 comments on commit e1fe1d6

Please sign in to comment.