User tools

Website tools


rest.php

Differences

The differences between two versions are shown here.

Link to this comparison view

Both sides of the previous revisionPrevious revision
Next revision
Previous revision
rest.php [2017/01/09 05:52] – [HTTP BASIC Auth] lwsystemsrest.php [2019/02/04 07:54] (current) – [Session Request] lwsystems
Line 1: Line 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]]
  
  
-====== Examples ======+====== Authentication ======
  
-===== 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.
Zeile 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 26: Zeile 24:
  
 ===== Session ===== ===== Session =====
 +
 +From Benno Web version 2.2.2 onwards, authentication via session ID is also 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.1483941166.txt.gz · Zuletzt geändert: 2017/01/09 05:52 von lwsystems