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:
parent
561f000f82
commit
fb48b07011
@ -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
|
||||
|
@ -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:
|
7
doc/source/api/zaqar.common.api.request.rst
Normal file
7
doc/source/api/zaqar.common.api.request.rst
Normal file
@ -0,0 +1,7 @@
|
||||
The :mod:`zaqar.common.api.request` module
|
||||
===========================================
|
||||
|
||||
.. automodule:: zaqar.common.api.request
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
7
doc/source/api/zaqar.common.api.response.rst
Normal file
7
doc/source/api/zaqar.common.api.response.rst
Normal file
@ -0,0 +1,7 @@
|
||||
The :mod:`zaqar.common.api.response` module
|
||||
============================================
|
||||
|
||||
.. automodule:: zaqar.common.api.response
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
@ -1,7 +0,0 @@
|
||||
The :mod:`zaqar.common.api` module
|
||||
===================================
|
||||
|
||||
.. automodule:: zaqar.common.api
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
7
doc/source/api/zaqar.common.api.schemas.flavors.rst
Normal file
7
doc/source/api/zaqar.common.api.schemas.flavors.rst
Normal file
@ -0,0 +1,7 @@
|
||||
The :mod:`zaqar.common.api.schemas.flavors` module
|
||||
===================================================
|
||||
|
||||
.. automodule:: zaqar.common.api.schemas.flavors
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
7
doc/source/api/zaqar.common.api.schemas.pools.rst
Normal file
7
doc/source/api/zaqar.common.api.schemas.pools.rst
Normal file
@ -0,0 +1,7 @@
|
||||
The :mod:`zaqar.common.api.schemas.pools` module
|
||||
=================================================
|
||||
|
||||
.. automodule:: zaqar.common.api.schemas.pools
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
@ -1,7 +0,0 @@
|
||||
The :mod:`zaqar.common.response` module
|
||||
========================================
|
||||
|
||||
.. automodule:: zaqar.common.response
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
@ -1,7 +0,0 @@
|
||||
The :mod:`zaqar.common.schemas.flavors` module
|
||||
===============================================
|
||||
|
||||
.. automodule:: zaqar.common.schemas.flavors
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
@ -1,7 +0,0 @@
|
||||
The :mod:`zaqar.common.schemas.pools` module
|
||||
=============================================
|
||||
|
||||
.. automodule:: zaqar.common.schemas.pools
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
@ -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
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
|
||||
from zaqar.common import request
|
||||
from zaqar.common.api import request
|
||||
from zaqar.tests import base
|
||||
|
||||
|
||||
|
@ -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):
|
||||
|
@ -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):
|
||||
|
@ -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):
|
||||
|
@ -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):
|
||||
|
0
zaqar/common/api/schemas/__init__.py
Normal file
0
zaqar/common/api/schemas/__init__.py
Normal 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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user