Make v1 default api type for swagger generation
This commit is contained in:
parent
0c0e3fa17f
commit
cd76a9ec2a
|
@ -43,7 +43,7 @@ class CustomApplicationTokenExt(OpenApiAuthenticationExtension):
|
||||||
def custom_preprocessing_hook(endpoints):
|
def custom_preprocessing_hook(endpoints):
|
||||||
filtered = []
|
filtered = []
|
||||||
# your modifications to the list of operations that are exposed in the schema
|
# your modifications to the list of operations that are exposed in the schema
|
||||||
api_type = os.environ["API_TYPE"]
|
api_type = os.environ.get("API_TYPE", "v1")
|
||||||
for (path, path_regex, method, callback) in endpoints:
|
for (path, path_regex, method, callback) in endpoints:
|
||||||
if path.startswith("/api/v1/providers"):
|
if path.startswith("/api/v1/providers"):
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue