Skip to content

Commit 0476740

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

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/scaling.rst

Lines changed: 13 additions & 0 deletions
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_restplus import Namespace
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)