Vjiay,
I answered you over on the reviewboard-dev mailing list, but the trick is
to use the ?expand parameter to navigate the tree of resources.
The webapi is designed as a tree--each review request contains links to a
bunch of reviews, and each review contains links to comments. Using ?expand
lets you include those inline in the response:
curl http://server/api/review-requests/1234/?expand=reviews,replies,diff_
comments,file_attachment_comments,screenshot_comments
This will return a large blob of JSON, which you can then traverse to pull
out all of the comment text.
-David
On Fri, Mar 20, 2015 at 1:19 PM vijay bhaskar reddy Yalamuri
vijay.yalam...@gmail.com wrote:
Hi Every one,
I would to like bring my few of doubts to this group. Please help me on
this.
1) I need to get all the review comments in one shot and print it on the
console or a file. Please provide me sample snippet for this.
I tried to use this below API, But I couldn't get any details.
/api/review-requests/{review_request_id}/reviews/,
I tried get function to get the details, But I didn't get any details.
I think there is some other way to get those review comments.
https://www.reviewboard.org/docs/manual/dev/webapi/2.0/resources/review-list/
If one one is having sample snippet , plz provide me the same.
2) From the link
https://www.reviewboard.org/docs/manual/dev/webapi/2.0/resources/review-diff-comment-list/#webapi2.0-review-diff-comment-list-resource
this is also used to get the comments.
Even I thought of using this, but this API requires to arguments, But I
have only request request id what is the other argument review-id ?
API:
/api/review-requests/{review_request_id}/reviews/{review_id}/diff-comments/
Please provide me code snippet for this as well on how to use this and get
the diff comments.
sample snippet which I am using :
url1 = '/api/review-requests/19/reviews/19/diff-comments/'
Here I have used review id and review request id same, But I don't
know why 2 args.
datareviews1 = rb_server.api_get( url1 )
print datareviews1
I got some data, but doesn't have review comments.
Thanks for helping me in advance!!!
Regards
Vijay
--
Supercharge your Review Board with Power Pack:
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons:
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups
reviewboard group.
To unsubscribe from this group and stop receiving emails from it, send an
email to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Supercharge your Review Board with Power Pack:
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons:
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups
reviewboard group.
To unsubscribe from this group and stop receiving emails from it, send an email
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.