[CORD-2758] Generating swagger docs for profile folder
Change-Id: I2a91ce774a4b622f1ebccff3a027611498a05c03
diff --git a/docs/scripts/swagger_docs.py b/docs/scripts/swagger_docs.py
index 1cf7d21..41a12d9 100644
--- a/docs/scripts/swagger_docs.py
+++ b/docs/scripts/swagger_docs.py
@@ -19,6 +19,7 @@
SWAGGER_DOCS_DIR = os.path.abspath(CWD + '/../swagger/specs')
ORCHESTRATION_DIR = os.path.abspath(CWD + "/../../../")
SERVICE_DIR = os.path.abspath(ORCHESTRATION_DIR + "/xos_services")
+PROFILE_DIR = os.path.abspath(ORCHESTRATION_DIR + "/profiles")
XOS_XPROTO = os.path.abspath(CWD + "/../../xos/core/models/core.xproto")
@@ -65,7 +66,9 @@
service_protos = get_xproto_recursively(SERVICE_DIR)
- generate_swagger_docs(protos + service_protos)
+ profile_protos = get_xproto_recursively(PROFILE_DIR)
+
+ generate_swagger_docs(protos + service_protos + profile_protos)
if __name__ == '__main__':