Kommentare und Historie

Alle Kom­men­tare eines Ange­bo­tes auflisten

GET /api/offer-comments?offer_id={offer_id}

Kom­men­tare kön­nen immer nur für ein bestimm­tes Ange­bot zurück­ge­ge­ben wer­den.
Des­halb 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>

Ein­zel­nen Kom­men­tar 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>

Kom­men­tar erstellen

POST /api/offer-comments
XML-Element Beschrei­bung Typ Default-Wert Pflicht­feld
offer_id ID des Angebotes INT ja
com­ment Kom­men­tar 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>

Kom­men­tar löschen

DELETE /api/offer-comments/{id}