summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorMichel Courtine <michaK@ivoltage.me>2015-02-10 04:22:39 +0100
committerMichel Courtine <michaK@ivoltage.me>2015-02-11 15:06:13 +0100
commit02a1d95fb2503106443feaea82a20ac472c40ecf (patch)
tree8c7abf3f8889d33a95ca56bea65652def38e8c50 /doc/api
parentb98b7e904b84d58d7f945569f51047149d1d4dda (diff)
downloadgitlab-ci-02a1d95fb2503106443feaea82a20ac472c40ecf.tar.gz
Implemented api for project jobs with working tests and updated doc
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/projects.md36
1 files changed, 36 insertions, 0 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md
index 1a74b5c..14e84ee 100644
--- a/doc/api/projects.md
+++ b/doc/api/projects.md
@@ -150,3 +150,39 @@ Parameters:
* `id` (required) - The ID of the Gitlab CI project
* `runner_id` (required) - The ID of the Gitlab CI runner
+### List All Jobs for a Project
+
+List the jobs associated to a Gitlab CI Project (only via
+authorized user).
+
+ GET /projects/:id/jobs
+
+Parameters:
+
+ * `id` (required) - The ID of the Gitlab CI project
+
+### Add a Job to a Project
+
+Adds a Job to a Gitlab CI Project (only via
+authorized user).
+
+ POST /projects/:id/jobs
+
+Parameters:
+
+ * `id` (required) - The ID of the Gitlab CI project
+ * `name` (required) - The name of the Job to add
+ * `commands` (required) - The script commands of the job
+
+### Remove a Job from a Project
+
+Removes a Job from a Gitlab CI Project (only
+via authorized user).
+
+ DELETE /projects/:id/jobs/:job_id
+
+Parameters:
+
+ * `id` (required) - The ID of the Gitlab CI project
+ * `job_id` (required) - The ID of the Job
+