deb-designate/designate/objects/adapters/api_v1/__init__.py
Graham Hayes f7252ecdb0 Create DesignateAdapter and surrounding infrastructure
This implements the basic infrastructure for DesignateAdapter
and creates the basis for the API v2/v1 Adapter objects

These will replace views in both the v1 and v2 APIs, and allow for the
validation of API requests to move into the DesignateObjects themselves.

Example use is

   zone = central.get_domain(blah)
   DesignateAdapter.render('API_v1', zone)
   // Returns v1 dict, ready to	convert to JSON

These objects have a registry of sorts, so all calls will be made to
DesignateAdapter, and the combination of the format param ('API_v1' in
this case) will load the right Adapter and return the right JSON ready
dict.

Change-Id: I2b77205751675de600248180fafbfe22a2c1d8f5
Blueprint: validation-cleanup
2015-03-09 12:39:53 +00:00

0 lines
Python