summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2017-02-27 16:43:05 +0000
committerDouwe Maan <douwe@gitlab.com>2017-02-27 16:43:05 +0000
commit23659c52daf42a343a005924615cf428b8a2d7a2 (patch)
tree68d346a7e8b1f7f4cb12fc6262f1a8432c4eff68 /doc/api
parent0599ced165b45ef10051c1e74d093846b6298103 (diff)
parent1c85d86d19d6cb0cb0da82ea062be3ccd351ffef (diff)
downloadgitlab-ce-23659c52daf42a343a005924615cf428b8a2d7a2.tar.gz
Merge branch 'mock-ci-service' into 'master'
Add Mock CI service/integration See merge request !9250
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/services.md35
1 files changed, 35 insertions, 0 deletions
diff --git a/doc/api/services.md b/doc/api/services.md
index fba5da6587d..b030a425a7a 100644
--- a/doc/api/services.md
+++ b/doc/api/services.md
@@ -810,3 +810,38 @@ GET /projects/:id/services/teamcity
[jira-doc]: ../user/project/integrations/jira.md
[old-jira-api]: https://gitlab.com/gitlab-org/gitlab-ce/blob/8-13-stable/doc/api/services.md#jira
+
+
+## MockCI
+
+Mock an external CI. See [`gitlab-org/gitlab-mock-ci-service`](https://gitlab.com/gitlab-org/gitlab-mock-ci-service) for an example of a companion mock service.
+
+This service is only available when your environment is set to development.
+
+### Create/Edit MockCI service
+
+Set MockCI service for a project.
+
+```
+PUT /projects/:id/services/mock-ci
+```
+
+Parameters:
+
+- `mock_service_url` (**required**) - http://localhost:4004
+
+### Delete MockCI service
+
+Delete MockCI service for a project.
+
+```
+DELETE /projects/:id/services/mock-ci
+```
+
+### Get MockCI service settings
+
+Get MockCI service settings for a project.
+
+```
+GET /projects/:id/services/mock-ci
+```