Alle Kommentare eines Angebotes auflisten
GET /api/offer-comments?offer_id={offer_id}
Kommentare können immer nur für ein bestimmtes Angebot zurückgegeben werden.
Deshalb ist offer_id ein Pflichtparameter.
<?xml version="1.0" encoding="UTF-8"?>
<offer-comments type="array">
<offer-comment>
...
<offer-comment>
<offer-comment>
...
<offer-comment>
</offer-comments>
Einzelnen Kommentar aufrufen
GET /api/offer-comments/{id}
<?xml version="1.0" encoding="UTF-8"?>
<offer-comment>
<id type="integer">1</id>
<created type="datetime">2007-12-13T12:12:00+01:00</created>
<offer_id type="integer">1</offer_id>
<user_id type="integer">1</user_id>
<comment>Angebot erstellt.</comment>
</offer-comment>
Kommentar erstellen
POST /api/offer-comments
| XML-Element | Beschreibung | Typ | Default-Wert | Pflichtfeld |
|---|---|---|---|---|
| offer_id | ID des Angebotes | INT | ja | |
| comment | Kommentar | ALNUM | ja |
<offer-comment>
<offer_id>1</offer_id>
<comment>Es kann los gehen</comment>
</offer-comment>
<?xml version="1.0" encoding="UTF-8"?>
<offer-comment>
<id type="integer">1</id>
<created type="datetime">2007-12-13T12:12:00+01:00</created>
<offer_id type="integer">1</offer_id>
<user_id type="integer">1</user_id>
<comment>Es kann los gehen</comment>
</offer-comment>
Kommentar löschen
DELETE /api/offer-comments/{id}
Deutsch »
English