diff --git a/doc/scaling.rst b/doc/scaling.rst index 0830d074..f248a300 100644 --- a/doc/scaling.rst +++ b/doc/scaling.rst @@ -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