Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions doc/scaling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,19 @@ Given the previous layout, we can migrate it to the following directory structur
├── ...
└── namespaceX.py

Each `apis/namespaceX` module will have the following pattern:

.. code-block:: python

from flask_restx import Namespace, Resource

api = Namespace('mynamespace', 'Namespace Description' )

@api.route("/")
class Myclass(Resource):
def get(self):
return {}

Each `apivX` module will have the following pattern:

.. code-block:: python
Expand Down