Outils utilisateur

Outils du site Web


rest.php

Différences

Les différences entre les deux versions sont indiquées ici.

Lien vers cette vue comparative

Les deux côtés de la révision précédenteRévision précédente
Prochaine révision
Révision précédente
rest.php [2017/01/09 05:53] – [Session] lwsystemsrest.php [2019/02/04 07:54] (actuel) – [Session Request] lwsystems
Zeile 1: Zeile 1:
 ====== rest.php ====== ====== rest.php ======
  
-Das Frontend //rest.php// implementiert das [rest_api|REST API]]. +  * REST-Frontend mit Benutzer-Authentisierung
- +
-Es bietet die [[authentisierung|Authentisierung]] und Zugriffssteuerung einzelner Benutzer analog zum Web-UI. +
   * Authentisierung per HTTP BASIC Auth oder Session-Cookie   * Authentisierung per HTTP BASIC Auth oder Session-Cookie
   * Jeder BASIC AUTH Request eröffnet eine Session und liefert einen Cookie zurück   * Jeder BASIC AUTH Request eröffnet eine Session und liefert einen Cookie zurück
 +  * Dokumentation des [[REST API]]
  
  
-====== Beispiele ======+====== Authentification ======
  
-===== Authentisierung per HTTP BASIC Auth =====+===== HTTP BASIC Auth =====
  
 Hier wird der Request bei erfolgreicher Authentisierung ausgeführt. Hier wird der Request bei erfolgreicher Authentisierung ausgeführt.
Ligne 18 : Zeile 16:
 <code bash> <code bash>
 curl -u admin:secret \ curl -u admin:secret \
-  --data 'filterQuery=(*)' +  --data start=
-  --data start=0 --data limit=20 \+  --data limit=20 \
   --data archive=BennoContainer \   --data archive=BennoContainer \
   --data 'query=Text:*hallo*' \   --data 'query=Text:*hallo*' \
Zeile 25: Ligne 23 :
 </code> </code>
  
-===== Authentisierung per Request-Parameter =====+===== session ===== 
 + 
 +À partir de la version 2.2.2 de Benno Web, l'authentification via ID de session est également possible.
  
 ==== Session erstellen ==== ==== Session erstellen ====
Zeile 49: Zeile 49:
 </code> </code>
  
-==== Session Request ====+==== Search Request ====
  
 <code bash> <code bash>
 curl --cookie BENNOSID=c223e75ohpq5u1i0j9hhv36n60 \ curl --cookie BENNOSID=c223e75ohpq5u1i0j9hhv36n60 \
-  --data 'filterQuery=(*)' +  --data start=
-  --data start=0 --data limit=20 \+  --data limit=20 \
   --data archive=BennoContainer \   --data archive=BennoContainer \
   --data 'query=Text:*hallo*' \   --data 'query=Text:*hallo*' \
rest.php.1483941190.txt.gz · Zuletzt geändert: 2017/01/09 05:53 von lwsystems