Skip to content

Commit 70beab6

Browse files
author
James Powis
committed
improve scaling example
1 parent ee1fc4c commit 70beab6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/scaling.rst

+13
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,19 @@ Given the previous layout, we can migrate it to the following directory structur
214214
├── ...
215215
└── namespaceX.py
216216

217+
Each `apis/namespaceX` module will have the following pattern:
218+
219+
.. code-block:: python
220+
221+
from flask_restx import Namespace, Resource
222+
223+
api = Namespace('mynamespace', 'Namespace Description' )
224+
225+
@api.route("/")
226+
class Myclass(Resource):
227+
def get(self):
228+
return {}
229+
217230
Each `apivX` module will have the following pattern:
218231

219232
.. code-block:: python

0 commit comments

Comments
 (0)