You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2015/04/01 12:19:00 UTC

svn commit: r1670597 - in /manifoldcf/branches/CONNECTORS-1177/site/src/documentation/content/xdocs: en_US/programmatic-operation.xml ja_JP/programmatic-operation.xml zh_CN/programmatic-operation.xml

Author: kwright
Date: Wed Apr  1 10:19:00 2015
New Revision: 1670597

URL: http://svn.apache.org/r1670597
Log:
Update programmatic operation section

Modified:
    manifoldcf/branches/CONNECTORS-1177/site/src/documentation/content/xdocs/en_US/programmatic-operation.xml
    manifoldcf/branches/CONNECTORS-1177/site/src/documentation/content/xdocs/ja_JP/programmatic-operation.xml
    manifoldcf/branches/CONNECTORS-1177/site/src/documentation/content/xdocs/zh_CN/programmatic-operation.xml

Modified: manifoldcf/branches/CONNECTORS-1177/site/src/documentation/content/xdocs/en_US/programmatic-operation.xml
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1177/site/src/documentation/content/xdocs/en_US/programmatic-operation.xml?rev=1670597&r1=1670596&r2=1670597&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1177/site/src/documentation/content/xdocs/en_US/programmatic-operation.xml (original)
+++ manifoldcf/branches/CONNECTORS-1177/site/src/documentation/content/xdocs/en_US/programmatic-operation.xml Wed Apr  1 10:19:00 2015
@@ -48,8 +48,8 @@
           <p>http[s]://<em>&lt;server_and_port&gt;</em>/mcf-api-service/json/<em>&lt;resource&gt;</em></p>
           <p></p>
           <p>The servlet ignores request data, except when the PUT or POST verb is used.  In that case, the request data is presumed to be a JSON object.  The servlet
-            responds either with an error response code (either 400 or 500) with an appropriate explanatory message, or with a 200 (OK), 201 (CREATED), or
-            404 (NOT FOUND) response code along with a response JSON object.</p>
+            responds either with an error response code (either 400 or 500) with an appropriate explanatory message, or with a 200 (OK), 201 (CREATED), 
+            401 (UNAUTHORIZED), or 404 (NOT FOUND) response code along with a response JSON object.</p>
           <p></p>
         </section>
         <section>
@@ -79,6 +79,7 @@
           <p></p>
           <table>
             <tr><th>Resource</th><th>Verb</th><th>What it does</th><th>Input format/query args</th><th>Output format</th></tr>
+            <tr><td>LOGIN</td><td>POST</td><td>Log in the specified user</td><td>{"userID":<em>&lt;user_name&gt;</em>, "password":<em>&lt;password&gt;</em>}</td><td>{}</td></tr>
             <tr><td>authorizationdomains</td><td>GET</td><td>List all registered authorization domains</td><td>N/A</td><td>{"authorizationdomain":[<em>&lt;list_of_authorization_domain_objects&gt;</em>]} <strong>OR</strong> {"error":<em>&lt;error_text&gt;</em>}</td></tr>
             <tr><td>outputconnectors</td><td>GET</td><td>List all registered output connectors</td><td>N/A</td><td>{"outputconnector":[<em>&lt;list_of_output_connector_objects&gt;</em>]} <strong>OR</strong> {"error":<em>&lt;error_text&gt;</em>}</td></tr>
             <tr><td>transformationconnectors</td><td>GET</td><td>List all registered transformation connectors</td><td>N/A</td><td>{"transformationconnector":[<em>&lt;list_of_transformation_connector_objects&gt;</em>]} <strong>OR</strong> {"error":<em>&lt;error_text&gt;</em>}</td></tr>

Modified: manifoldcf/branches/CONNECTORS-1177/site/src/documentation/content/xdocs/ja_JP/programmatic-operation.xml
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1177/site/src/documentation/content/xdocs/ja_JP/programmatic-operation.xml?rev=1670597&r1=1670596&r2=1670597&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1177/site/src/documentation/content/xdocs/ja_JP/programmatic-operation.xml (original)
+++ manifoldcf/branches/CONNECTORS-1177/site/src/documentation/content/xdocs/ja_JP/programmatic-operation.xml Wed Apr  1 10:19:00 2015
@@ -48,8 +48,8 @@
           <p>http[s]://<em>&lt;server_and_port&gt;</em>/mcf-api-service/json/<em>&lt;resource&gt;</em></p>
           <p></p>
           <p>The servlet ignores request data, except when the PUT or POST verb is used.  In that case, the request data is presumed to be a JSON object.  The servlet
