質問

REST API 2.0(RB 1.6.3バージョン用)を使用して、新しいレビュー要求を作成するためのドキュメントを見つけることができません。任意のポインターが理解されています。

役に立ちましたか?

解決

気にしないでください。POSTREVIEW.PYコードを通過することでそれを考え出しました。これが私が書いたJava類似のコードです。

private void createRequest(HttpClient httpClient) throws UnsupportedEncodingException, IOException {
    HttpPost post = new HttpPost("http://myreviewboardserver/api/review-requests/");
    List<NameValuePair> data = new ArrayList<NameValuePair>();
    data.add(new BasicNameValuePair("repository", "https://mysvnrepositorypath"));
    post.setEntity(new UrlEncodedFormEntity(data));
    HttpResponse response = httpClient.execute(post);
    HttpEntity entity = response.getEntity();

    entity.writeTo(System.out);
    EntityUtils.consume(entity);
}
.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top