You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -177,15 +177,15 @@ Deploy User Modules/Scripts:
177
177
Copy the user module and its dependent files to a planned path directory under `USER_SCRIPT_ROOT <user-script-root_>`_ in the server.
178
178
This path (relative to `USER_SCRIPT_ROOT <user-script-root_>`_) determines what URL path the client should use to call the functions.
179
179
180
-
For example, if we copy the module mdx_task (``mdx_task.py`` and all dependent files) to the relative path ``utilities\mdxreader\`` (in Windows) or ``utilities/mdxreader/`` (in UNIX) under `USER_SCRIPT_ROOT <user-script-root_>`_,
181
-
then the client should use ``http://ourteam.company.com/PyWebApi/pys/etl/utilities/mdxreader/mdx_task.run_query`` to invoke the ``run_query`` function of the ``mdx_task`` module.
180
+
For example, if we copy the module mdx_task (``mdx_task.py`` and all dependent files) to the relative path ``samples\mdxreader\`` (in Windows) or ``samples/mdxreader/`` (in UNIX) under `USER_SCRIPT_ROOT <user-script-root_>`_,
181
+
then the client should use ``http://ourteam.company.com/PyWebApi/pys/etl/samples/mdxreader/mdx_task.run_query`` to invoke the ``run_query`` function of the ``mdx_task`` module.
182
182
183
183
Breakdown:
184
184
185
185
- ``/PyWebApi`` -- the virtual/application directory (ApplicationPath) installed in IIS, and it's also the value of the appSettings item `SCRIPT_NAME <script-name_>`_ in ``web.config``;
186
186
- ``/pys/`` -- the static segment in ``@route(path='/pys/<app_id>/<module_func:path>', ...)``;
187
187
- ``etl`` -- matched by the ``<app_id>`` wildcard;
188
-
- ``utilities/mdxreader/`` -- the relative path where the user module is located;
188
+
- ``samples/mdxreader/`` -- the relative path where the user module is located;
189
189
- ``mdx_task`` -- the user module (``mdx_task.py``);
190
190
- ``run_query`` -- the module-level function to be invoked;
0 commit comments