Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
REST API call to create a new review request
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Christian Hammond  
View profile  
 More options Oct 1 2012, 4:34 pm
From: Christian Hammond <chip...@chipx86.com>
Date: Mon, 1 Oct 2012 13:34:18 -0700
Local: Mon, Oct 1 2012 4:34 pm
Subject: Re: REST API call to create a new review request

Oh, you're uploading as JSON data. We require HTTP POST data. That's your
biggest problem.

Christian

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

On Mon, Oct 1, 2012 at 1:16 PM, Andy Paladino <Andy.Palad...@citrix.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Hammond  
View profile  
 More options Oct 1 2012, 5:05 pm
From: Christian Hammond <chip...@chipx86.com>
Date: Mon, 1 Oct 2012 14:05:02 -0700
Local: Mon, Oct 1 2012 5:05 pm
Subject: Re: REST API call to create a new review request

The ?blah is GET query args. You can specify HTTP POST form data using:

curl -k -H "Auth......" -X POST -d repository=1 -d changenum=678516 http://
<url>/api/review-requests/

Christian

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

On Mon, Oct 1, 2012 at 1:54 PM, Andy Paladino <Andy.Palad...@citrix.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andy Paladino  
View profile  
 More options Oct 8 2012, 2:00 pm
From: Andy Paladino <Andy.Palad...@citrix.com>
Date: Mon, 8 Oct 2012 18:00:01 +0000
Local: Mon, Oct 8 2012 2:00 pm
Subject: Re: REST API call to create a new review request
Thanks. I did get this to work using your suggestion. However, I am unable to do a PUT using Java now. I tried to create a new topic for this in good reviewboard-dev groups but I don't think it went through.

Andy P

From: Christian Hammond <chip...@chipx86.com<mailto:chip...@chipx86.com>>
Date: Monday, October 1, 2012 2:05 PM
To: Microsoft Office User <Andy.Palad...@citrix.com<mailto:Andy.Palad...@citrix.com>>
Cc: "reviewboard-dev@googlegroups.com<mailto:reviewboard-dev@googlegroups.com>" <reviewboard-dev@googlegroups.com<mailto:reviewboard-dev@googlegroups.com>>
Subject: Re: REST API call to create a new review request

The ?blah is GET query args. You can specify HTTP POST form data using:

curl -k -H "Auth......" -X POST -d repository=1 -d changenum=678516 http://<url>/api/review-requests/

Christian

--
Christian Hammond - chip...@chipx86.com<mailto:chip...@chipx86.com>
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com

On Mon, Oct 1, 2012 at 1:54 PM, Andy Paladino <Andy.Palad...@citrix.com<mailto:Andy.Palad...@citrix.com>> wrote:
Ah, I see.  Should this work then?

curl -k -H "Authorization: Basic YXBhbGFkaW5vOkNpdHJpeDExBHy=" -X POST "<review board url>/api/review-requests/?repository=1&changenum=678516"

Andy P
From: Christian Hammond <chip...@chipx86.com<mailto:chip...@chipx86.com><mailto:chip...@chipx86.com<mailto:chip...@chipx86.com>>>
Date: Monday, October 1, 2012 1:34 PM
To: Microsoft Office User <Andy.Palad...@citrix.com<mailto:Andy.Palad...@citrix.com><mailto:Andy.Palad...@citrix.com<mailto:Andy.Palad...@citrix.com>>>
Cc: "reviewboard-dev@googlegroups.com<mailto:reviewboard-dev@googlegroups.com>< mailto:reviewboard-dev@googlegroups.com<mailto:reviewboard-dev@googlegroups .com>>" <reviewboard-dev@googlegroups.com<mailto:reviewboard-dev@googlegroups.com>< mailto:reviewboard-dev@googlegroups.com<mailto:reviewboard-dev@googlegroups .com>>>
Subject: Re: REST API call to create a new review request

Oh, you're uploading as JSON data. We require HTTP POST data. That's your biggest problem.

Christian

--
Christian Hammond - chip...@chipx86.com<mailto:chip...@chipx86.com><mailto:chip...@chipx86.com<mailto:chip...@chipx86.com>>
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com

