From 70beab6ab59aca0e3eba90eb7ad3fe790ecde2cf Mon Sep 17 00:00:00 2001 From: James Powis Date: Wed, 11 Mar 2020 11:21:53 -0600 Subject: [PATCH] improve scaling example --- doc/scaling.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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