The API's a little unclear here, but you basically get a review
automatically once you start posting comments or changing the body_top or
body_bottom variables in a review.

You'd use the following for this:

/api/json/reviewrequests/<review_request_id>/reviews/<review_id>/
/api/json/reviewrequests/<review_request_id>/reviews/<review_id>/comments/

For now, I'd recommend installing Firebug for Firefox and looking at what
happens when you make the first comment on a review or set the review
bodies. That'll give you the best example on how to use this API.

Another resource is looking at the code in webapi/json.py and
webapi/urls.py.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.review-board.org
VMware, Inc. - http://www.vmware.com


On Fri, Feb 13, 2009 at 8:30 AM, Sebastien Douche <sdou...@gmail.com> wrote:

>
> I don't find the way to create a review.
>
> Method for creating request:
> /api/json/reviewrequests/new/
>
> Method for creating screenshot:
> /api/json/reviewrequests/<review_request_id>/screenshot/new/
>
> Method for creating patch:
> /api/json/reviewrequests/<review_request_id>/diff/new/
>
>
> List of availabe methods for review:
> /api/json/reviewrequests/<review_request_id>/reviews/draft/save/
> /api/json/reviewrequests/<review_request_id>/reviews/draft/publish/
> /api/json/reviewrequests/<review_request_id>/reviews/draft/delete/
> /api/json/reviewrequests/<review_request_id>/reviews/draft/comments/
> /api/json/reviewrequests/<review_request_id>/reviews/
> /api/json/reviewrequests/<review_request_id>/reviews/count/
>
> /api/json/reviewrequests/<review_request_id>/reviews/<review_id>/
> /api/json/reviewrequests/<review_request_id>/reviews/<review_id>/comments/
>
> /api/json/reviewrequests/<review_request_id>/reviews/<review_id>/comments/count/
>
> /api/json/reviewrequests/<review_request_id>/reviews/<review_id>/replies/draft/
>
> /api/json/reviewrequests/<review_request_id>/reviews/<review_id>/replies/draft/save/
>
> /api/json/reviewrequests/<review_request_id>/reviews/<review_id>/replies/draft/discard/
> /api/json/reviewrequests/<review_request_id>/reviews/<review_id>/replies/
>
> /api/json/reviewrequests/<review_request_id>/reviews/<review_id>/replies/count/
>
>
>
> --
> Sebastien Douche <sdou...@gmail.com>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to