logo:8:api

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
Letzte ÜberarbeitungBeide Seiten der Revision
logo:8:api [2017/01/04 11:22] Johannes Vogtlogo:8:api [2017/01/04 12:13] – [Objekte abfragen] Johannes Vogt
Zeile 8: Zeile 8:
 ^ Parameter ^ Default value ^ Beschreibung ^ Required ^ Beispiel ^ ^ Parameter ^ Default value ^ Beschreibung ^ Required ^ Beispiel ^
 | model |  | Das abzufragende Model | * | /api/columns?model=customer | | model |  | Das abzufragende Model | * | /api/columns?model=customer |
 +
 Mögliches Ergebnis: Mögliches Ergebnis:
 <code> <code>
Zeile 37: Zeile 38:
 | select | | Felder, die Abgefragt werden sollen (Komma-getrennt) | | /api/f?model=customer&select[customer]=id \\ /api/f?model=customer&include[company]&select[company]=company_name,id | | select | | Felder, die Abgefragt werden sollen (Komma-getrennt) | | /api/f?model=customer&select[customer]=id \\ /api/f?model=customer&include[company]&select[company]=company_name,id |
 | select_type | | In Verbindung mit "select". Wie die Felder abgefragt werden sollen (exclude,only) | | /api/f?model=customer&select[customer]=id&select_type=only \\ /api/f?model=customer&select[customer]=id&select_type=exclude | | select_type | | In Verbindung mit "select". Wie die Felder abgefragt werden sollen (exclude,only) | | /api/f?model=customer&select[customer]=id&select_type=only \\ /api/f?model=customer&select[customer]=id&select_type=exclude |
 +
 +Mögliches Ergebnis:
 +<code>/api/f?model=customer&include[company]&limit=1</code>
 +<code>
 +[{
 +  "id":1,
 +  "company_id":2,
 +  "sporadic":false,
 +  "sale_type_id":null,
 +  "company":{
 +    "id":2
 +    "company_name":"Testkunde 1",
 +    "company_ext":null,
 +    "contact_frequency":90
 +  }
 +}]
 +</code>