Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
de:modul:ffit:3-jahr:java:learningunits:lu12:b [2025/11/24 22:26] apeterde:modul:ffit:3-jahr:java:learningunits:lu12:b [2025/11/24 23:00] (aktuell) apeter
Zeile 19: Zeile 19:
  
 ^ Beispiel XML-RPC ^ Beispiel JSON-RPC ^ ^ Beispiel XML-RPC ^ Beispiel JSON-RPC ^
-| <WRAP>+Request: <WRAP>
 <code bash>curl -X POST https://wiki.bzz.ch/lib/exe/xmlrpc.php \ <code bash>curl -X POST https://wiki.bzz.ch/lib/exe/xmlrpc.php \
      -H "Content-Type: text/xml" \      -H "Content-Type: text/xml" \
Zeile 30: Zeile 30:
     </param>     </param>
   </params>   </params>
-</methodCall>' +</methodCall>'</code> 
-</code> +</WRAP>Request: <WRAP>
-</WRAP> | <WRAP>+
 <code bash>curl -X POST https://wiki.bzz.ch/lib/exe/jsonrpc.php \ <code bash>curl -X POST https://wiki.bzz.ch/lib/exe/jsonrpc.php \
      -H "Content-Type: application/json" \      -H "Content-Type: application/json" \
Zeile 40: Zeile 39:
         "method": "wiki.getPage",         "method": "wiki.getPage",
         "params": ["de:modul:ffit:3-jahr:start"]         "params": ["de:modul:ffit:3-jahr:start"]
-     }' +     }'</code>
-</code>+
 </WRAP> | </WRAP> |
 +| Response: <WRAP><code xml><?xml version="1.0"?>
 +<methodResponse>
 +    <params>
 +        <param>
 +            <value>
 +                <string>====== 3. Lehrjahr =====
  
 +===== Inhalte =====
 +
 +&lt;nspages . -subns -nopages -exclude -h1 -textNS=&quot;&quot; -simplelist&gt;</string>
 +            </value>
 +        </param>
 +    </params>
 +</methodResponse></code>
 +</WRAP> | Response: <WRAP>
 +<code json>{
 +    "id": "1",
 +    "jsonrpc": "2.0",
 +    "result": "====== 3. Lehrjahr =====\n\n===== Inhalte =====\n\n<nspages . -subns -nopages -exclude -h1 -textNS=\"\" -simplelist>"
 +}</code>
 +</WRAP> |
 +
 +Man sieht, dass die Antwort im Prinzip dieselbe ist.
 +
 +Die von DokuWiki unterstützten Befehle sind aufgelistet auf https://www.dokuwiki.org/lib/exe/openapi.php#?route=overview
  • de/modul/ffit/3-jahr/java/learningunits/lu12/b.1764019567.txt.gz
  • Zuletzt geändert: 2025/11/24 22:26
  • von apeter