freezer-api/freezer_api/api
gengchc2 d1a5e93b25 Correct errors about freezer-api supporting for V1 and V2 api
At present, the codes as follows:
db/elastic/driver.py:
Def get_engine (self):
    If not self._engine:
        Self._engine = db_session.ElasticSearchEngineV2(self.backend)
    Return self._engine
There is that freezer-api can't support support v1.
Actually, there is enable_v1_api ,but it is not used correctly.
The documents will be modified in other patches.

For example:
1)freezer-api v1:
  /etc/freezer/freezer-api.conf:
      [DEFAULT]
          enable_v1_api = True
	  [storage]
          driver = elasticsearch
          backend = elasticsearch
	  [elasticsearch]
          hosts = http://172.16.1.200:9200
          number_of_replicas = 0
          index = freezer

  /etc/freezer/scheduler.conf:
      [DEFAULT]
          enable_v1_api = True

   command: freezer --os-backup-api-version 1  job-list

2)freezer-api v2:
  /etc/freezer/freezer-api.conf:
      [DEFAULT]
          enable_v1_api = False
		  or
		  # enable_v1_api = False
	  [storage]
          driver = elasticsearch
          backend = elasticsearch
	  [elasticsearch]
          hosts = http://172.16.1.200:9200
          number_of_replicas = 0
          index = freezer

  /etc/freezer/scheduler.conf:
      [DEFAULT]
         enable_v1_api = False
		 or
		 # enable_v1_api = False

   command: freezer job-list

Change-Id: Iccee3a7cde986d0ba2aaf018fafa6bca411c34bf
2018-11-01 09:16:39 +00:00
..
common Add action api for bp add-mysql-support-for-freezer 2018-10-25 03:38:49 +00:00
v1 Delete request for non-existent ID will be 404. 2018-04-26 16:08:42 +05:30
v2 There are errors in executing session-add-job in v2 interface 2018-10-24 01:11:40 +00:00
__init__.py Freezer API 2015-04-08 18:25:45 +01:00
versions.py Correct errors about freezer-api supporting for V1 and V2 api 2018-11-01 09:16:39 +00:00