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:24] 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><code bash></code></WRAP> | <WRAP><code bash></code></WRAP> |+Request: <WRAP> 
 +<code bash>curl -X POST https://wiki.bzz.ch/lib/exe/xmlrpc.php \ 
 +     -H "Content-Type: text/xml"
 +     --data '<?xml version="1.0"?> 
 +<methodCall> 
 +  <methodName>wiki.getPage</methodName> 
 +  <params> 
 +    <param> 
 +      <value><string>de:modul:ffit:3-jahr:start</string></value> 
 +    </param> 
 +  </params> 
 +</methodCall>'</code> 
 +</WRAP>Request: <WRAP> 
 +<code bash>curl -X POST https://wiki.bzz.ch/lib/exe/jsonrpc.php \ 
 +     -H "Content-Type: application/json"
 +     --data '{ 
 +        "jsonrpc": "2.0", 
 +        "id": "1", 
 +        "method": "wiki.getPage", 
 +        "params": ["de:modul:ffit:3-jahr:start"
 +     }'</code> 
 +</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.1764019467.txt.gz
  • Zuletzt geändert: 2025/11/24 22:24
  • von apeter