Skip to content

Commit 41b3b59

Browse files
authored
Merge pull request #78 from james-powis/imporove-scale-doc
Documentation Improvement: improve scaling example. contributed by james-powis
2 parents c5b37e2 + 70beab6 commit 41b3b59

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)