List all comments of an estimate
GET /api/offer-comments?offer_id={offer_id}
Comments can only be returned for a particular estimate.
Therefore offer_id is a mandatory parameter.
<?xml version="1.0" encoding="UTF-8"?>
<offer-comments type="array">
<offer-comment>
...
<offer-comment>
<offer-comment>
...
<offer-comment>
</offer-comments>
Get single comment
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>Estimate created</comment>
</offer-comment>
Create comment
POST /api/offer-comments
| XML element | Description | Type | Default value | Mandatory |
|---|---|---|---|---|
| offer_id | ID of the estimate | INT | yes | |
| comment | Comment | ALNUM | yes |
<offer-comment>
<offer_id>1</offer_id>
<comment>Let's go</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>Let's go</comment>
</offer-comment>
Delete comment
DELETE /api/offer-comments/{id}
English »
Deutsch