This is a top level endpoint that allows you to list and query all
diff comments in the system, across different review requests.
Version Changed:
5.0.4:
This was formally named diff_comments on the root resource, but
had to be renamed to all_diff_comments in order to work around a
conflict with URI templates.
The earliest date/time the diff comments could be last updated. This is compared against the diff comment’s timestamp field. This must be a valid date/time format.
The date/time that all diff comments must be last updated before. This is compared against the diff comment’s timestamp field. This must be a valid date/time format.
lineInteger
The line number that each comment must start on.
max-resultsInteger
The maximum number of results to return in this list. By default, this is 25. There is a hard limit of 200; if you need more than 200 results, you will need to make more than one request, using the “next” pagination link.
order-byString
Comma-separated list of fields to order by.
Added in 1.7.10
review-idString
The ID of the review that the diff comments must belong to.
review-request-idString
The ID of the review request that the diff comments must belong to.
startInteger
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.
userString
The username of the user that created the diff comments.
Root Diff Comment List Resource¶
Added in 5.0
Provide information on diff comments.
This is a top level endpoint that allows you to list and query all diff comments in the system, across different review requests.
5.0.4: This was formally named
diff_comments
on the root resource, but had to be renamed toall_diff_comments
in order to work around a conflict with URI templates.5.0
Details¶
diff_comments
/api/diff-comments/
diff_comment
GET - Return the list of file attachment comments.
Root List Resource
None
Links¶
Name
Method
Resource
GET
Root Diff Comment List Resource
HTTP GET¶
Return the list of file attachment comments.
Request Parameters¶
If specified, a single
count
field is returned with the number of results, instead of the results themselves.The file diff ID that the diff comments must be belonged to.
The second revision in an interdiff revision range. The comments will be limited to this range.
Determine whether to return diff comments that are replies or not.
ISO 8601 Date/Time
The earliest date/time the diff comments could be last updated. This is compared against the diff comment’s
timestamp
field. This must be a valid date/time format.ISO 8601 Date/Time
The date/time that all diff comments must be last updated before. This is compared against the diff comment’s
timestamp
field. This must be a valid date/time format.The line number that each comment must start on.
The maximum number of results to return in this list. By default, this is 25. There is a hard limit of 200; if you need more than 200 results, you will need to make more than one request, using the “next” pagination link.
Comma-separated list of fields to order by.
Added in 1.7.10
The ID of the review that the diff comments must belong to.
The ID of the review request that the diff comments must belong to.
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.
The username of the user that created the diff comments.
Errors¶
Examples¶
application/vnd.reviewboard.org.review-diff-comments+json¶