Browse Source

disable swagger doc

Guénaël Muller 7 years ago
parent
commit
b94d484d07
1 changed files with 12 additions and 11 deletions
  1. 12 11
      tracim/__init__.py

+ 12 - 11
tracim/__init__.py View File

@@ -44,15 +44,16 @@ def main(global_config, **settings):
44 44
     example_api_controllers = ExampleApiController()
45 45
     example_api_controllers.bind(configurator)
46 46
 
47
-    time.sleep(1)
48
-    s = json.dumps(
49
-        hapic.generate_doc(
50
-            title='Fake API',
51
-            description='just an example of hapic API'
52
-        )
53
-    )
54
-    time.sleep(1)
55
-    # print swagger doc
56
-    print(s)
57
-    time.sleep(1)
47
+    # TODO - G.M - 09-04-2018 - Enable swagger ui doc
48
+    # time.sleep(1)
49
+    # s = json.dumps(
50
+    #     hapic.generate_doc(
51
+    #         title='Fake API',
52
+    #         description='just an example of hapic API'
53
+    #     )
54
+    # )
55
+    # time.sleep(1)
56
+    # # print swagger doc
57
+    # print(s)
58
+    # time.sleep(1)
58 59
     return configurator.make_wsgi_app()