Hi Jothiram, At the moment, there's no API for the raw diff. We could add it, certainly. If someone wanted to work on a patch for it, it'd probably be really easy. Feel free to file a feature request on this.
Christian -- Christian Hammond - chip...@chipx86.com VMware, Inc. On Tue, Dec 30, 2008 at 6:34 AM, Jothiram <jothira...@gmail.com> wrote: > > Hi Christian, > > Instead of getting the json object, I got the diff using http_get. Now > it is working. > > Thanks, > Jothiram > > On Dec 30, 8:47 am, Jothiram <jothira...@gmail.com> wrote: > > Hi Christian, > > > > The /r/{review_request_id}/diff/raw works from the web browser. But > > when I try to access it using the json API I get the following error: > > > > Unable to accesshttp://172.16.98.82/api/json/reviewrequests/95/diff/raw > > (404). The host path may be invalid > > > > And so is the case with /r/{review_request_id}/diff/{diff_revision}/ > > raw/ -- works in browser but errors in API access. > > > > Unable to accesshttp:// > 172.16.98.82/api/json/reviewrequests/95/diff/1/raw > > (404). The host path may be invalid > > > > Is there any other API available that I'm missing. > > > > Thanks, > > Jothiram > > > > On Dec 30, 1:33 am, "Christian Hammond" <chip...@chipx86.com> wrote: > > > > > Hi, > > > > > You can get the latest diff by accessing > /r/{review_request_id}/diff/raw/ > > > > > You can also use /r/{review_request_id}/diff/{diff_revision}/raw/ to > get a > > > specific revision. > > > > > I don't know that we have anything for retrieving the number of > revisions > > > from the API yet, though. > > > > > Christian > > > > > -- > > > Christian Hammond - chip...@chipx86.com > > > VMware, Inc. > > > > > On Mon, Dec 29, 2008 at 3:21 PM, Jothiram <jothira...@gmail.com> > wrote: > > > > > > Hello Everyone, > > > > > > I'm running review board on Linux (with SVN) and wondering whether, > > > > through any Review Board API, is it possible to get the latest diff > > > > patch from a review. > > > > > > Also, a review can have more than one diff updated in it. Is it > > > > possible to find the the number of uploaded diffs and to get each > > > > specific uploaded diff. > > > > > > Thank you very much. > > > > Jothiram > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---