Review Screenshot Comment List Resource¶
Name | screenshot_comments |
URI | /api/review-requests/{review_request_id}/reviews/{review_id}/screenshot-comments/ |
Description | Provides information on screenshots comments made on a review. If the review is a draft, then comments can be added, deleted, or changed on this list. However, if the review is already published, then no changes can be made. |
HTTP Methods | |
Parent Resource | Review Resource |
Child Resources | |
Anonymous Access | Yes, if anonymous site access is enabled |
Links¶
Name | Method | Resource |
---|---|---|
create | POST | Review Screenshot Comment List Resource |
self | GET | Review Screenshot Comment List Resource |
HTTP GET¶
Returns the list of screenshot comments made on a review.
Request Parameters¶
Field | Type | Description |
---|---|---|
counts-only (optional) | Boolean | If specified, a single count field is returned with the number of results, instead of the results themselves. |
max-results (optional) | Integer | The maximum number of results to return in this list. By default, this is 25. |
start (optional) | Integer | The 0-based index of the first result in the list. The start index is usually the previous start index plus the number of previous results. By default, this is 0. |
HTTP POST¶
Creates a screenshot comment on a review.
This will create a new comment on a screenshot as part of a review. The comment contains text and dimensions for the area being commented on.
Request Parameters¶
Field | Type | Description |
---|---|---|
h (required) | Integer | The height of the comment region. |
screenshot_id (required) | Integer | The ID of the screenshot being commented on. |
text (required) | String | The comment text. |
w (required) | Integer | The width of the comment region. |
x (required) | Integer | The X location for the comment. |
y (required) | Integer | The Y location for the comment. |
Examples¶
application/json¶
{
"links": {
"create": {
"href": "http://reviews.example.com/api/review-requests/8/reviews/8/screenshot-comments/",
"method": "POST"
},
"self": {
"href": "http://reviews.example.com/api/review-requests/8/reviews/8/screenshot-comments/",
"method": "GET"
}
},
"screenshot_comments": [
{
"h": 44,
"id": 1,
"links": {
"delete": {
"href": "http://reviews.example.com/api/review-requests/8/reviews/8/screenshot-comments/1/",
"method": "DELETE"
},
"screenshot": {
"href": "http://reviews.example.com/api/review-requests/8/screenshots/1/",
"method": "GET",
"title": "Example Screenshot (uploaded/images/2010/08/13/screenshot1.png)"
},
"self": {
"href": "http://reviews.example.com/api/review-requests/8/reviews/8/screenshot-comments/1/",
"method": "GET"
},
"update": {
"href": "http://reviews.example.com/api/review-requests/8/reviews/8/screenshot-comments/1/",
"method": "PUT"
},
"user": {
"href": "http://reviews.example.com/api/users/admin/",
"method": "GET",
"title": "admin"
}
},
"public": true,
"text": "This comment makes an astute observation.",
"timestamp": "2010-08-28 02:24:31",
"w": 198,
"x": 132,
"y": 109
}
],
"stat": "ok",
"total_results": 1
}
application/xml¶
<?xml version="1.0" encoding="utf-8"?>
<rsp>
<total_results>1</total_results>
<stat>ok</stat>
<screenshot_comments>
<array>
<item>
<links>
<user>
<href>http://reviews.example.com/api/users/admin/</href>
<method>GET</method>
<title>admin</title>
</user>
<self>
<href>http://reviews.example.com/api/review-requests/8/reviews/8/screenshot-comments/1/</href>
<method>GET</method>
</self>
<update>
<href>http://reviews.example.com/api/review-requests/8/reviews/8/screenshot-comments/1/</href>
<method>PUT</method>
</update>
<screenshot>
<href>http://reviews.example.com/api/review-requests/8/screenshots/1/</href>
<method>GET</method>
<title>Example Screenshot (uploaded/images/2010/08/13/screenshot1.png)</title>
</screenshot>
<delete>
<href>http://reviews.example.com/api/review-requests/8/reviews/8/screenshot-comments/1/</href>
<method>DELETE</method>
</delete>
</links>
<text>This comment makes an astute observation.</text>
<public>1</public>
<w>198</w>
<timestamp>2010-08-28 02:24:31</timestamp>
<y>109</y>
<x>132</x>
<h>44</h>
<id>1</id>
</item>
</array>
</screenshot_comments>
<links>
<self>
<href>http://reviews.example.com/api/review-requests/8/reviews/8/screenshot-comments/</href>
<method>GET</method>
</self>
<create>
<href>http://reviews.example.com/api/review-requests/8/reviews/8/screenshot-comments/</href>
<method>POST</method>
</create>
</links>
</rsp>