Schnittstellenleitfaden: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
FBO (Diskussion | Beiträge) |
FBO (Diskussion | Beiträge) |
||
| Zeile 1.000: | Zeile 1.000: | ||
==Artikel== | ==Artikel== | ||
=== | ===article Ratings=== | ||
{} | articleRatings_set {} | ||
<!--////////// Tabelle ANFANG //////////--> | |||
:{| class="wikitable" style="text-align:left" | |||
! style="background:#B3B7FF" | Feld | |||
!! style="background:#B3B7FF" | Typ | |||
!! style="background:#B3B7FF" | Beschreibung | |||
|- | |||
|id | |||
|Alphanumerisch | |||
| | |||
|- | |||
|command | |||
|Alphanumerisch | |||
|Erlaubte Werte: articleRatings/set | |||
|- | |||
|params | |||
|Object | |||
| | |||
|} | |||
<!--////////// Tabelle ENDE //////////--> | |||
Feld | |||
" | |||
" | |||
Erlaubte Werte: | |||
"params":{"data":{}} | |||
<!--////////// Tabelle ANFANG //////////--> | |||
:{| class="wikitable" style="text-align:left" | |||
! style="background:#B3B7FF" | Feld | |||
!! style="background:#B3B7FF" | Typ | |||
!! style="background:#B3B7FF" | Beschreibung | |||
|- | |||
|articleId | |||
|Alphanumerisch (24) | |||
| | |||
|- | |||
|userId | |||
|Alphanumerisch (24) | |||
| | |||
|- | |||
|username | |||
|Alphanumerisch (24) | |||
| | |||
|- | |||
|Nachricht | |||
|Alphanumerisch (255) | |||
| | |||
|- | |||
|rating | |||
|Integer (1..5) | |||
| | |||
|- | |||
|Kommentar | |||
|Alphanumerisch (1.000) | |||
| | |||
|} | |||
<!--////////// Tabelle ENDE //////////--> | |||
"result":{"articleRatings": {"data":{} } } | |||
<!--////////// Tabelle ANFANG //////////--> | |||
:{| class="wikitable" style="text-align:left" | |||
! style="background:#B3B7FF" | Feld | |||
!! style="background:#B3B7FF" | Typ | |||
!! style="background:#B3B7FF" | Beschreibung | |||
|- | |||
|id | |||
|Alphanumerisch (24) | |||
| | |||
|} | |||
<!--////////// Tabelle ENDE //////////--> | |||
articleRatings_get {} | |||
<!--////////// Tabelle ANFANG //////////--> | |||
:{| class="wikitable" style="text-align:left" | |||
! style="background:#B3B7FF" | Feld | |||
!! style="background:#B3B7FF" | Typ | |||
!! style="background:#B3B7FF" | Beschreibung | |||
Feld | |- | ||
|id | |||
|Alphanumerisch | |||
| | |||
|- | |||
|command | |||
|Alphanumerisch | |||
|Erlaubte Werte: articleRatings/get | |||
|- | |||
|params | |||
|Object | |||
" | | | ||
|} | |||
id | <!--////////// Tabelle ENDE //////////--> | ||
Erlaubte Werte: | |||
Erlaubte Werte: 1 | "params":{"filters": [{}, {}]} | ||
<!--////////// Tabelle ANFANG //////////--> | |||
:{| class="wikitable" style="text-align:left" | |||
! style="background:#B3B7FF" | Feld | |||
!! style="background:#B3B7FF" | Typ | |||
!! style="background:#B3B7FF" | Beschreibung | |||
|- | |||
|values | |||
|Array | |||
|Array aus String die gefiltert werden sollen. Reguläre Ausdrücke möglich | |||
|- | |||
|fields | |||
|Array | |||
|Optional. Feld welches gefiltert werden soll. Erlaubte Werte: id, articleId, userId, username, rating | |||
|- | |||
|useRegex | |||
|Enum (0..1) | |||
|Optional. Default: 0 | |||
|- | |||
|fieldOperator | |||
|Enum (and, or) | |||
|Optional. Default: or | |||
|- | |||
|or | |||
|Object | |||
|Optional. kann "or" oder Werte von filters enthalten. | |||
|} | |||
<!--////////// Tabelle ENDE //////////--> | |||
"params":{"filterDates": [{}, {}]} | |||
<!--////////// Tabelle ANFANG //////////--> | |||
lastUpdate | :{| class="wikitable" style="text-align:left" | ||
! style="background:#B3B7FF" | Feld | |||
!! style="background:#B3B7FF" | Typ | |||
!! style="background:#B3B7FF" | Beschreibung | |||
|- | |||
|fields | |||
|Array (lastUpdate, dateCreated) | |||
|Feld welches gefiltert werden soll | |||
|- | |||
|greaterThan | |||
|Alphanumerisch | |||
|Optional. Größenbereich: Date (Y-m-d H:i:s) | |||
|- | |||
|greaterThanEqual | |||
|Alphanumerisch | |||
|Optional. Größenbereich: Date (Y-m-d H:i:s) | |||
|- | |||
|lessThan | |||
|String | |||
|Optional. Größenbereich: Date (Y-m-d H:i:s) | |||
|- | |||
|lessThanEqual | |||
|Alphanumerisch | |||
|Optional. Größenbereich: Date (Y-m-d H:i:s) | |||
|} | |||
<!--////////// Tabelle ENDE //////////--> | |||
"params":{"articleRatings": {}} | |||
" | <!--////////// Tabelle ANFANG //////////--> | ||
Feld | :{| class="wikitable" style="text-align:left" | ||
! style="background:#B3B7FF" | Feld | |||
!! style="background:#B3B7FF" | Typ | |||
!! style="background:#B3B7FF" | Beschreibung | |||
|- | |||
|start | |||
|Number | |||
|Optional. Startwert, Default: 0 | |||
|- | |||
|limit | |||
|Number (40) | |||
|Optional. Maximale Anzahl an Einträgen | |||
|- | |||
|sort | |||
|array | |||
|Optional. Siehe "articleRatings": {"sort": [{}, {}]} | |||
|- | |||
|expectedData | |||
|Object | |||
|Optional. Siehe "articleRatings": {"expectedData": {} | |||
|} | |||
<!--////////// Tabelle ENDE //////////--> | |||
"params":{"articleRatings": {"sort": [{}, {}]} } | |||
<!--////////// Tabelle ANFANG //////////--> | |||
:{| class="wikitable" style="text-align:left" | |||
! style="background:#B3B7FF" | Feld | |||
!! style="background:#B3B7FF" | Typ | |||
!! style="background:#B3B7FF" | Beschreibung | |||
|- | |||
|field | |||
|Alphanumerisch (id, articleId, userId, username, rating, dateCreated, lastUpdate) | |||
|Feld das sortiert werden soll | |||
|- | |||
|- | |||
|direction | |||
|Number (-1, 1) | |||
|Richtung der Sortierung | |||
|} | |||
<!--////////// Tabelle ENDE //////////--> | |||
"params":{"articleRatings": {"expectedData": {}} } | |||
" | <!--////////// Tabelle ANFANG //////////--> | ||
! style="background:#B3B7FF" | Feld | |||
!! style="background:#B3B7FF" | Typ | |||
Number | !! style="background:#B3B7FF" | Beschreibung | ||
|- | |||
|id | |||
|Number (1) | |||
| | |||
|- | |||
|articleId | |||
|Number (1) | |||
| | |||
|- | |||
|userId | |||
|Number (1) | |||
| | |||
|- | |||
|username | |||
|Number (1) | |||
| | |||
|- | |||
|rating | |||
|Number (1) | |||
| | |||
|- | |||
|dateCreated | |||
|Number (1) | |||
| | |||
|- | |||
|lastUpdate | |||
|Number (1) | |||
| | |||
|- | |||
|} | |||
<!--////////// Tabelle ENDE //////////--> | |||
"result":{"articleRatings": {}} | |||
<!--////////// Tabelle ANFANG //////////--> | |||
! style="background:#B3B7FF" | Feld | |||
!! style="background:#B3B7FF" | Typ | |||
!! style="background:#B3B7FF" | Beschreibung | |||
|- | |||
|data | |||
|Array | |||
|Optional. Siehe "expectedData" | |||
|- | |||
|count | |||
|Object | |||
|Optional. Siehe "result":{"articleRatings": {"count": {} }} | |||
|} | |||
<!--////////// Tabelle ENDE //////////--> | |||
"result":{"articleRatings": {"count": {} }} | |||
"result":{" | <!--////////// Tabelle ANFANG //////////--> | ||
Feld | ! style="background:#B3B7FF" | Feld | ||
!! style="background:#B3B7FF" | Typ | |||
Number | !! style="background:#B3B7FF" | Beschreibung | ||
|- | |||
|total | |||
|Number | |||
|Optional. Alle Einträge in der Datenbank | |||
|- | |||
|filtered | |||
|Number | |||
|Optional. Gefundene Einträge mit den übergebenen Parametern | |||
|} | |||
<!--////////// Tabelle ENDE //////////--> | |||
Durchschnittliche Bewertung | "result":{"averageArticleRating": {} | ||
<!--////////// Tabelle ANFANG //////////--> | |||
! style="background:#B3B7FF" | Feld | |||
!! style="background:#B3B7FF" | Typ | |||
!! style="background:#B3B7FF" | Beschreibung | |||
|- | |||
|averageArticleRating | |||
|Number | |||
|Optional. Durchschnittliche Bewertung | |||
|} | |||
/ | articleRatings_delete {} | ||
<!--////////// Tabelle ANFANG //////////--> | |||
:{| class="wikitable" style="text-align:left" | |||
! style="background:#B3B7FF" | Feld | |||
!! style="background:#B3B7FF" | Typ | |||
!! style="background:#B3B7FF" | Beschreibung | |||
|- | |||
|id | |||
|Alphanumerisch | |||
| | |||
|- | |||
|command | |||
|Alphanumerisch | |||
|Erlaubte Werte: articleRatings/deleted | |||
|- | |||
|params | |||
|Object | |||
| | |||
|} | |||
<!--////////// Tabelle ENDE //////////--> | |||
--> | |||
"params":{"data":{}} | "params":{"data":{}} | ||
Feld Typ Beschreibung | Feld Typ Beschreibung | ||
| Zeile 12.245: | Zeile 12.319: | ||
Feld Typ Beschreibung | Feld Typ Beschreibung | ||
count Number | count Number | ||
= Einzelnachweise = | = Einzelnachweise = | ||
<references /> | <references /> | ||