chore(openapi): dynamic API path variables on servers
This commit is contained in:
1 parent
0d2366cb3f
commit
adbbdd405c
1 file changed
+16
-4
+16
-4
@@ -17,17 +17,29 @@
|
||||
},
|
||||
"servers": [
|
||||
{
|
||||
"url": "https://bluewavelabs.ca",
|
||||
"description": "Remote Development Server"
|
||||
"url": "https://bluewavelabs.ca/{API_PATH}",
|
||||
"description": "Remote Development Server",
|
||||
"variables": {
|
||||
"API_PATH": {
|
||||
"description": "API Base Path",
|
||||
"enum": ["api/v1", "api/v1.1", "api/v2"],
|
||||
"default": "api/v1"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"url": "http://localhost:{PORT}",
|
||||
"url": "http://localhost:{PORT}/{API_PATH}",
|
||||
"description": "Local Development Server",
|
||||
"variables": {
|
||||
"PORT": {
|
||||
"description": "The Data Set API is accessible via https and http",
|
||||
"description": "API Port",
|
||||
"enum": ["5000", "3000", "8080"],
|
||||
"default": "5000"
|
||||
},
|
||||
"API_PATH": {
|
||||
"description": "API Base Path",
|
||||
"enum": ["api/v1", "api/v1.1", "api/v2"],
|
||||
"default": "api/v1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user