提交 9dc5a566 编写于 作者: O Oliver Gondža

Merge pull request #1122 from daniel-beck/api-doc

Improvements to API documentation.
......@@ -27,9 +27,11 @@ THE SOFTWARE.
<h2>Create Job</h2>
<p>
To create a new job, post <tt>config.xml</tt> to <a href="../createItem">this URL</a> with
query parameter <tt>name=<i>JOBNAME</i></tt>. You'll get 200 status code if the creation is successful,
query parameter <tt>name=<i>JOBNAME</i></tt>. You need to send a <tt>Content-Type: application/xml</tt>
header. You'll get 200 status code if the creation is successful,
or 4xx/5xx code if it fails. <tt>config.xml</tt> is the format Jenkins uses to store the project
in the file system, so you can see examples of them in <tt>${app.rootDir}</tt>.
in the file system, so you can see examples of them in the Jenkins home directory, or by retrieving
the XML configuration of existing jobs from <tt>/job/<i>JOBNAME</i>/config.xml</tt>.
</p>
<h2>Copy Job</h2>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册