瀏覽代碼

调整API端点名称

James Iter 9 年之前
父節點
當前提交
8f57e110a2
共有 8 個文件被更改,包括 15 次插入15 次删除
  1. 1 1
      api/config.py
  2. 2 2
      api/disk.py
  3. 2 2
      api/guest.py
  4. 2 2
      api/host.py
  5. 2 2
      api/log.py
  6. 2 2
      api/os_init.py
  7. 2 2
      api/os_init_write.py
  8. 2 2
      api/os_template.py

+ 1 - 1
api/config.py

@@ -19,7 +19,7 @@ __copyright__ = '(c) 2017 by James Iter.'
 
 
 blueprint = Blueprint(
-    'config',
+    'api_config',
     __name__,
     url_prefix='/api/config'
 )

+ 2 - 2
api/disk.py

@@ -25,13 +25,13 @@ __copyright__ = '(c) 2017 by James Iter.'
 
 
 blueprint = Blueprint(
-    'disk',
+    'api_disk',
     __name__,
     url_prefix='/api/disk'
 )
 
 blueprints = Blueprint(
-    'disks',
+    'api_disks',
     __name__,
     url_prefix='/api/disks'
 )

+ 2 - 2
api/guest.py

@@ -31,13 +31,13 @@ __copyright__ = '(c) 2017 by James Iter.'
 
 
 blueprint = Blueprint(
-    'guest',
+    'api_guest',
     __name__,
     url_prefix='/api/guest'
 )
 
 blueprints = Blueprint(
-    'guests',
+    'api_guests',
     __name__,
     url_prefix='/api/guests'
 )

+ 2 - 2
api/host.py

@@ -18,13 +18,13 @@ __copyright__ = '(c) 2017 by James Iter.'
 
 
 blueprint = Blueprint(
-    'host',
+    'api_host',
     __name__,
     url_prefix='/api/host'
 )
 
 blueprints = Blueprint(
-    'hosts',
+    'api_hosts',
     __name__,
     url_prefix='/api/hosts'
 )

+ 2 - 2
api/log.py

@@ -17,13 +17,13 @@ __copyright__ = '(c) 2017 by James Iter.'
 
 
 blueprint = Blueprint(
-    'log',
+    'api_log',
     __name__,
     url_prefix='/api/log'
 )
 
 blueprints = Blueprint(
-    'logs',
+    'api_logs',
     __name__,
     url_prefix='/api/logs'
 )

+ 2 - 2
api/os_init.py

@@ -21,13 +21,13 @@ __copyright__ = '(c) 2017 by James Iter.'
 
 
 blueprint = Blueprint(
-    'os_init',
+    'api_os_init',
     __name__,
     url_prefix='/api/os_init'
 )
 
 blueprints = Blueprint(
-    'os_inits',
+    'api_os_inits',
     __name__,
     url_prefix='/api/os_inits'
 )

+ 2 - 2
api/os_init_write.py

@@ -21,13 +21,13 @@ __copyright__ = '(c) 2017 by James Iter.'
 
 
 blueprint = Blueprint(
-    'os_init_write',
+    'api_os_init_write',
     __name__,
     url_prefix='/api/os_init_write'
 )
 
 blueprints = Blueprint(
-    'os_init_writes',
+    'api_os_init_writes',
     __name__,
     url_prefix='/api/os_init_writes'
 )

+ 2 - 2
api/os_template.py

@@ -20,13 +20,13 @@ __copyright__ = '(c) 2017 by James Iter.'
 
 
 blueprint = Blueprint(
-    'os_template',
+    'api_os_template',
     __name__,
     url_prefix='/api/os_template'
 )
 
 blueprints = Blueprint(
-    'os_templates',
+    'api_os_templates',
     __name__,
     url_prefix='/api/os_templates'
 )