Re: How to get diff draft info using web API?

2013-01-11 Thread Baybora Aksoy
Hi,

It didn't work. Here is the post data:

--8cfbe28cefd0b93
Content-Disposition: form-data; name="basedir"

trunk/
--8cfbe28cefd0b93
Content-Disposition: form-data; name="api_format"

xml
--8cfbe28cefd0b93
Content-Disposition: form-data; name="path"; filename="testagain.diff"
Content-Type: text/plain

Index: admin.html
===
--- admin.html (revision 2)
+++ admin.html (working copy)
@@ -140,7 +140,7 @@
 
 
 
-  Tip: Want to add
+  Tip: Would you like to add
   additional Subversion features like Code Search, Code Review,
   Analytics or enhanced permissions management?  
   Connect Subversion Edge to

--8cfbe28cefd0b93--


Thanks,

Bora

On Friday, January 11, 2013 1:10:59 PM UTC-6, Raja wrote:
>
>
> Can you try passing api_format=xml along with your POST parameters ? 
>
> -Raja
>
>

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
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




Re: How to get diff draft info using web API?

2013-01-11 Thread Raja
On Fri, Jan 11, 2013 at 7:40 AM, Baybora Aksoy  wrote:

> 2. Server's response to the POST (that creates the new diff)  contains the
> new diff info in JSON. How can I make it to return in XML? Accept header is
> set to application/xml on the request.
>

Can you try passing api_format=xml along with your POST parameters ?

-Raja

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
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




How to get diff draft info using web API?

2013-01-11 Thread Baybora Aksoy
Hi,

I am uploading a diff using the web API and dhe diff content seems to be 
uploaded without issues. However, I couIdn't find a way to get the draft 
diff info:

1. How can I get to the uploaded (draft) diff info using the API? According 
to the documentation 
(http://www.reviewboard.org/docs/manual/1.6/webapi/2.0/resources/diff-list/), 
"The new diff will have a revision of 0." , but when I try to get the diff 
with revision 0, server returns  'object does not exist' error.

2. Server's response to the POST (that creates the new diff)  contains the 
new diff info in JSON. How can I make it to return in XML? Accept header is 
set to application/xml on the request.

Thanks,

Bora

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
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