On Mon, Oct 1, 2012 at 1:16 PM, Andy Paladino <Andy.Palad...@citrix.com<mailto:Andy.Palad...@citrix.com><mailto:Andy.Palad...@citrix.com<mailto:Andy.Palad...@citrix.com>>> wrote:
Hi. Thanks for the response. I did update the url used to use review-requests and I'm getting a different error.  To recap, I am trying to generate a new review request via REST using a post.  Can someone tell me what I am doing wrong? I am new to reviewboard. Thanks.

apaladino$ curl -k -H "Authorization: Basic YXBhbGFkaW5vOkNpdHJpeDExBHy=" -X POST "<review board url>/api/review-requests/" -d  "{ \"repository\": 1, \"changenum\": 678516 }"
{"fields": {"{ \"repository\": 1, \"changenum\": 678516 }": ["Field is not supported"], "repository": ["This field is required"]}, "stat": "fail", "err": {"msg": "One or more fields had errors", "code": 105}}

Andy P

From: Support <supp...@beanbaginc.com<mailto:supp...@beanbaginc.com><mailto:supp...@beanbaginc.com<mailto:supp...@beanbaginc.com>><mailto:supp...@beanbaginc.com<mailto:supp...@beanbaginc.com><mailto:supp...@beanbaginc.com<mailto:supp...@beanbaginc.com>>>>
Reply-To: Support <supp...@beanbaginc.com<mailto:supp...@beanbaginc.com><mailto:supp...@beanbaginc.com<mailto:supp...@beanbaginc.com>><mailto:supp...@beanbaginc.com<mailto:supp...@beanbaginc.com><mailto:supp...@beanbaginc.com<mailto:supp...@beanbaginc.com>>>>
Date: Monday, October 1, 2012 12:56 PM
To: Microsoft Office User <Andy.Palad...@citrix.com<mailto:Andy.Palad...@citrix.com><mailto:Andy.Palad...@citrix.com<mailto:Andy.Palad...@citrix.com>><mailto:Andy.Palad...@citrix.com<mailto:Andy.Palad...@citrix.com><mailto:Andy.Palad...@citrix.com<mailto:Andy.Palad...@citrix.com>>>>
Subject: Re: REST API call to create a new review request

__________________________________
Type your response ABOVE THIS LINE to reply
________________________________
Andy P
Subject: REST API call to create a new review request
________________________________
OCT 01, 2012  |  12:56PM PDT
Christian Hammond replied:
Hi Andy,

Looks like you probably want the /api/review-requests/ path. Note the -.

The reviewboard-dev mailing list may be useful to you for further questions, as there are several people on there who make use of the API.
- Christian
________________________________
OCT 01, 2012  |  09:32AM PDT
Original message

Andy wrote:

Hi. Is there a way to create a new review request using REST? We are using version 1.6.3. I tried something like this but doesn't work.

curl -k -H "Authorization: Basic YXBhbGFkaW5vOkNpdHJpeDExMTc=" -X POST "https://<reviewboard address>/api/reviewrequests/" -d "{ \"repository_path\": "perforce.ad.corp.expertcity.com<http://perforce.ad.corp.expertcity.com><http://perforce.ad.corp.expertcity.com>", \"changenum\": \"678516\" }"

________________________________
This message was sent to andy.palad...@citrix.com<mailto:andy.palad...@citrix.com><mailto:andy.palad...@citrix.com<mailto:andy.palad...@citrix.com>><mailto:andy.palad...@citrix.com<mailto:andy.palad...@citrix.com><mailto:andy.palad...@citrix.com<mailto:andy.palad...@citrix.com>>> in reference to Case #: 203.

[[d50dabb981a4fc3e77aae01b4c30420076c1ff85-64945104]]


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Hammond  
View profile  
 More options Oct 8 2012, 2:56 pm
From: Christian Hammond <chip...@chipx86.com>
Date: Mon, 8 Oct 2012 11:56:17 -0700
Local: Mon, Oct 8 2012 2:56 pm
Subject: Re: REST API call to create a new review request

We moderate posts from new users, and people were just unavailable until
now I guess.

Christian

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

On Mon, Oct 8, 2012 at 11:00 AM, Andy Paladino <Andy.Palad...@citrix.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »