Slighty refactoring for the cross api spec

An API package has been created in common to store the API base class,
request and response classes, API validation and schemas.

The processing of the requests and responses will be added in a follow
up patch.

Change-Id: I3068b6fffde2d4d88a6009ca2ed703b38b791273
Partial-Implements: blueprint cross-transport-api-spec
This commit is contained in:
Victoria Martinez de la Cruz 2014-12-11 01:59:09 -03:00
parent 561f000f82
commit fb48b07011
26 changed files with 44 additions and 44 deletions

View File

@ -9,15 +9,15 @@
zaqar.cmd.gc.rst
zaqar.cmd.server.rst
zaqar.common.access.rst
zaqar.common.api.rst
zaqar.common.api.api.rst
zaqar.common.api.request.rst
zaqar.common.api.response.rst
zaqar.common.api.schemas.flavors.rst
zaqar.common.api.schemas.pools.rst
zaqar.common.cli.rst
zaqar.common.decorators.rst
zaqar.common.errors.rst
zaqar.common.pipeline.rst
zaqar.common.request.rst
zaqar.common.response.rst
zaqar.common.schemas.flavors.rst
zaqar.common.schemas.pools.rst
zaqar.common.storage.select.rst
zaqar.common.transport.wsgi.helpers.rst
zaqar.common.utils.rst

View File

@ -1,7 +1,7 @@
The :mod:`zaqar.common.request` module
The :mod:`zaqar.common.api.api` module
=======================================
.. automodule:: zaqar.common.request
.. automodule:: zaqar.common.api.api
:members:
:undoc-members:
:show-inheritance:

View File

@ -0,0 +1,7 @@
The :mod:`zaqar.common.api.request` module
===========================================
.. automodule:: zaqar.common.api.request
:members:
:undoc-members:
:show-inheritance:

View File

@ -0,0 +1,7 @@
The :mod:`zaqar.common.api.response` module
============================================
.. automodule:: zaqar.common.api.response
:members:
:undoc-members:
:show-inheritance:

View File

@ -1,7 +0,0 @@
The :mod:`zaqar.common.api` module
===================================
.. automodule:: zaqar.common.api
:members:
:undoc-members:
:show-inheritance:

View File

@ -0,0 +1,7 @@
The :mod:`zaqar.common.api.schemas.flavors` module
===================================================
.. automodule:: zaqar.common.api.schemas.flavors
:members:
:undoc-members:
:show-inheritance:

View File

@ -0,0 +1,7 @@
The :mod:`zaqar.common.api.schemas.pools` module
=================================================
.. automodule:: zaqar.common.api.schemas.pools
:members:
:undoc-members:
:show-inheritance:

View File

@ -1,7 +0,0 @@
The :mod:`zaqar.common.response` module
========================================
.. automodule:: zaqar.common.response
:members:
:undoc-members:
:show-inheritance:

View File

@ -1,7 +0,0 @@
The :mod:`zaqar.common.schemas.flavors` module
===============================================
.. automodule:: zaqar.common.schemas.flavors
:members:
:undoc-members:
:show-inheritance:

View File

@ -1,7 +0,0 @@
The :mod:`zaqar.common.schemas.pools` module
=============================================
.. automodule:: zaqar.common.schemas.pools
:members:
:undoc-members:
:show-inheritance:

View File

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from zaqar.common import api
from zaqar.common.api import api
from zaqar.common import errors
from zaqar.tests import base

View File

@ -15,7 +15,7 @@
# limitations under the License.
from zaqar.common import request
from zaqar.common.api import request
from zaqar.tests import base

View File

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from zaqar.common import api
from zaqar.common.api import api
class RequestSchema(api.Api):

View File

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from zaqar.common import api
from zaqar.common.api import api
class ResponseSchema(api.Api):

View File

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from zaqar.common import api
from zaqar.common.api import api
class RequestSchema(api.Api):

View File

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from zaqar.common import api
from zaqar.common.api import api
class ResponseSchema(api.Api):

View File

View File

@ -38,7 +38,7 @@ registered, there is an optional field::
import falcon
import jsonschema
from zaqar.common.schemas import pools as schema
from zaqar.common.api.schemas import pools as schema
from zaqar.common import utils as common_utils
from zaqar.openstack.common import log
from zaqar.storage import errors

View File

@ -16,7 +16,7 @@
import falcon
import jsonschema
from zaqar.common.schemas import flavors as schema
from zaqar.common.api.schemas import flavors as schema
from zaqar.common import utils as common_utils
from zaqar.i18n import _
from zaqar.openstack.common import log

View File

@ -39,7 +39,7 @@ registered, there is an optional field:
import falcon
import jsonschema
from zaqar.common.schemas import pools as schema
from zaqar.common.api.schemas import pools as schema
from zaqar.common import utils as common_utils
from zaqar.i18n import _
from zaqar.openstack.common import log