-            responds either with an error response code (either 400 or 500) with an appropriate explanatory message, or with a 200 (OK), 201 (CREATED), or
-            404 (NOT FOUND) response code along with a response JSON object.</p>
+            responds either with an error response code (either 400 or 500) with an appropriate explanatory message, or with a 200 (OK), 201 (CREATED), 
+            401 (UNAUTHORIZED), or 404 (NOT FOUND) response code along with a response JSON object.</p>
           <p></p>
         </section>
         <section>
@@ -79,6 +79,7 @@
           <p></p>
           <table>
             <tr><th>Resource</th><th>Verb</th><th>What it does</th><th>Input format/query args</th><th>Output format</th></tr>
+            <tr><td>LOGIN</td><td>POST</td><td>Log in the specified user</td><td>{"userID":<em>&lt;user_name&gt;</em>, "password":<em>&lt;password&gt;</em>}</td><td>{}</td></tr>
             <tr><td>authorizationdomains</td><td>GET</td><td>List all registered authorization domains</td><td>N/A</td><td>{"authorizationdomain":[<em>&lt;list_of_authorization_domain_objects&gt;</em>]} <strong>OR</strong> {"error":<em>&lt;error_text&gt;</em>}</td></tr>
             <tr><td>outputconnectors</td><td>GET</td><td>List all registered output connectors</td><td>N/A</td><td>{"outputconnector":[<em>&lt;list_of_output_connector_objects&gt;</em>]} <strong>OR</strong> {"error":<em>&lt;error_text&gt;</em>}</td></tr>
             <tr><td>transformationconnectors</td><td>GET</td><td>List all registered transformation connectors</td><td>N/A</td><td>{"transformationconnector":[<em>&lt;list_of_transformation_connector_objects&gt;</em>]} <strong>OR</strong> {"error":<em>&lt;error_text&gt;</em>}</td></tr>

Modified: manifoldcf/branches/CONNECTORS-1177/site/src/documentation/content/xdocs/zh_CN/programmatic-operation.xml
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1177/site/src/documentation/content/xdocs/zh_CN/programmatic-operation.xml?rev=1670597&r1=1670596&r2=1670597&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1177/site/src/documentation/content/xdocs/zh_CN/programmatic-operation.xml (original)
+++ manifoldcf/branches/CONNECTORS-1177/site/src/documentation/content/xdocs/zh_CN/programmatic-operation.xml Wed Apr  1 10:19:00 2015
@@ -48,8 +48,8 @@
           <p>http[s]://<em>&lt;server_and_port&gt;</em>/mcf-api-service/json/<em>&lt;resource&gt;</em></p>
           <p></p>
           <p>The servlet ignores request data, except when the PUT or POST verb is used.  In that case, the request data is presumed to be a JSON object.  The servlet
-            responds either with an error response code (either 400 or 500) with an appropriate explanatory message, or with a 200 (OK), 201 (CREATED), or
-            404 (NOT FOUND) response code along with a response JSON object.</p>
+            responds either with an error response code (either 400 or 500) with an appropriate explanatory message, or with a 200 (OK), 201 (CREATED), 
+            401 (UNAUTHORIZED), or 404 (NOT FOUND) response code along with a response JSON object.</p>
           <p></p>
         </section>
         <section>
@@ -79,6 +79,7 @@
           <p></p>
           <table>
             <tr><th>Resource</th><th>Verb</th><th>What it does</th><th>Input format/query args</th><th>Output format</th></tr>
+            <tr><td>LOGIN</td><td>POST</td><td>Log in the specified user</td><td>{"userID":<em>&lt;user_name&gt;</em>, "password":<em>&lt;password&gt;</em>}</td><td>{}</td></tr>
             <tr><td>authorizationdomains</td><td>GET</td><td>List all registered authorization domains</td><td>N/A</td><td>{"authorizationdomain":[<em>&lt;list_of_authorization_domain_objects&gt;</em>]} <strong>OR</strong> {"error":<em>&lt;error_text&gt;</em>}</td></tr>
             <tr><td>outputconnectors</td><td>GET</td><td>List all registered output connectors</td><td>N/A</td><td>{"outputconnector":[<em>&lt;list_of_output_connector_objects&gt;</em>]} <strong>OR</strong> {"error":<em>&lt;error_text&gt;</em>}</td></tr>
             <tr><td>transformationconnectors</td><td>GET</td><td>List all registered transformation connectors</td><td>N/A</td><td>{"transformationconnector":[<em>&lt;list_of_transformation_connector_objects&gt;</em>]} <strong>OR</strong> {"error":<em>&lt;error_text&gt;</em>}</td></tr>