残りの API を使用してレポを作成しましたが、これも開始したいと考えています。有効になっているので、起動がオプションであることがわかります (GUI から起動するオプションが表示されます)。
これをブラウザに投稿してみました – http://crucible:8060/rest/api/1.0/rest-service-fecru/admin/repositories/development_services.newtools/start
また、Python スクリプトを使用してみました。サーバーに送信されるリクエストの JSON は次のようになります。
{'Content-Length': '0', 'Accept-Encoding': 'gzip, deflate', 'Content-Type': 'application/json', 'Accept': 'application/json', 'User-Agent': 'python-requests/2.9.1', 'Connection': 'keep-alive', 'type': 'PUT', 'Authorization': 'Basic ZasdfasdfvczpHb2VzVXAyABC='}
応答は次のとおりです。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 405 Method Not Allowed</title>
</head>
<body><h2>HTTP ERROR 405</h2>
<p>Problem accessing /rest/api/1.0/rest-service-fecru/admin/repositories/development_services.newtools/start. Reason:
<pre> Method Not Allowed</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>
<br/>
</body>
</html>